Advertisement
Meliodas0_0

| [Mad City] Give Widowmaker Vehicle

Feb 12th, 2020
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. for i,v in pairs(game:GetService("ReplicatedStorage").ItemDatabase.Vehicles:GetChildren()) do
  2. local a = require(v.Data)
  3. for i2,v2 in pairs(a) do
  4. if a.Price == 0 then
  5. game.ReplicatedStorage.RemoteFunction:InvokeServer("BuyItem", ""..v.Name.."")
  6. end
  7. end
  8. end
  9.  
  10. You could've used tostring. game.ReplicatedStorage.RemoteFunction:InvokeServer("BuyItem", tostring(v))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement