This is my script:
LOL = game.workspace.Part
while LOL.game.workspace.Part == true do LOL.CFrame = CFrame.new(-8.5, 6.5, 24.5) wait(1) LOL.CFrame = CFrame.new(-12.5, 3.5, 20.5) wait(1) LOL.CFrame = CFrame.new(-18.5, 8.5, 20.5)
I have no idea how to make a loop for this. Any ideas?
Firstly, you're indexing your part as a boolean, which it isn't. You need to insert a BoolValue into it and name it Boolean. Now we need to see if it is true;
LOL = game.workspace.Part while LOL.Boolean.Value do -- We don't need to do` == true` as this is an automatic feature in Lua. LOL.CFrame = CFrame.new(-8.5, 6.5, 24.5) wait(1) LOL.CFrame = CFrame.new(-12.5, 3.5, 20.5) wait(1) LOL.CFrame = CFrame.new(-18.5, 8.5, 20.5) end