xTh3_Hunter

Ragdoll (Anti ragdoll) (punch/push tool)

Jul 13th, 2020
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1. local ME = game:GetService("Players").LocalPlayer
  2. ME.Character["Local Ragdoll"].Disabled = true
  3. local Push = Instance.new("Tool", ME.Backpack)
  4. Push.Name = "Push"
  5. Push.RequiresHandle = false
  6. Push.TextureId = "rbxassetid://2356300816"
  7. Push.ToolTip = "Push"
  8. Push.Activated:Connect(function()
  9.     spawn(function()
  10.         if ME.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  11.             local pushAnim = Instance.new("Animation")
  12.             pushAnim.AnimationId = "rbxassetid://204062532"
  13.             local pushTrack = ME.Character:FindFirstChildOfClass("Humanoid"):LoadAnimation(pushAnim)
  14.             pushTrack:Play(.1, 1, 2.5)
  15.         else
  16.             local pushAnim = Instance.new("Animation")
  17.             pushAnim.AnimationId = "rbxassetid://1984283994"
  18.             local pushTrack = ME.Character:FindFirstChildOfClass("Humanoid"):LoadAnimation(pushAnim)
  19.             pushTrack:Play(.1, 1, 2.5)
  20.         end
  21.     end)
  22.     for _, v in pairs(game:GetService("Players"):GetDescendants()) do
  23.         if v.Name == "PushEvent" and v:IsA("RemoteEvent") then
  24.             return v:FireServer()
  25.         end
  26.     end
  27. end)
Add Comment
Please, Sign In to add comment