#Transparent platform help

183 messages · Page 1 of 1 (latest)

proper aurora
#

what is the problem ? the platform isn't tranparent or is transparent instantly?

#
local function PlatformDropped()
    if platform.Transparency >= 100 then
        repeat
            platform.Transparency += 20
            task.wait()
        until platform.Transparency >= 100
    elseif then
        platform.Transparency = 100

    end


    end

game.Workspace.Platform.Touched:Connect(PlatformDropped)
unreal gorge
#

the platform doesnt go transparent at all :/

unreal gorge
#

i havent tried that let me try that now thanks

#

couldyou explain whats different? and why you changed it? im sorry im asking a lot

#

hmm still no use :(

proper aurora
#

repeat
platform.Transparency += 20
task.wait()
until platform.Transparency >= 100

+= is like
platform.Transparency = platform.Transparency +20
and task.wait() is to wait the next frame because if you dont do this the platoform is instantly transparent

proper aurora
unreal gorge
proper aurora
#

any error?

unreal gorge
# proper aurora any error?

17:55:18.873 Untitled Game @ 30 Mar 2023 17:55 auto-recovery file was created - Studio
17:55:19.892 Saved new changes in "Untitled Game @ 30 Mar 2023 17:55" to Roblox. - Studio
17:55:22.351 Workspace.Script:8: Expected identifier when parsing expression, got 'then' - Studio - Script:8
17:55:43.585 Disconnect from ::ffff:127.0.0.1|60249 - Studio

keen zenith
#

local function PlatformDropped()
    if platform.Transparency < 1 then
        repeat
            platform.Transparency = platform.Transparency + 0.2
            wait()
        until platform.Transparency >= 1
    else
        platform.Transparency = 1
    end
end

game.Workspace.Platform.Touched:Connect(PlatformDropped)
#

@unreal gorge should work

proper aurora
#

o yes mb

icy cipherBOT
#

studio** You are now Level 1! **studio

unreal gorge
keen zenith
#

you needed to use the assignment operator = to set the transparency of the platform

#

and the elseif statement is not correct, because it doesn't have a corresponding `then

#

@unreal gorge glad i got everything working for you

unreal gorge
#

ty @keen zenith that explanation made sense! and ty @proper aurora for assisting!

keen zenith
#

np if u have any more questions let us know

unreal gorge
unreal gorge
proper aurora
#

platform.Transparency = 1

unreal gorge
#

OH i could use like wait and then that

#

ty

unreal gorge
proper aurora
#

when you want to make the part visible

unreal gorge
#

so when the part is faded fully

proper aurora
#
local platform = game.Workspace.Platform

local function PlatformDropped()
    if platform.Transparency < 1 then
        repeat
            platform.Transparency = platform.Transparency + 0.2
            wait()
        until platform.Transparency >= 1
        platform.Transparency  = 1
    else
        platform.Transparency = 1
    end
end

game.Workspace.Platform.Touched:Connect(PlatformDropped)
unreal gorge
#

lemme try

keen zenith
unreal gorge
keen zenith
# proper aurora platform.Transparency = 1

or make a lil scirpt like this ```local platform = game.Workspace.Platform

local function PlatformDropped()
if platform.Transparency < 1 then
repeat
platform.Transparency = platform.Transparency + 0.2
wait()
until platform.Transparency >= 1
else
platform.Transparency = 1
wait(10)
platform.Transparency = 0
end
end

game.Workspace.Platform.Touched:Connect(PlatformDropped)

proper aurora
#

?

#

why < 1?

keen zenith
proper aurora
#

chat gpt is bad at roblox scripting

unreal gorge
keen zenith
proper aurora
#

yes but it s useless

keen zenith
keen zenith
#

or u just can do the transprant to 0

#

cant spell for my life

toxic orbit
#

Hey there shves i dmed u before remember lol

#

Also i deceided im going to attempt to kearn scripting

unreal gorge
#

That worked wonders thanks everyone!

icy cipherBOT
#

studio** You are now Level 2! **studio

keen zenith
toxic orbit
# keen zenith ye

Ik this isnt the channel for it but do you know where i should learn

#

As i feel like lots of the yt vids are just for views

unreal gorge
#

actually it doesnt work ish?

keen zenith
keen zenith
unreal gorge
#

could i send a video to show?

toxic orbit
keen zenith
keen zenith
toxic orbit
#

I searched it up ot said around 2 months

keen zenith
#

hopefully

#

goodluck doe🦅

toxic orbit
#

If your talking to me then ty

keen zenith
#

ofc u

unreal gorge
keen zenith
unreal gorge
#

sorry for the fps

keen zenith
# unreal gorge sorry for the fps

local function PlatformDropped()
    if platform.Transparency < 1 then
        repeat
            platform.Transparency = platform.Transparency + 0.2
            wait()
        until platform.Transparency >= 1
    else
        platform.Transparency = 1
        local playerOnPlatform = false
        for _, player in pairs(game.Players:GetPlayers()) do
            if platform:IsDescendantOf(player.Character) then
                playerOnPlatform = true
                break
            end
        end
        if playerOnPlatform then
            wait(3)
        end
        platform.Transparency = 0
    end
end

game.Workspace.Platform.Touched:Connect(PlatformDropped)
#

all i added in the scirpt was the wait(3)

proper aurora
#

you can use tween service to make the transaprency slower

keen zenith
#

true

unreal gorge
keen zenith
#

eh kinda

unreal gorge
#

thats got a break thingy and descendant of player character thiny

#

thingy

#

og script

keen zenith
#

ye when the player stands on the part for 3 secs it disappears

#

or u want it to be slowed

unreal gorge
#

ok tbh i dont understand the new script at all

keen zenith
#

understando

proper aurora
#
local platform = game.Workspace.Platform
local TweenService = game:GetService("TweenService")
local function PlatformDropped()

  local Tween = TweenService:Create(platform,TweenInfo.new(0.5),
  {
    Transparency = 1
  })
  Tween:Play()
   platform.CanCollide = true
  Tween.Completed:Connect(function()
      platform.CanCollide = false  
      wait(3)      
      platform.Transparency = 0
      
  end)
end
game.Workspace.Platform.Touched:Connect(PlatformDropped)

unreal gorge
# unreal gorge

my script doesnt work jasper as you can see here (sorry for bad fps)

keen zenith
#

im not worried about you

proper aurora
#

set the part collision

#

from the explorer

unreal gorge
unreal gorge
#

yes please

proper aurora
#

(add wait or just platform.Transprency = 1)

unreal gorge
#

@gentle scaffold can i quickly just sayhow would i make when its transparent you fall through it and when not you dont

proper aurora
#

you can change the
TweenInfo.new(0.5) to make the transprency slower

unreal gorge
#

let me try dark because jaspers didnt work sadly

#

not a clue how tweens work tbh

proper aurora
#

Tweens are used to interpolate the properties of instances. The Tween object
itself controls the playback of the interpolation. Creating and configuring
tweens is done with the Class.TweenService:Create() function. This is the
only way to create tweens. Instance.new cannot be used for this particular
object.

unreal gorge
#

ok so @proper aurora first time it works but the second time you just fall straight through the platform :/

proper aurora
#
local platform = game.Workspace.Platform
local TweenService = game:GetService("TweenService")
   platform.CanCollide = true
local function PlatformDropped()

  local Tween = TweenService:Create(platform,TweenInfo.new(0.5),
  {
    Transparency = 1
  })
  Tween:Play()

  Tween.Completed:Connect(function()
      platform.CanCollide = false  
      wait(3)      
      platform.Transparency = 0
         platform.CanCollide = true
  end)
end
game.Workspace.Platform.Touched:Connect(PlatformDropped)
#

(platform.CanCollide = true / false)

unreal gorge
#

ill try darks then jasper

#

DARK IT WORKS!

#

ik im asking a lot but also when i duplicate the platform will the script work on the platforms i duplicated?

proper aurora
#

(setcancollide doesnt exist)

#

nop you have to change the platform refrence

unreal gorge
#

jasper why i would try if dark made a working one?

icy cipherBOT
#

studio** You are now Level 3! **studio

unreal gorge
#

woah im not being mean

proper aurora
#

you have to change to platformName in the script like
game.Workspace.Platform2 etc

unreal gorge
#

woah im sorry if it came out that way

keen zenith
icy cipherBOT
#

studio** You are now Level 5! **studio

keen zenith
#

dont even pay attention too em

#

finally level 5

proper aurora
keen zenith
#

yah u was using chat gpt cuz the script didnt work 💀

#

🫵🏽🫵🏽🫵🏽

unreal gorge
#

..her?

keen zenith
#

cuz dark aint using chat gpt and was ACTUALLY using their brain yah 🤓🫵🏽

unreal gorge
#

..non binary

#

what

#

no lmao

#

just a boy

keen zenith
#

imma go roll up

unreal gorge
#

its okay

proper aurora
# unreal gorge so if i create a folder and put the plat and script in the folder and duplicate ...

local TweenService = game:GetService("TweenService")
for _,platform in game.Workspace.Folder:GetChildren() do
    platform.CanCollide = true
    local function PlatformDropped()

        local Tween = TweenService:Create(platform,TweenInfo.new(0.5),
            {
                Transparency = 1
            })
        Tween:Play()

        Tween.Completed:Connect(function()
            platform.CanCollide = false  
            wait(3)      
            platform.Transparency = 0
            platform.CanCollide = true
        end)
    end
    platform.Touched:Connect(PlatformDropped)
end

keen zenith
#

i need to find sum discords where i can become dev for servers

proper aurora
#

with a folder like this

#

(you dont need to rename platforms)

unreal gorge
#

ty dark!

#

dark what does the _, mean?

keen zenith
proper aurora
#

_ is a name for a useless variable
You can name it whatever you want like i, index etc

keen zenith
#

example


for i, value in pairs(t) do
    print(i, value)
end

-- Output:
-- 1 10
-- 2 20
-- 3 30
-- and so on like 4 - 40
#

ight imma take a break

unreal gorge
#

whats the t mean?

proper aurora
unreal gorge
#

oh ty dark

proper aurora
#

t is just a variable name i can be Table (not table),Var etc

keen zenith
#

got proof?

unreal gorge
#

dark it works but just got an error and idk if its bad

proper aurora
#

put the script in serverscript servicde

unreal gorge
#

ty dark!

proper aurora
#

chatgpt is slower then human (for this script)

keen zenith
#

i literally typed that myself

glass otter
#

!ban @keen zenith

keen zenith
#

banned

glass otter
#

Banned

keen zenith
#

bros a fan of me

glass otter
#

plz go jerk each other off in dms

#

you are shves

#

and

#

butthurt

#

"buss"

#

degenerate abbreviation

#

you are a snowflake

icy cipherBOT
#

studio** You are now Level 7! **studio

keen zenith
#

💀

glass otter
#

go fuck off back to your shitty Roblox Studio beginners tutorial

keen zenith
#

guyss#

glass otter
#

shitty troglodyte

keen zenith
#

we all gon get banned

glass otter
#

eat shit

#

you are a defective ape

#

fucking pest

#

you are a pathetic cur

#

@gentle scaffold

#

why are you in this server?

keen zenith
#

hi

glass otter
#

to pointlessly get butthurt after attempting to insult someone?

#

fucking loser

#

@unreal gorge

#

delete before annoying mod come and ban

#

good

unreal gorge
#

i have been called?

#

okay

toxic orbit
#

hi everyone