kingofnuggets

Push Tool Local Script

Jun 6th, 2021
16,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local mouse = game.Players.LocalPlayer:GetMouse()
  2.  
  3.  
  4. script.Parent.Activated:Connect(function()
  5.     if(mouse.Target) then
  6.         local model = mouse.Target.Parent
  7.        
  8.         if(model and model:FindFirstChild("Humanoid") and model.Name ~= game.Players.LocalPlayer.Name) then
  9.             script.Parent.Push:FireServer(model)
  10.         end
  11.     end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment