Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- -----------------------------
- Default Controls:
- f3 to toggle Autofarm money
- -----------------------------
- Settings
- --]]
- Key1 = "F3" --Default is f3
- Key2 = "F4" --Default is f4
- NonUIS = false -- set to true if you are using Non-UIS
- if NonUIS == true then
- _G.on = 1 --if you are using non-uis, set this to 0 to turn off mob farm
- _G.on2 = 1 --if you are using non-uis, set this to 0 to turn off money farm
- end
- --[[
- You can not use certain special characters so I would keep it to the function keys and normal keys
- E.g. F1, F2, F3, J, K, L, 1, 2, 3, LeftAlt, Space
- -----------------------------
- Game:
- https://www.roblox.com/games/2030764761/Casino-Tycoon-ALPHA-REBIRTHS
- -----------------------------
- Description:
- This will autofarm for money, basically this will autocollect the items you have
- The more upgraded and more things you have, the quicker the money
- -----------------------------
- Credit:
- Original: @Verm brianops16
- -----------------------------
- --]]
- plr = game:GetService('Players').LocalPlayer
- function code()
- for i,v in pairs(game.Workspace.CasinosFolder:GetChildren()) do
- local owner = v:FindFirstChild("Owner",true)
- if owner.Value == plr and _G.on == 1 then
- local casino = owner.Parent
- for b,item in pairs(casino.CasinoArea.Items:GetChildren()) do
- if _G.on == 1 and item ~= nil then
- local index = item:FindFirstChild("PlacedIndex",true)
- local A_1 = item.Name
- local A_2 = index.Value
- local Event = game:GetService("ReplicatedStorage").Events.CasinoItemReveneu
- Event:FireServer(A_1, A_2)
- end
- end
- end
- end
- end
- function code2()
- -- Script goes here
- end
- ----
- if NonUIS == false then
- local UIS = game:GetService("UserInputService")
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode[Key1] then
- if _G.on == 1 then
- _G.on = 0
- else
- _G.on = 1
- game:GetService('RunService').Stepped:wait()
- while _G.on == 1 do
- game:GetService('RunService').Stepped:wait()
- local good,bad = pcall(code)
- if good and _G.on == 1 then
- code()
- else
- game:GetService('RunService').Stepped:wait()
- end
- end
- end
- elseif KeyCode == Enum.KeyCode[Key2] then
- if _G.on2 == 1 then
- _G.on2 = 0
- else
- _G.on2 = 1
- wait(Interval)
- while _G.on2 == 1 do
- wait(Interval)
- local good,bad = pcall(code2)
- if good and _G.on2 == 1 then
- code2()
- else
- wait(Interval)
- end
- end
- end
- end
- end)
- else
- while _G.on == 1 do
- game:GetService('RunService').Stepped:wait()
- local good,bad = pcall(code)
- if good and _G.on == 1 then
- code()
- code2()
- else
- game:GetService('RunService').Stepped:wait()
- end
- end
- end
- --Description and controls at the top
Advertisement
Add Comment
Please, Sign In to add comment