So. I'm Trying to make a block that moves in a certain vector in which Ive got down. But I want a delay before the bricks start moving. Ive just put the "wait(5)" before the brick starts moving. Though when I go and test the game it starts moving before it is supposed too.
wait(5) while true do script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0.5,0,0) wait(1) end
Any Ideas as why this wont work??
Every script in the game runs when a player joins. (You know that grey screen? thats when they start running). It takes ABOUT 3 seconds for it to load you into the game, and more to load details. Use this to detect when a player joins and wait more time
game.Players.PlayerAdded:Connect(function(plr) plr.Character:Wait() wait(8) while true do script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0.5,0,0) wait(1) end end end