Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

Add Wait() to the loop like this:

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

3 comments

0

make sure to always add Wait() to every loop bcs otherwise it may crash the game and other stuff

0

What is i do

0

What is i put wait at the end of the loop

This discussion is preserved as it was. New answers, comments, and votes are closed.