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:
1 | local CurrCam = workspace.Camera |
2 | local NewCam = workspace.NewCam |
3 | CurrCam.CameraType = Enum.CameraType.Scriptable |
4 | while true do |
5 | CurrCam.CFrame = NewCam.CFrame |
6 | end |
I wrote this by raw btw
Add Wait() to the loop like this:
1 | while true do |
2 | Wait() |
3 | CurrCam.CFrame = NewCam.CFrame |
4 | end |