Advertisement
Upscalefanatic3

Arsenal Murder | Auto Gun Made by HamstaGang

Jan 5th, 2020
5,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. -- Game Link: https://www.roblox.com/games/4572253581/Arsenal-Murder
  2.  
  3. -- Super simple and easy script.. Pretty much when you press the keybind (set to x right now) it will check a workspace folder and check --- everything for a "Green" GUI and once found it will fire a remote to collect the prop. You just hit the keybind a few times and there --- you go easy gun!
  4.  
  5.  
  6. local LocalPlayer = game.Players.LocalPlayer
  7. local Mouse = LocalPlayer:GetMouse()
  8. Mouse.KeyDown:connect(function(KeyPressed)
  9. if KeyPressed == "x" then
  10. local props = game:GetService("Workspace").Debris.Props:GetDescendants() -- Grab everything in Folder.
  11. for i = 1, #props do -- Loop through everything to find what we need.
  12. local prop = props[i]
  13. if prop.Name == "Green" then -- GUI we are looking for.
  14. game:GetService("ReplicatedStorage").Events.Loot:FireServer(prop.Parent) -- Parent of Green
  15. end
  16. end
  17. end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement