Slap battles glove fling

I am currently working on a game like slap battles but have absolutely no idea how to create the ability to hit a player and fling them. I have no code so far and all I have is the actual tool. I have already tried other topics with the same issue but they were never resolved or are too complicated. Does anyone here have an easy script to use?

1 Like

assuming you already have the tool actions working (press to slap, loadanimation on equip) and only need the part where it flings the player:

you just need to define the plr and power variable and it should work

local velocity = Instance.new("BodyVelocity", hit.Parent.HumanoidRootPart
velocity.MaxForce = Vector3.new(1,1,1) *math.huge
local dir = (hit.Parent.HumanoidRootPart.CFrame.Position -plr.Character.HumanoidRootPart.CFrame.Position).Unit
velocity.Velocity = (dir +Vector3.new(0,.5,0)).Unit *power.Value
local rot = Instance.new("BodyAngularVelocity", hit.Parent.HumanoidRootPart)
rot.AngularVelocity = Vector3.new(1,1,1) *math.pi *2
rot.MaxTorque = Vector3.new(2,2,2) *math.huge
rot.P = 5000

game:GetService("Debris"):AddItem(velocity, 0.3)
game:GetService("Debris"):AddItem(rot, 0.3)

(this script was directly ripped from my game btw, but no one probally cares about that)

1 Like

Body velocity is deprecated, use linear velocity instead of body movers.

1 Like