Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- getgenv().On = false
- LastSlot = "S20"
- Key = "J"
- Slots = {
- ["S01"] = false;
- ["S02"] = false;
- ["S03"] = false;
- ["S04"] = false;
- ["S05"] = false;
- ["S06"] = false;
- ["S07"] = false;
- ["S08"] = true;
- ["S09"] = true;
- ["S10"] = true;
- ["S11"] = true;
- ["S12"] = true;
- ["S13"] = true;
- ["S14"] = true;
- ["S15"] = true;
- ["S16"] = true;
- ["S17"] = true;
- ["S18"] = true;
- ["S19"] = true;
- ["S20"] = true;
- }
- --------------------------------------------------------------------------
- local plr = game:GetService'Players'.LocalPlayer
- spawn(function()
- function SellItems()
- if plr.Inventory[LastSlot].Value ~= 0 then
- for i = 1,25 do
- wait(.03)
- for i,v in pairs(plr.Inventory:GetChildren()) do
- if Slots[v.Name] then
- game:GetService'ReplicatedStorage'.Events.SellShop:FireServer(v.Value, workspace.Shops.Sellers, 1)
- end
- end
- end
- end
- end
- function TpSell()
- if plr.Inventory[LastSlot].Value ~= 0 then
- plr.Character:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(713.500122, 235.300568, -482.247925)
- wait(.15)
- plr.Character:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(12531.5635, 251.514069, -2355.00903)
- end
- end
- end)
- ---
- spawn(function()
- game:GetService'UserInputService'.InputBegan:connect(function(key, gameProcessedEvent)
- if key.KeyCode == Enum.KeyCode[Key] then
- if getgenv().On then
- getgenv().On = false
- elseif not getgenv().On then
- getgenv().On = true
- end
- end
- end)
- end)
- ---
- spawn(function()
- while wait() do
- if getgenv().On then
- TpSell()
- SellItems()
- end
- end
- end)
- ---
- local Pliyer = game.Players.LocalPlayer
- while wait(0.2) do
- for i,v in pairs(workspace.Guttermouth.GuttermouthRoom4.Monsters:GetChildren()) do
- if (v:FindFirstChildOfClass("Humanoid") and v ~= Pliyer.Character) then
- v.Humanoid.Health = 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement