Camera = workspace.CurrentCamera player = game.Players.LocalPlayer character = player.Character newPlayer = workspace.Head newPlayerControl = newPlayer.BodyVelocity Camera.CameraType = Enum.CameraType.Scriptable Camera.CameraSubject = newPlayer mouse = player:GetMouse() function PlayerController() while true do wait(.5) Camera.CFrame = newPlayer.CFrame *CFrame.new(0, 25, 0) *CFrame.Angles(-1.5, 0, 0) end newPlayerControl.Velocity = mouse.Hit.p end mouse.Move:connect(PlayerController())
when i play it without the while loop section it moves the part but when i add it the only code that works is the while loop