local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Jail Tycoon", Icon = "dollar-sign", -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default). LoadingTitle = "Jail Tycoon", LoadingSubtitle = "by EvilDragon", ShowText = "Jail Tycoon", -- for mobile users to unhide Rayfield, change if you'd like Theme = "Amethyst", -- Check https://docs.sirius.menu/rayfield/configuration/themes ToggleUIKeybind = "k", -- The keybind to toggle the UI visibility (string like "K" or Enum.KeyCode) DisableRayfieldPrompts = false, DisableBuildWarnings = false, -- Prevents Rayfield from emitting warnings when the script has a version mismatch with the interface. ConfigurationSaving = { Enabled = false, FolderName = nil, -- Create a custom folder for your hub/game FileName = "Big Hub" }, Discord = { Enabled = false, -- Prompt the user to join your Discord server if their executor supports it Invite = "noinvitelink", -- The Discord invite code, do not include Discord.gg/. E.g. Discord.gg/ ABCD would be ABCD RememberJoins = true -- Set this to false to make them join the Discord every time they load it up }, KeySystem = false, -- Set this to true to use our key system KeySettings = { Title = "Untitled", Subtitle = "Key System", Note = "No method of obtaining the key is provided", -- Use this to tell the user how to get a key FileName = "Key", -- It is recommended to use something unique, as other scripts using Rayfield may overwrite your key file SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from Key = {"Hello"} -- List of keys that the system will accept, can be RAW file links (pastebin, github, etc.) or simple strings ("hello", "key22") } }) local mainTab = Window:CreateTab("Main", "dollar-sign") -- Title, Image local teleportTab = Window:CreateTab("Teleport", "map-pin") -- Title, Image local miscTab = Window:CreateTab("Misc", "menu") -- Title, Image local dropAmount = 100000000000 local savedKey = nil local mt = getrawmetatable(game) local oldNamecall = mt.__namecall setreadonly(mt, false) mt.__namecall = newcclosure(function(self, ...) local method = getnamecallmethod() local args = {...} if method == "FireServer" and self.Name == "DropSell" then if args[2] then savedKey = args[2] print("Captured Key: " .. tostring(savedKey)) end end return oldNamecall(self, ...) end) setreadonly(mt, true) local dropAmount = 100000000000 local savedKey = nil local mt = getrawmetatable(game) local oldNamecall = mt.__namecall setreadonly(mt, false) mt.__namecall = newcclosure(function(self, ...) local method = getnamecallmethod() local args = {...} if method == "FireServer" and self.Name == "DropSell" then if args[2] then savedKey = args[2] print("Captured Key: " .. tostring(savedKey)) end end return oldNamecall(self, ...) end) setreadonly(mt, true) mainTab:CreateInput({ Name = "Set Money Amount", CurrentValue = "0", PlaceholderText = "Enter number...", RemoveTextAfterFocusLost = false, Flag = "AmountInput", Callback = function(Text) local num = tonumber(Text) if num then dropAmount = num end end, }) mainTab:CreateButton({ Name = "Infinite Money", Callback = function() if savedKey == nil then Rayfield:Notify({ Title = "Info", Content = "Please sell 1 item first to Bypass security", Image = "shield-alert", Duration = 5 }) else local args = { dropAmount, savedKey } game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("DropSell"):FireServer(unpack(args)) end end, }) local Button = teleportTab:CreateButton({ Name = "Tp to Collector ", Callback = function() game.Players.LocalPlayer.Character:PivotTo(CFrame.new(-758, 63, 334)) end, }) local Button = teleportTab:CreateButton({ Name = "Tp to Entrance ", Callback = function() game.Players.LocalPlayer.Character:PivotTo(CFrame.new(-596, 64, 268)) end, }) local Button = miscTab:CreateButton({ Name = "Inifnite Yield ", Callback = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))() end, })