guys I am facing a problem with my slap tool if I slap someone and the one I hit equips a tool and unequip it glitches him
https://gyazo.com/59f03aad5c86d1410f475c5438b539c5
I do the slap effect on a client script like this
client(RayCast,PlayAnim) β Server ( Check distance, check if owns a tool) β Client(flings the client, add a gui effect)
here is the client2 script that moves the player
Remote.OnClientEvent:Connect(function(dir)
blur.Enabled = true
blur.Size = 16
Animation:Play()
local character = Player.Character
if character.Humanoid.SeatPart then
return
end
local Humanoid = character.Humanoid
Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
--Change_Massless(true)
local Body_Force = Instance.new("BodyForce")
Body_Force.Parent = character.HumanoidRootPart
Body_Force.Force = (dir * F) + Vector3.new(0,17,0)
local Angular = Instance.new("BodyGyro")
Angular.Parent = character.HumanoidRootPart
Angular.MaxTorque = h_V3
Angular.P = 200
Angular.D = 0.2
Angular.CFrame = character.HumanoidRootPart.CFrame * CFrame.Angles(rad(130),rad(80),0)
task.wait(.5)
Body_Force:Destroy()
Angular:Destroy()
task.wait(2)
--Change_Massless(false)
end)
Ik itβs deperecated but this is not the issue here.