turrtle

North Pole Script

Dec 6th, 2018
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. while wait() do
  2. local blname = "UIListLayout"
  3. local plr = game.Players.LocalPlayer
  4. for i,v in pairs(plr.PlayerGui.Workshop.Main.Materials:GetChildren()) do
  5. local Remote = game.ReplicatedStorage.Comm.Events.ClientServer.Workshop['NewToy']
  6. Remote:FireServer(1)
  7. wait()
  8. if v.Name ~= blname then
  9. for i=1,5 do
  10. local Remote = game.ReplicatedStorage.Comm.Functions.ClientServer.Workshop['NewMaterial']
  11. Remote:InvokeServer(v.Name)
  12. local Remote = game.ReplicatedStorage.Comm.Events.ClientServer.Workshop['DepositMaterial']
  13. Remote:FireServer(workspace.Map.Buildings.Interiors.Workshop.Machine.Machine1)
  14. end
  15. end
  16. end
  17. end
Add Comment
Please, Sign In to add comment