Advertisement
Guest User

Roblox Poop gun script(Hope it works)

a guest
Jul 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. -- made by ihab020920077
  2.  
  3. -- variables
  4.  
  5. local player = game.Players.LocalPlayer
  6. local mouse = player:GetMouse()
  7. local tool = Instance.new("Tool", player.Backpack)
  8. local handle = Instance.new("Part", tool)
  9. handle.Name = "Handle"
  10. handle.Size = Vector3.new(1, 1, 1)
  11. tool.Name = "Poop gun"
  12. equipped = false
  13.  
  14. -- events listeners
  15.  
  16.  
  17. mouse.Button1Down:connect(function()
  18. if equipped == true then
  19. local poop = Instance.new("Part", game.Workspace)
  20. local poopsound = Instance.new("Sound", handle)
  21. poopsound.SoundId = "rbxassetid://357613509"
  22. poopsound.Playing = true
  23. poop.BrickColor = BrickColor.new("Brown")
  24. poop.Size = handle.Size
  25. poop.Material = Enum.Material.Concrete
  26. poop.Shape = "Ball"
  27. poop.Position = mouse.Hit.Position
  28. poop.Anchored = true
  29. if mouse.Target.Parent:FindFirstChild("Humanoid") then
  30. mouse.Target.Parent:FindFirstChild("Humanoid").Health = 0
  31. wait(1)
  32. poopsound:Destroy()
  33. poop:Destroy()
  34. end
  35. if not mouse.Target.Parent:FindFirstChild("Humanoid") then
  36. wait(1)
  37. poopsound:Destroy()
  38. poop:Destroy()
  39. end
  40. end
  41. end)
  42.  
  43. tool.Equipped:connect(function()
  44. equipped = true
  45. end)
  46.  
  47. tool.Unequipped:connect(function()
  48. equipped = false
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement