Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in pairs(game:GetService("ReplicatedStorage").ItemDatabase.Vehicles:GetChildren()) do
- local a = require(v.Data)
- for i2,v2 in pairs(a) do
- if a.Price == 0 then
- game.ReplicatedStorage.RemoteFunction:InvokeServer("BuyItem", ""..v.Name.."")
- end
- end
- end
- You could've used tostring. game.ReplicatedStorage.RemoteFunction:InvokeServer("BuyItem", tostring(v))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement