I have been trying to figure this out for an hour now and have gotten nowhere. Cut my life in to pieces, this is my last resort.
Basically I'm trying to get the player to rotate only on the y-axis but this code here will rotate the player model on all axis':
local m = game.Players.LocalPlayer:GetMouse()
if (player.Character.HumanoidRootPart.Velocity).magnitude < 1 then
player.Character.HumanoidRootPart.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position, m.Hit.p)
end
If someone could help me out, point out an easier method, That'd be wonderful.
