Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mt = getrawmetatable(game)
- local backup = mt.__namecall
- if setreadonly then setreadonly(mt, false) else make_writeable(mt, true) end
- mt.__namecall = newcclosure(function(...)
- local method = getnamecallmethod()
- local args = {...}
- if method == 'FireServer' or method == 'InvokeServer' and tostring(args[1]) == 'AFK' then
- args[2] = false
- return backup(unpack(args))
- end
- return backup(...)
- end)
- local ItemsYouWant = {
- ['ROBLOX World Tour Hot Air Balloon'] = true,
- ['Darkseed the Fallen'] = true,
- ['Poisoned Horns of the Toxic Wasteland'] = true
- }
- spawn(function()
- while wait(2) do
- game.ReplicatedStorage.Events.OpenCase:InvokeServer'Starter'
- end
- end)
- spawn(function()
- while wait(.1) do
- game.ReplicatedStorage.Events.ClientClick:FireServer()
- end
- end)
- while wait(30) do
- for i,v in pairs(game.Players.LocalPlayer.PlayerGui.Gui.Frames.Inventory.SubInventory.Holder.List:GetChildren()) do
- if v:IsA('Frame') and not ItemsYouWant[v.Name] then
- pcall(function()
- amount, garbage = string.gsub(v.Amount.Text, 'x', '')
- game.ReplicatedStorage.Events.InventoryActions:InvokeServer(
- 'QuickSell',
- v.Name,
- tonumber(amount)
- )
- wait()
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement