pls i have this script which keeps crashing my studio and i dont know how to fix it it is a loop that moves a part around a line its for my game pls help me
part = game.Workspace.skate while true do part.CFrame = part.CFrame*CFrame.new(1,0,0) part.BrickColor = BrickColor.random() print("debug") end
part = game.Workspace.skate while true do part.CFrame = part.CFrame*CFrame.new(1,0,0) part.BrickColor = BrickColor.random() print("debug") wait() end
You have a while true do loop which is an infinite loop. ALL infinite loop needs wait() <- doesnt matter how many sec. else you will crash
part = game.Workspace.skate while true do part.CFrame = part.CFrame*CFrame.new(1,0,0) part.BrickColor = BrickColor.random() print("debug") wait() end