Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to automatically change camera type?

Asked by 4 years ago

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

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

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.

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' Xapelize 2658 — 4y
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' Xapelize 2658 — 4y
0
oh Xapelize 2658 — 4y
Ad
Log in to vote
0
Answered by
Lunaify 66
4 years ago

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

0
nah, doesn't work ThadonROOX 47 — 4y

Answer this question