Advertisement
FurkingBoi

Spaceship

May 22nd, 2020
1,165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. function findBase()
  2. local base
  3.  
  4. for _,v in pairs(workspace.Bases:GetChildren()) do
  5. if v:IsA('Model') then
  6. for _,x in pairs(v:GetChildren()) do
  7. if x.Name == 'BaseOwner' and x.Value == game:GetService('Players').LocalPlayer.Name then
  8. base = x.Parent
  9. end
  10. end
  11. end
  12. end
  13. return base
  14. end
  15.  
  16. local LocalPlayerBase = findBase()
  17. local Money = 9e9 --whatever amount you want
  18. game:GetService("ReplicatedStorage").Remotes.AddStorage:FireServer(Money, LocalPlayerBase)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement