Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().On = false
- Key = "M"
- Delay = 15 --Configure depending on walkspeed if you are unsure then leave it (Seconds) (MINIMUM DELAY 8)
- LastSlot = "S15"
- Slots = {
- ["S01"] = true;
- ["S02"] = true;
- ["S03"] = true;
- ["S04"] = true;
- ["S05"] = true;
- ["S06"] = true;
- ["S07"] = true;
- ["S08"] = true;
- ["S09"] = true;
- ["S10"] = true;
- ["S11"] = true;
- ["S12"] = true;
- ["S13"] = true;
- ["S14"] = true;
- ["S15"] = true;
- ["S16"] = false;
- ["S17"] = false;
- ["S18"] = false;
- ["S19"] = false;
- ["S20"] = false;
- }
- ---------------------------------------------------------
- local plr = game:GetService'Players'.LocalPlayer
- spawn(function()
- function KillLost()
- for i,v in pairs(workspace.Guttermouth.GuttermouthRoom4.Monsters:GetChildren()) do
- if(v.Name=='PhantomKnightNPC' or v.Name == 'Phantom') and v:FindFirstChild'Humanoid' then
- v.Humanoid.Health = 0
- end
- end
- end
- function Walk() --setclipboard(tostring(plr.Character:WaitForChild'HumanoidRootPart'.Position))
- for i = 1,Delay do
- wait(1)
- plr.Character:WaitForChild'Humanoid':MoveTo(Vector3.new(12531.5635, 251.514069, -2355.00903))
- end
- end
- function OpenChest()
- workspace.Guttermouth.GuttermouthRoom4.ClaimRewards:InvokeServer(true)
- end
- function EnterRoom()
- workspace.Guttermouth["Door_GuttermouthPhantom (Hidden Key)"].InteractEvent:FireServer(true)
- end
- function ExitRoom()
- workspace.Guttermouth.GuttermouthRoom4.GutterExit.InteractEvent:FireServer(true)
- end
- 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
- function DeleteChest()
- if workspace:FindFirstChild('GuttermouthChest') then
- workspace.GuttermouthChest:Destroy()
- 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
- wait(2)
- EnterRoom()
- wait(3)
- KillLost()
- wait(1)
- Walk()
- wait(1)
- OpenChest()
- OpenChest()
- wait(1)
- wait(2)
- DeleteChest()
- DeleteChest()
- ExitRoom()
- end
- end
- end)
Advertisement
Advertisement