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

Can't change camera?

I am trying to set a player's camera to look far away from a part. Is there a way I can just focus on a part, lock it in and zoom it out as far as I want? I tried it, but it only focuses on the part. It doesn't let me change how far it is from it.

local cam = workspace.CurrentCamera
cam.CameraSubject=workspace.Part
cam.CoordinateFrame=CFrame.new(10,10,10)
cam.CameraType = "Attach"

2 comments

0

Pretty sure you have to wait until the players character has loaded before changing the camera. "repeat wait() until game.Players.LocalPlayer.Character"

0

I have the wait in another script. The wiki told me to make a script and put a local script in it. It said to also put a wait until the player's character loads in. It does lock on to the part, but it doesn't let me change the CFrame.

1 answer

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