Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while wait() do
- local blname = "UIListLayout"
- local plr = game.Players.LocalPlayer
- for i,v in pairs(plr.PlayerGui.Workshop.Main.Materials:GetChildren()) do
- local Remote = game.ReplicatedStorage.Comm.Events.ClientServer.Workshop['NewToy']
- Remote:FireServer(1)
- wait()
- if v.Name ~= blname then
- for i=1,5 do
- local Remote = game.ReplicatedStorage.Comm.Functions.ClientServer.Workshop['NewMaterial']
- Remote:InvokeServer(v.Name)
- local Remote = game.ReplicatedStorage.Comm.Events.ClientServer.Workshop['DepositMaterial']
- Remote:FireServer(workspace.Map.Buildings.Interiors.Workshop.Machine.Machine1)
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment