Advertisement
lofichill

Untitled

Feb 20th, 2020
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1.  
  2.  
  3. local Workspace = game:GetService("Workspace")
  4. local Players = game:GetService("Players")
  5. local Lighting = game:GetService("Lighting")
  6. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  7. local Events = ReplicatedStorage:WaitForChild("RemoteEvents")
  8.  
  9. local badGuysFolder = Workspace:WaitForChild("BadGuys"):GetChildren()
  10.  
  11. local giveToolEvent = Events:WaitForChild("GiveTool")
  12. local giveEnergyEvent = Events:WaitForChild("Energy")
  13. local buyItemEvent = Events:WaitForChild("BuyItem")
  14.  
  15. local appleTool = "Apple"
  16. local gunTool = "Gun"
  17. local chipsTool = "Chips"
  18. local medkitTool = "Medkit"
  19.  
  20. _G.giveEnergy = true
  21.  
  22. giveToolEvent:FireServer(gunTool)
  23.  
  24. while _G.giveEnergy do
  25. giveEnergyEvent:FireServer(math.huge)
  26. wait(.1)
  27. end
  28. buyItemEvent:FireServer(medkitTool, - math.huge)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement