Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for _,v in next, game.ReplicatedStorage.ItemDatabase:GetDescendants() do
- if v.Name == "Data" then
- local a = require(v)
- if a["Price"] then
- if a["Price"] == 1 then
- game.ReplicatedStorage.RemoteFunction:InvokeServer("BuyItem", a["ItemName"])
- end
- end
- end
- end
- warn("Done, You're Good To Go!")
Add Comment
Please, Sign In to add comment