how come this script works:
wait()
local Player = game.Players.LocalPlayer
local Camera = game.workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = game.Workspace.CameraPart.CFrame
but this one wont unless you respawn?
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = game.workspace.CurrentCamera
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = game.Workspace.CameraPart.CFrame

2 comments
Thank you for the effort, but i wasent looking for a script rather an explanation to why the first code works on spawn and the second one dosent.
oh