Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local Mouse = plr:GetMouse()
- local UIS = game:GetService("UserInputService")
- local Remote = game:GetService("ReplicatedStorage"):WaitForChild("ScrapEvent")
- while wait() do
- for i,v in pairs(game.Workspace.WorkspaceFolder:GetChildren()) do
- v:WaitForChild("SelectionBox").Visible = false
- if Mouse.Target == v then
- v:WaitForChild("SelectionBox").Visible = true
- Mouse.KeyDown:Connect(function(Key,GPE)
- if not GPE then
- if Key == "e" then
- Remote.Collect:FireServer(v)
- end
- end
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement