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

How do I make a part face what the Player's facing?

I need help on this! I'm making a FNAF rp game and that when you hover the mask button it will fire an event and place a mask on the player, it works fine but, the mask faces one direction, I want it to face where the Player's head is facing!

local mask = game.ServerStorage.FNAFMask:Clone()
mask.CFrame = player.Character.Head.CFrame * CFrame.new(0,0.50,0)
mask.Orientation = player.Character.Head.CFrame.lookVector
mask.Parent = player.Character.Head

1 answer

✓ Accepted answer

Here this should work,

local mask = game.ServerStorage.FNAFMask:Clone()
mask.CFrame = player.Character.Head.CFrame + player.Character.Head.CFrame.LookVector
mask.Parent = player.Character.Head

2 comments

0

After modifying your script for a bit, it works just fine!

0

Thanks, glad i could help

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