I want the character to look where the mouse is pointing for a few seconds, but when I try it, it just makes the player fall down. Like this
Here is the code that I'm using:
cooldown36 = 0
script.Parent.Pound36.OnServerEvent:Connect(function(Player, mousehit)
if Player.Stats.Stamina.Value >= 350 and Player.NonStats.Stunned.Value == false
and Player.Character.Humanoid.Health ~= 0 and Player.NonStats.Attacking2.Value == false
and Player.Stats.Blade.Value >= 40 and cooldown36 == 0 then
cooldown36 = 1
Player.NonStats.Attacking.Value = true
Player.NonStats.Attacking2.Value = true
Player.Stats.Stamina.Value = Player.Stats.Stamina.Value - 350
local Fire = Player.Character.Humanoid:LoadAnimation(script.Parent.Fire)
Player.Character.Humanoid.WalkSpeed = 0
Fire:Play()
local Torso = Player.Character.LowerTorso
Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(mousehit.p.X, 0, mousehit.p.Z))
wait(1)
Player.NonStats.Attacking2.Value = false
if Player.NonStats.Sprint.Value == true then Player.Character.Humanoid.WalkSpeed = 30 end
if Player.NonStats.Sprint.Value == false then Player.Character.Humanoid.WalkSpeed = 16 end
Player.NonStats.Attacking2.Value = false
wait(20)
cooldown36 = 0
end
end)
Thanks for reading!

3 comments
I'm having trouble with this as well. I do know that editing angles x and z will make your character fall down. You have to edit angle Y.
I suggest you play animations on the client instead of theserver
Playing animations from a local script needlessly complicates timing of animations. Thanks anyways