#Transparent platform help
183 messages · Page 1 of 1 (latest)
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)
the platform doesnt go transparent at all :/
And with this ?
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 :(
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
doesnt work?
sadly not
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
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
o yes mb
let me try this!
** You are now Level 1! **
omg it does! i dont understand how but it does!
the line platform Transparency + 20 does not change the transparency of the platform
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
ty @keen zenith that explanation made sense! and ty @proper aurora for assisting!
np if u have any more questions let us know
ty will do!
do you know how i could make the platform appear again
platform.Transparency = 1
where would i insert that
when you want to make the part visible
so when the part is faded fully
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)
lemme try
myb dis kid districted me from helping you out
its all good i was reading it, bro said chat gpt 💀
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)
chat gpt gives u examples
chat gpt is bad at roblox scripting
its nothing to be ashamed about, but bro didnt need to call anyone out
checks if the transparency of the platform is less than 1.
yes but it s useless
even if i was i would be giving out false information scirpts
useless but works
or u just can do the transprant to 0
cant spell for my life
Hey there shves i dmed u before remember lol
Also i deceided im going to attempt to kearn scripting
That worked wonders thanks everyone!
** You are now Level 2! **
ye
thats good
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
actually it doesnt work ish?
either youtube videos or private lessons by advanced scripters
so whats the problem
could i send a video to show?
How long does it take to learn btw at least to be decent
took me 2 years
ofc
I searched it up ot said around 2 months
If your talking to me then ty
ofc u
ah
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)
you can use tween service to make the transaprency slower
true
uhm this looks like a whole new script
thats got a break thingy and descendant of player character thiny
thingy
og script
ye when the player stands on the part for 3 secs it disappears
or u want it to be slowed
ok tbh i dont understand the new script at all
understando
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)
my script doesnt work jasper as you can see here (sorry for bad fps)
im not worried about you
wdym dark?
¯_(ツ)_/¯
yes please
(add wait or just platform.Transprency = 1)
@gentle scaffold can i quickly just sayhow would i make when its transparent you fall through it and when not you dont
should works
you can change the
TweenInfo.new(0.5) to make the transprency slower
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.
ok so @proper aurora first time it works but the second time you just fall straight through the platform :/
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)
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?
jasper why i would try if dark made a working one?
** You are now Level 3! **
woah im not being mean
you have to change to platformName in the script like
game.Workspace.Platform2 etc
woah im sorry if it came out that way
really?
he’s literally just trolling u
** You are now Level 5! **
yes or just create a folder/ collection service etc
so if i create a folder and put the plat and script in the folder and duplicate that folder it will work?
..her?
cuz dark aint using chat gpt and was ACTUALLY using their brain yah 🤓🫵🏽
imma go roll up
its okay
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
i need to find sum discords where i can become dev for servers
da _, syntax in the for loop is used to ignore the first value returned by the pairs function
_ is a name for a useless variable
You can name it whatever you want like i, index etc
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
whats the t mean?
t is the table
oh ty dark
t is just a variable name i can be Table (not table),Var etc
got proof?
dark it works but just got an error and idk if its bad
put the script in serverscript servicde
ty dark!
chatgpt is slower then human (for this script)
i literally typed that myself
!ban @keen zenith
banned
Banned
bros a fan of me
plz go jerk each other off in dms
you are shves
and
butthurt
"buss"
degenerate abbreviation
you are a snowflake
** You are now Level 7! **
💀
go fuck off back to your shitty Roblox Studio beginners tutorial
guyss#
shitty troglodyte
we all gon get banned
eat shit
you are a defective ape
fucking pest
you are a pathetic cur
@gentle scaffold
why are you in this server?
hi
to pointlessly get butthurt after attempting to insult someone?
fucking loser
@unreal gorge
delete before annoying mod come and ban
good
hi everyone