Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function findBase()
- local base
- for _,v in pairs(workspace.Bases:GetChildren()) do
- if v:IsA('Model') then
- for _,x in pairs(v:GetChildren()) do
- if x.Name == 'BaseOwner' and x.Value == game:GetService('Players').LocalPlayer.Name then
- base = x.Parent
- end
- end
- end
- end
- return base
- end
- local LocalPlayerBase = findBase()
- local Money = 9e9 --whatever amount you want
- game:GetService("ReplicatedStorage").Remotes.AddStorage:FireServer(Money, LocalPlayerBase)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement