Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game.PlaceId == 4572253581 then
- 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
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement