Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Game Link: https://www.roblox.com/games/4572253581/Arsenal-Murder
- -- 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!
- local LocalPlayer = game.Players.LocalPlayer
- local Mouse = LocalPlayer:GetMouse()
- Mouse.KeyDown:connect(function(KeyPressed)
- if KeyPressed == "x" then
- local props = game:GetService("Workspace").Debris.Props:GetDescendants() -- Grab everything in Folder.
- for i = 1, #props do -- Loop through everything to find what we need.
- local prop = props[i]
- if prop.Name == "Green" then -- GUI we are looking for.
- game:GetService("ReplicatedStorage").Events.Loot:FireServer(prop.Parent) -- Parent of Green
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement