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

Why isnt this local script working? Cframes if you know it please answer

Asked by 3 years ago

So im making a script that when the player joins their camera view will be the same as a part 's view here it is:

local CurrCam = workspace.Camera
local NewCam = workspace.NewCam
CurrCam.CameraType = Enum.CameraType.Scriptable
while true do
    CurrCam.CFrame = NewCam.CFrame  
end

I wrote this by raw btw

1 answer

Log in to vote
1
Answered by 3 years ago

Add Wait() to the loop like this:

while true do
    Wait()
    CurrCam.CFrame = NewCam.CFrame  
end

0
make sure to always add Wait() to every loop bcs otherwise it may crash the game and other stuff EiOooAxea 70 — 3y
0
What is i do Nifemiplayz 32 — 3y
0
What is i put wait at the end of the loop Nifemiplayz 32 — 3y
Ad

Answer this question