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

How to automatically change camera type?

Hi! I'm making customization script and when player customize himself I want to make camera watch him. How can I make it automatically when he is just joined the game?

local Camera = game.Workspace.Camera
local Player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
	Camera.CameraType = "Watch"

2 answers

✓ Accepted answer

Just do this:

game.Players.PlayerAdded(function(plr) -- if player added
	plr.CurrentCamera.CameraType = "Watch" -- change it to watch
end)

there you go! thank 4 watching c:

edit: it, not our problem, it's was your camera problem. Please check your camera again in the ROBLOX setting, recommended to reset to default.

3 comments

0

also note: you need to change the camera to currentcamera. Because the camera is not updatable. Also you can just change the camera type in the camera, simply when he's/she's are joined then they'll changed to 'watch'

0

also note: you need to change the camera to currentcamera. Because the camera is not updatable. Also you can just change the camera type in the camera, simply when he's/she's are joined then they'll changed to 'watch'

0

oh

Just set the CameraType to Watch(without making a script) and once he's done customizing you can make it so the CameraType reverts back to Custom via Script, i guess

1 comment

0

nah, doesn't work

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