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

I've been trying to make the Camera look at the Player's Torso, please help?

Asked by 10 years ago
game.Players.PlayerAdded:connect(function(player)
    Camera = game.Workspace.CurrentCamera
    Camera.CameraType = "Scriptable"
    Camera.CameraSubject = player.Character.Torso
end)

1 answer

Log in to vote
-1
Answered by
Lacryma 548 Moderation Voter
10 years ago

It has to be a local script and playeradded does not fire in local scripts. Add to startergui or in the player!

So it would most likely look like this:

local player = game.Players.LocalPlayer
Camera = game.Workspace.CurrentCamera
Camera.CameraType = "Scriptable"
Camera.CameraSubject = player.Character.Torso
Ad

Answer this question