i have tried multiple things including this piece of code that does not work for some reason
local direction = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10000
script.Parent.Blade.Touched:Connect(function(p)
if script.Parent.CanDamage.Value == true then
script.Parent.CanDamage.Value = false
p.Parent.Character.UpperTorso.Velocity = Vector3.new(50, 50, 50) * direction
wait(1)
script.Parent.CanDamage.Value = true
end
end)
i am relatively new with scripting
what i want is that the player that touches the blade gets thrown away to the direction you are facing
any things that i can do?
