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

How can I get the players head rotation for a spectator mode?

Asked by
Teeter11 281 Moderation Voter
9 years ago

How can i get the rotation of a players head for a spectator mode?

I dont need a script or anything i just want to know where i can get the rotation of the players head so i can use that.

Thanks If you need help understanding what I wrote just leave a comment c:

1 answer

Log in to vote
0
Answered by 9 years ago
local Player = game.Players.BestDeveloper
repeat wait() until Player.Character
local Character = Player.Character
local Head = Character.Head

print(Head.Rotation)

It really depends on how you're fetching the Player. You get the Character from the player by doing Player.Character

Then from there, you get the head from the Character. Once you do that, you print the Heads rotation. print(Head.Rotation)

0
I guess this will work Teeter11 281 — 9y
Ad

Answer this question