How would I make this work / what's wrong with it?
local Model = game.Workspace.Model for i = 1, 100 do Model:MoveTo(Vector3.new(Model.CFrame = Model.CFrame + Vector3.new(0,0,.01)) wait(3) for i = 1,100 do Model:MoveTo(Vector3.new(Model.CFrame = Model.CFrame - Vector3.new(0,0,.01)) end
You missed ends
local Model = game.Workspace.Model for i = 1, 100 do Model:MoveTo(Vector3.new(Model.CFrame = Model.CFrame + Vector3.new(0,0,.01)) end wait(3) for i = 1,100 do Model:MoveTo(Vector3.new(Model.CFrame = Model.CFrame - Vector3.new(0,0,.01)) end