HAHOOS

YEET Game Speedcoding Scripts

Sep 17th, 2021
683
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Script
  2.  
  3. script.Parent.Push.OnServerEvent:Connect(function(player,victim)
  4.     local animation = script:WaitForChild('Animation')
  5.     local humanoid = player.Character:WaitForChild('Humanoid')
  6.     local anim = humanoid:LoadAnimation(animation)
  7.     anim:Play()
  8.     wait(1)
  9.     if (victim.HumanoidRootPart.Position - player.Character.HumanoidRootPart.Position).magnitude <= 4.5 and (not player.Character:FindFirstChild("PushForce")) and (not victim:FindFirstChild("PushForce")) then       
  10.         local PushForce = Instance.new("BodyVelocity")
  11.         PushForce.Name = "PushForce"
  12.         PushForce.MaxForce = Vector3.new(10000000,10000000,10000000)
  13.         PushForce.Velocity = (-victim.HumanoidRootPart.CFrame.lookVector) * 100
  14.         PushForce.Parent = victim.HumanoidRootPart
  15.         wait(0.5)
  16.         PushForce:Destroy()
  17.     end
  18. end)
  19.  
  20. -- LocalScript
  21.  
  22. local mouse = game.Players.LocalPlayer:GetMouse()
  23.  
  24. script.Parent.Activated:Connect(function()
  25.     if mouse.Target then
  26.         local model = mouse.Target:FindFirstAncestorOfClass("Model")
  27.         if model then
  28.             if model:FindFirstChild("Humanoid") then
  29.                 script.Parent.Push:FireServer(model)
  30.             end
  31.         end
  32.     end
  33. end)
  34.  
RAW Paste Data