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

camera isnt spinning around object?

Asked by
tomekcz 174
5 years ago

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

0
Change while wait() do to while true do. DeceptiveCaster 3761 — 5y
0
ok tomekcz 174 — 5y
0
this breaks game tomekcz 174 — 5y
0
Then put a wait() in the loop without doing while wait() do. DeceptiveCaster 3761 — 5y

Answer this question