Hello,
Recently I’ve been working on a loading screen for my game in which the player’s camera cframe would be in the same position as a part. However, my code simply just doesnt work and there are no errors in the output or anything, any ideas?
local Camera = workspace:WaitForChild("CurrentCamera")
Camera.CFrame = game.Workspace.CamPart.CFrame
Hello,
You’re getting no errors because you the program is waiting for a child named “CurrentCamera” to load inside the workspace. However, “CurrentCamera” is a property of workspace. If you want to get the current camera of the player, place a localscript, loop until the property “CurrentCamera” exists, and use it as you wish after.