You could use the LookVector of the player’s character’s HumanoidRootPart.
--where 'player is the player object
local character = player.Character or player.CharacterAdded:Wait()
local rootPart = character.HumanoidRootPart
local direction = rootPart.CFrame.LookVector
I’m not sure where you could take it from here but I hope this helps.