Theres a game that ive been playing and ive wondered how one of the weapons work. If you were to hit someone with this bat they would go flying. What would you use to fling the player away?
(not a request, just a general question)
first you will need to make the player not be able to move here
player.Character.Humanoid.JumpPower = 0 player.Character.Humanoid.WalkSpeed = 0
this will not allow the player to move
Now you will need to add a body velocity to the players HumanoidRootPart Like this!
local BodyVelocity = Instance.new("BodyVelocity",player.Character.HumanoidRootPart)
after those things you will need to make the player fly back using LookVector with CFrame like this :
BodyVelocity.Velocity = script.Parent.CFrame.LookVector * -100 wait(1) BodyVelocity:Destroy()
Hope I Helped!