please help me with my code

camera = Instance.new("Camera", script.Parent)

script.Parent.CurrentCamera = camera

a = 0

while wait(0.1) do

a = a + 10

camera.CFrame = CFrame.new(script.Parent.Dummy.HumanoidRootPart.Position - Vector3.new(4,0,4), script.Parent.Dummy.HumanoidRootPart.Position + Vector3.new(0,a,0))

end

if u see it unformated then its writing program fault

i wanted to make camera spinnning around object but it dont

4 comments

0

Change while wait() do to while true do.

0

ok

0

this breaks game

0

Then put a wait() in the loop without doing while wait() do.