Today I started messing with the properties a humanoid haves, and after playing with the CameraOffset property I tried making a script that will put the camera offset of a character to 0, 7, 0 when he joins the game, sadly the script isn't working, can someone please tell me what my mistake was?

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        workspace.Player.Humanoid.CameraOffset = 0, 7, 0
    end)
end)

1 comment

2

CameraOffset is a Vector3 value. So you need to do Vector3.new(x, y, z)