Hello! So, I have been trying to learn how to make games in roblox for a few days with the studio+ plugin and i am in the obby part 1 here is the link to it: https://studioplus.io/en/course/the-obby-part-1/1/theming I am at the vanishing platform part and I have done it the code is working and all but there is one problem and that is that whenever the first cycle finishes the second cycle and the rest are broken, either so hard or so easy to do. I think this problem is caused by the numberValues. The number values for each platform:
Platform 1 = hide = 2 show = 4 Platform 2 = hide = 4 show = 4 Platform 3 = hide = 6 show = 4 Platform 4 = hide = 8 show = 4
Code for all platforms =
local part = script.Parent local hideFor = part.hideFor.Value local showFor = part.ShowFor.Value local function showPart() part.Transparency = 0 part.CanCollide = true end local function hidePart() part.Transparency = 0.5 part.CanCollide = false end while true do hidePart() wait(hideFor) showPart() wait(showFor) end
if there is any information you need to know ask me.
Apparently getting the Value in a local line won't work. You should use the video' script
while true do hidePart() wait(part.hideFor.Value) showPart() wait(part.showFor.Value) end