Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

The script keeps rotating, help??

Asked by 9 years ago
01debounce = false
02 
03script.Parent.Parent.SpawnLocation.ClickDetector.MouseClick:connect(function(yoo)
04if debounce == false then
05debounce = true
06local target = workspace.CIRCLETHIS
07local camera = workspace.CurrentCamera
08camera.CameraSubject = target
09local angle = 0
10    while wait() do
11        camera.CoordinateFrame = CFrame.new(target.Position)
12                               * CFrame.Angles(0, angle, 0)
13                               * CFrame.new(0, 0, -.1)      
14        angle = angle + math.rad(1)
15    end
View all 27 lines...

After I click the part it starts circling, it returns to me but it doesn't stop spinning,

Answer this question