Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UI = game:GetObjects("rbxassetid://2884392408")[1]
- local Me = game:GetService("Players").LocalPlayer
- local dungeon = workspace:FindFirstChild("dungeon") or false
- local up = false
- local canact = true
- local mouseinside = false
- local Teleport = function(P1, P2)
- local Weld = Instance.new("Weld")
- Weld.Part0 = P1
- Weld.Part1 = P2
- Weld.Parent = P1
- wait(.05)
- Weld:Destroy()
- end
- local functions = {
- ["speed"] = function(Input)
- Me.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = tonumber(Input)
- end,
- ["jump power"] = function(Input)
- Me.Character:FindFirstChildOfClass("Humanoid").JumpPower = tonumber(Input)
- end,
- ["teleport to"] = function(Input)
- local Player
- local Players = game:GetService("Players"):GetPlayers()
- for Index = 1, #Players do
- if Players[Index].Name:lower():sub(1, #Input) == Input:lower() then
- Player = Players[Index]
- end
- end
- if Player then
- Teleport(Me.Character.UpperTorso,Player.Character.UpperTorso)
- end
- end,
- ["teleport to npc"] = function()
- if not dungeon then return end
- local NPC = dungeon:FindFirstChildWhichIsA("Humanoid",true).Parent
- Teleport(Me.Character.UpperTorso,NPC.UpperTorso)
- end,
- ["remove barriers"] = function()
- if not dungeon then return end
- for i,v in pairs(dungeon:GetDescendants()) do
- if v.Name == "barrier" then
- v.Transparency = 1
- v.CanCollide = false
- end
- end
- end
- }
- for i,v in pairs(UI:WaitForChild("tabs"):GetChildren()) do
- v.MouseButton1Click:Connect(function()
- local OtherTab = v.Name == "player" and "game" or "player"
- UI[OtherTab].Visible = false
- UI.tabs[OtherTab].BorderSizePixel = 1
- UI.tabs[OtherTab].TextColor3 = Color3.new(1,1,1)
- v.BorderSizePixel = 2
- v.TextColor3 = Color3.fromRGB(0,170,255)
- UI[v.Name].Visible = true
- end)
- end
- for i,v in pairs(UI:GetDescendants()) do
- if v.ClassName == "TextButton" and functions[v.Text] then
- v.MouseButton1Click:Connect(function()
- if v.Parent.Name == "player" then
- v.Parent.Visible = false
- UI.input.Visible = true
- UI.input.PlaceholderText = v.Text
- UI.input:CaptureFocus()
- local enter = false
- repeat
- enter = UI.input.FocusLost:Wait()
- until enter
- end
- functions[v.Text](UI.input.Text)
- UI.input.Visible = false
- v.Parent.Visible = true
- end)
- end
- end
- UI.MouseEnter:Connect(function()
- mouseinside = true
- if not canact or up then return end
- canact = false
- up = true
- UI:TweenPosition(UDim2.new(0.5, -150, 0.5, -100),nil,nil,.5)
- wait(.45)
- canact = true
- end)
- UI.MouseLeave:Connect(function()
- mouseinside = false
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(I,G)
- if I.UserInputType == Enum.UserInputType.MouseButton1 and not mouseinside and canact then
- canact = false
- up = false
- UI:TweenPosition(UDim2.new(0.5, -150, 1, -25),nil,nil,.5)
- wait(.45)
- canact = true
- end
- end)
- UI.Parent = get_hidden_gui and get_hidden_gui() or game.CoreGui:FindFirstChildOfClass("ScreenGui")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement