Hello, I wanted to make it so that the baseplate would appear with a slight delay, I have tried this:
parent = game.workspace.Baseplate parent.Transparency = -0.001 wait (0.01) repeat until parent.Transparency == 0
But this crashed the studio, but when I tried this:
parent = game.workspace.Baseplate parent.Transparency = -0.001 wait (0.01) repeat until parent.Transparency < 0.001
That does it instantaneously.
How do I do this with a delay between each decrease in the transparency, and have it stop when the block is solid?
Thank You In Advance.
You had the right idea, you just ordered your code incorrectly.
local parent = workspace.Baseplate repeat --Repeat starts the loop parent.Transparency = -0.001 wait (0.01) until parent.Transparency == 0 -- until closes the loop with a conditional
parent = game.Workspace.BasePlate while true do if parent.Transparency == 0 then script.Disabled = true else parent.Transparency = parent.Transparency - 1 end end
Tell me if this doesn't work :)