Upscalefanatic3

Mad City Get all items Script

Apr 3rd, 2019
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. for _,v in next, game.ReplicatedStorage.ItemDatabase:GetDescendants() do
  2. if v.Name == "Data" then
  3. local a = require(v)
  4. if a["Price"] then
  5. if a["Price"] == 1 then
  6. game.ReplicatedStorage.RemoteFunction:InvokeServer("BuyItem", a["ItemName"])
  7. end
  8. end
  9. end
  10. end
  11.  
  12.  
  13. warn("Done, You're Good To Go!")
Add Comment
Please, Sign In to add comment