MoveWater()
wait(10)
RT.WaterDoor.Transparency = 0
So I need help with this part of my script.
I need the wait(10) to start immediately after MoveWater (Which is a function) is activated. The problem is, that it waits for MoveWater to finish (Which it takes a while to finish) before it starts to do the wait(10).
Is the problem that this is something Roblox does, or is it a problem with the function's code? Here's the function's code...
function MoveWater(part)
for n = 0, MagWater, IncrementWater do
WaterMover.CFrame = WaterMover.CFrame + (DirectionWater * IncrementWater)
wait( (TimeWater/MagWater) * IncrementWater )
end
end
If someone could help me with this it would be much appreciated.
Side note: The wait( (TimeWater/MagWater) * IncrementWater ) is necessary for the function to run properly.

1 comment
Spawn() is a better solution. Cor outlines are messy and I would never advise their use except for in certain situations.