Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- local tycoon = nil
- local function getTycoon()
- for i, v in ipairs(workspace.Tycoons:GetChildren()) do
- if v:FindFirstChild("Owner") then
- if v.Owner.Value == plr.Name then
- tycoon = v
- end
- end
- end
- end
- repeat getTycoon() until tycoon
- local function buyAvs()
- for i, v in ipairs(tycoon.Buttons:GetChildren()) do
- local myCash = plr.leaderstats.Cash.Value
- if v.Button.Transparency ~= 1 and myCash >= v.Price.Value and v.Price.Value ~= 0 then
- firetouchinterest(plr.Character.Head, v.Button, 1)
- firetouchinterest(plr.Character.Head, v.Button, 0)
- end
- end
- end
- local function collectCash()
- firetouchinterest(plr.Character.Head, tycoon.Essential.CashCollect.Collect, 1)
- firetouchinterest(plr.Character.Head, tycoon.Essential.CashCollect.Collect, 0)
- end
- while wait(3) do
- if plr.Character then
- collectCash()
- buyAvs()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement