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 4 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:

1local CurrCam = workspace.Camera
2local NewCam = workspace.NewCam
3CurrCam.CameraType = Enum.CameraType.Scriptable
4while true do
5    CurrCam.CFrame = NewCam.CFrame 
6end

I wrote this by raw btw

1 answer

Log in to vote
1
Answered by 4 years ago

Add Wait() to the loop like this:

1while true do
2    Wait()
3    CurrCam.CFrame = NewCam.CFrame 
4end
0
make sure to always add Wait() to every loop bcs otherwise it may crash the game and other stuff EiOooAxea 70 — 4y
0
What is i do Nifemiplayz 32 — 4y
0
What is i put wait at the end of the loop Nifemiplayz 32 — 4y
Ad

Answer this question