Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Devloped By Nexus42, With Gui to Lua (Its EZ :D)
- local PrisonLifeTeleports = Instance.new("ScreenGui")
- local Drag = Instance.new("Frame")
- local Base = Instance.new("Frame")
- local Logo = Instance.new("TextLabel")
- local Prison = Instance.new("TextButton")
- local OutsidePrison = Instance.new("TextButton")
- local CarSpawn = Instance.new("TextButton")
- local PoliceArea = Instance.new("TextButton")
- local Cafeteria = Instance.new("TextButton")
- local Cells = Instance.new("TextButton")
- local Entrance = Instance.new("TextButton")
- local PoliceCars = Instance.new("TextButton")
- local PrisonWalkway = Instance.new("TextButton")
- local HouseArea = Instance.new("TextButton")
- local CriminalBase = Instance.new("TextButton")
- local GasStation = Instance.new("TextButton")
- local GroceryShop = Instance.new("TextButton")
- local SecretArea = Instance.new("TextButton")
- local Prison_2 = Instance.new("TextButton")
- local Logo_2 = Instance.new("TextLabel")
- local Exit = Instance.new("TextButton")
- local Minimize = Instance.new("TextButton")
- local Open = Instance.new("TextButton")
- local PlayerTeleport = Instance.new("Frame")
- local Logo = Instance.new("TextLabel")
- local TeleportPlayer = Instance.new("TextButton")
- local TextBox = Instance.new("TextBox")
- local humanoid = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart
- PrisonLifeTeleports.Name = "Prison Life Teleports"
- PrisonLifeTeleports.Parent = game:GetService('Players').LocalPlayer:WaitForChild("PlayerGui")
- PrisonLifeTeleports.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- game:GetService('StarterGui'):SetCore('SendNotification',{
- Title = "Prison Life Teleport UI",
- Text = "Loaded. This GUI was devloped by Nexus42",
- Duration = 15,
- })
- PlayerTeleport.Name = "PlayerTeleport"
- PlayerTeleport.Parent = Base
- PlayerTeleport.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- PlayerTeleport.BorderSizePixel = 0
- PlayerTeleport.Position = UDim2.new(0, 0, 1, 0)
- PlayerTeleport.Size = UDim2.new(0, 478, 0, 51)
- Logo.Name = "Logo"
- Logo.Parent = PlayerTeleport
- Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Logo.BackgroundTransparency = 1.000
- Logo.Position = UDim2.new(0.52802074, 0, 0.419417381, 0)
- Logo.Size = UDim2.new(0, 218, 0, 29)
- Logo.Font = Enum.Font.SourceSansBold
- Logo.Text = "Developed by Nexus42"
- Logo.TextColor3 = Color3.fromRGB(255, 255, 255)
- Logo.TextSize = 20.000
- Logo.TextXAlignment = Enum.TextXAlignment.Right
- TeleportPlayer.Name = "TeleportPlayer"
- TeleportPlayer.Parent = PlayerTeleport
- TeleportPlayer.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- TeleportPlayer.BorderSizePixel = 0
- TeleportPlayer.Position = UDim2.new(0.575489521, 0, -0.557271004, 0)
- TeleportPlayer.Size = UDim2.new(0, 196, 0, 41)
- TeleportPlayer.Font = Enum.Font.SourceSansBold
- TeleportPlayer.Text = "Teleport To"
- TeleportPlayer.TextColor3 = Color3.fromRGB(255, 255, 255)
- TeleportPlayer.TextSize = 21.000
- TextBox.Parent = PlayerTeleport
- TextBox.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0.020920502, 0, -0.568627477, 0)
- TextBox.Size = UDim2.new(0, 255, 0, 41)
- TextBox.Font = Enum.Font.SourceSansBold
- TextBox.PlaceholderColor3 = Color3.fromRGB(216, 216, 216)
- TextBox.PlaceholderText = "Player Name"
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.TextSize = 25.000
- Drag.Name = "Drag"
- Drag.Parent = PrisonLifeTeleports
- Drag.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- Drag.BorderSizePixel = 0
- Drag.Position = UDim2.new(0.268350422, 0, 0.279126227, 0)
- Drag.Size = UDim2.new(0, 478, 0, 30)
- Base.Name = "Base"
- Base.Parent = Drag
- Base.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- Base.BorderSizePixel = 0
- Base.Position = UDim2.new(0, 0, 1, 2)
- Base.Size = UDim2.new(0, 478, 0, 283)
- Prison.Name = "Prison"
- Prison.Parent = Base
- Prison.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- Prison.BorderSizePixel = 0
- Prison.Position = UDim2.new(0.022859823, 0, 0.0563380271, 0)
- Prison.Size = UDim2.new(0, 147, 0, 38)
- Prison.Font = Enum.Font.SourceSansBold
- Prison.Text = "Prison Yard"
- Prison.TextColor3 = Color3.fromRGB(255, 255, 255)
- Prison.TextSize = 21.000
- OutsidePrison.Name = "Outside Prison"
- OutsidePrison.Parent = Base
- OutsidePrison.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- OutsidePrison.BorderSizePixel = 0
- OutsidePrison.Position = UDim2.new(0.348384947, 0, 0.0563380271, 0)
- OutsidePrison.Size = UDim2.new(0, 147, 0, 38)
- OutsidePrison.Font = Enum.Font.SourceSansBold
- OutsidePrison.Text = "Outside Prison"
- OutsidePrison.TextColor3 = Color3.fromRGB(255, 255, 255)
- OutsidePrison.TextSize = 21.000
- CarSpawn.Name = "Car Spawn"
- CarSpawn.Parent = Base
- CarSpawn.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- CarSpawn.BorderSizePixel = 0
- CarSpawn.Position = UDim2.new(0.677699924, 0, 0.0563380271, 0)
- CarSpawn.Size = UDim2.new(0, 147, 0, 38)
- CarSpawn.Font = Enum.Font.SourceSansBold
- CarSpawn.Text = "Car Spawn"
- CarSpawn.TextColor3 = Color3.fromRGB(255, 255, 255)
- CarSpawn.TextSize = 21.000
- PoliceArea.Name = "Police Area"
- PoliceArea.Parent = Base
- PoliceArea.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- PoliceArea.BorderSizePixel = 0
- PoliceArea.Position = UDim2.new(0.0228598453, 0, 0.221830979, 0)
- PoliceArea.Size = UDim2.new(0, 147, 0, 38)
- PoliceArea.Font = Enum.Font.SourceSansBold
- PoliceArea.Text = "Police Area"
- PoliceArea.TextColor3 = Color3.fromRGB(255, 255, 255)
- PoliceArea.TextSize = 21.000
- Cafeteria.Name = "Cafeteria"
- Cafeteria.Parent = Base
- Cafeteria.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- Cafeteria.BorderSizePixel = 0
- Cafeteria.Position = UDim2.new(0.348384976, 0, 0.221830979, 0)
- Cafeteria.Size = UDim2.new(0, 147, 0, 38)
- Cafeteria.Font = Enum.Font.SourceSansBold
- Cafeteria.Text = "Cafeteria"
- Cafeteria.TextColor3 = Color3.fromRGB(255, 255, 255)
- Cafeteria.TextSize = 21.000
- Cells.Name = "Cells"
- Cells.Parent = Base
- Cells.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- Cells.BorderSizePixel = 0
- Cells.Position = UDim2.new(0.677700043, 0, 0.221830979, 0)
- Cells.Size = UDim2.new(0, 147, 0, 38)
- Cells.Font = Enum.Font.SourceSansBold
- Cells.Text = "Cells"
- Cells.TextColor3 = Color3.fromRGB(255, 255, 255)
- Cells.TextSize = 21.000
- Entrance.Name = "Entrance"
- Entrance.Parent = Base
- Entrance.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- Entrance.BorderSizePixel = 0
- Entrance.Position = UDim2.new(0.0210962296, 0, 0.56354928, 0)
- Entrance.Size = UDim2.new(0, 147, 0, 38)
- Entrance.Font = Enum.Font.SourceSansBold
- Entrance.Text = "Prison Entrance"
- Entrance.TextColor3 = Color3.fromRGB(255, 255, 255)
- Entrance.TextSize = 21.000
- PoliceCars.Name = "Police Cars"
- PoliceCars.Parent = Base
- PoliceCars.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- PoliceCars.BorderSizePixel = 0
- PoliceCars.Position = UDim2.new(0.677999973, 0, 0.736084521, 0)
- PoliceCars.Size = UDim2.new(0, 147, 0, 38)
- PoliceCars.Font = Enum.Font.SourceSansBold
- PoliceCars.Text = "Police Cars"
- PoliceCars.TextColor3 = Color3.fromRGB(255, 255, 255)
- PoliceCars.TextSize = 21.000
- PrisonWalkway.Name = "Prison Walkway"
- PrisonWalkway.Parent = Base
- PrisonWalkway.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- PrisonWalkway.BorderSizePixel = 0
- PrisonWalkway.Position = UDim2.new(0.677999973, 0, 0.560028195, 0)
- PrisonWalkway.Size = UDim2.new(0, 147, 0, 38)
- PrisonWalkway.Font = Enum.Font.SourceSansBold
- PrisonWalkway.Text = "Prison Walkway"
- PrisonWalkway.TextColor3 = Color3.fromRGB(255, 255, 255)
- PrisonWalkway.TextSize = 21.000
- HouseArea.Name = "House Area"
- HouseArea.Parent = Base
- HouseArea.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- HouseArea.BorderSizePixel = 0
- HouseArea.Position = UDim2.new(0.677999973, 0, 0.391014099, 0)
- HouseArea.Size = UDim2.new(0, 147, 0, 38)
- HouseArea.Font = Enum.Font.SourceSansBold
- HouseArea.Text = "House Area"
- HouseArea.TextColor3 = Color3.fromRGB(255, 255, 255)
- HouseArea.TextSize = 21.000
- CriminalBase.Name = "Criminal Base"
- CriminalBase.Parent = Base
- CriminalBase.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- CriminalBase.BorderSizePixel = 0
- CriminalBase.Position = UDim2.new(0.347456038, 0, 0.391014099, 0)
- CriminalBase.Size = UDim2.new(0, 147, 0, 38)
- CriminalBase.Font = Enum.Font.SourceSansBold
- CriminalBase.Text = "Criminal Base"
- CriminalBase.TextColor3 = Color3.fromRGB(255, 255, 255)
- CriminalBase.TextSize = 21.000
- GasStation.Name = "Gas Station"
- GasStation.Parent = Base
- GasStation.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- GasStation.BorderSizePixel = 0
- GasStation.Position = UDim2.new(0.347456038, 0, 0.560028195, 0)
- GasStation.Size = UDim2.new(0, 147, 0, 38)
- GasStation.Font = Enum.Font.SourceSansBold
- GasStation.Text = "Gas Station"
- GasStation.TextColor3 = Color3.fromRGB(255, 255, 255)
- GasStation.TextSize = 21.000
- GroceryShop.Name = "Grocery Shop"
- GroceryShop.Parent = Base
- GroceryShop.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- GroceryShop.BorderSizePixel = 0
- GroceryShop.Position = UDim2.new(0.347456038, 0, 0.736084521, 0)
- GroceryShop.Size = UDim2.new(0, 147, 0, 38)
- GroceryShop.Font = Enum.Font.SourceSansBold
- GroceryShop.Text = "Grocery Shop"
- GroceryShop.TextColor3 = Color3.fromRGB(255, 255, 255)
- GroceryShop.TextSize = 21.000
- SecretArea.Name = "Secret Area"
- SecretArea.Parent = Base
- SecretArea.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- SecretArea.BorderSizePixel = 0
- SecretArea.Position = UDim2.new(0.0210962296, 0, 0.736084521, 0)
- SecretArea.Size = UDim2.new(0, 147, 0, 38)
- SecretArea.Font = Enum.Font.SourceSansBold
- SecretArea.Text = "Secret Spot"
- SecretArea.TextColor3 = Color3.fromRGB(255, 255, 255)
- SecretArea.TextSize = 21.000
- Prison_2.Name = "Prison"
- Prison_2.Parent = Base
- Prison_2.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- Prison_2.BorderSizePixel = 0
- Prison_2.Position = UDim2.new(0.0210962016, 0, 0.391014099, 0)
- Prison_2.Size = UDim2.new(0, 147, 0, 38)
- Prison_2.Font = Enum.Font.SourceSansBold
- Prison_2.Text = "Shops"
- Prison_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Prison_2.TextSize = 21.000
- Logo_2.Name = "Logo"
- Logo_2.Parent = Drag
- Logo_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Logo_2.BackgroundTransparency = 1.000
- Logo_2.Position = UDim2.new(0.0225659683, 0, -4.76837158e-07, 0)
- Logo_2.Size = UDim2.new(0, 467, 0, 29)
- Logo_2.Font = Enum.Font.SourceSansBold
- Logo_2.Text = "Prison Life Teleports"
- Logo_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Logo_2.TextSize = 20.000
- Logo_2.TextXAlignment = Enum.TextXAlignment.Left
- Exit.Name = "Exit"
- Exit.Parent = Drag
- Exit.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- Exit.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Exit.BorderSizePixel = 0
- Exit.Position = UDim2.new(0.914225936, 0, 0, 0)
- Exit.Size = UDim2.new(0, 41, 0, 28)
- Exit.Font = Enum.Font.SourceSansBold
- Exit.Text = "X"
- Exit.TextColor3 = Color3.fromRGB(255, 255, 255)
- Exit.TextSize = 14.000
- Minimize.Name = "Minimize"
- Minimize.Parent = Drag
- Minimize.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- Minimize.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Minimize.BorderSizePixel = 0
- Minimize.Position = UDim2.new(0.828451872, 0, 0, 0)
- Minimize.Size = UDim2.new(0, 41, 0, 28)
- Minimize.Font = Enum.Font.SourceSansBold
- Minimize.Text = "_"
- Minimize.TextColor3 = Color3.fromRGB(255, 255, 255)
- Minimize.TextSize = 14.000
- Open.Name = "Open"
- Open.Parent = Drag
- Open.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- Open.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Open.BorderSizePixel = 0
- Open.Position = UDim2.new(0.914225936, 0, 0, 0)
- Open.Size = UDim2.new(0, 41, 0, 28)
- Open.Visible = false
- Open.Font = Enum.Font.SourceSansBold
- Open.Text = "O"
- Open.TextColor3 = Color3.fromRGB(255, 255, 255)
- Open.TextSize = 14.000
- local UIS = game:GetService("UserInputService")
- function dragify(Frame)
- dragToggle = nil
- local dragSpeed = 0.25
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(Drag)
- Exit.MouseButton1Click:Connect(function()
- PrisonLifeTeleports:Destroy()
- end)
- Minimize.MouseButton1Click:Connect(function()
- Open.Visible = true
- Minimize.Visible = false
- Exit.Visible = false
- Base.Visible = false
- end)
- Open.MouseButton1Click:Connect(function()
- Open.Visible = false
- Minimize.Visible = true
- Exit.Visible = true
- Base.Visible = true
- end)
- GroceryShop.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(-415, 55, 1750)
- print("Teleported")
- end)
- CarSpawn.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(-200, 55, 1880)
- print("Teleported")
- end)
- OutsidePrison.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(280, 72, 2222)
- print("Teleported")
- end)
- Prison.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(777, 95, 2460)
- print("Teleported")
- end)
- Prison_2.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(-370, 55, 1775)
- print("Teleported")
- end)
- SecretArea.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(-920, 95, 1990)
- print("Teleported")
- end)
- GasStation.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(-520, 55, 1660)
- print("Teleported")
- end)
- CriminalBase.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(-910, 95, 2060)
- print("Teleported")
- end)
- HouseArea.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(-230, 55, 2520)
- print("Teleported")
- end)
- PrisonWalkway.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(505, 125, 2330)
- print("Teleported")
- end)
- PoliceCars.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(615, 100, 2515)
- print("Teleported")
- end)
- Entrance.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(710, 100, 2300)
- print("Teleported")
- end)
- PoliceArea.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(855, 100, 2297)
- print("Teleported")
- end)
- Cells.MouseButton1Click:Connect(function()
- humanoid.CFrame = CFrame.new(915, 100, 2450)
- print("Teleported")
- end)
- Cafeteria.MouseButton1Down:Connect(function()
- humanoid.CFrame = CFrame.new(930, 100, 2285)
- print("Teleported")
- end)
- TeleportPlayer.MouseButton1Click:Connect(function()
- local playerName = TextBox.Text
- if game:GetService('Players'):FindFirstChild(playerName) then
- local playerss = game:GetService('Players')
- local playerPos = playerss:FindFirstChild(playerName).Character.HumanoidRootPart.CFrame.Position
- game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(playerPos)
- else if not game:GetService('Players'):FindFirstChild(playerName) then
- game:GetService('StarterGui'):SetCore('SendNotification',{
- Title = "Oops...",
- Text = "This player is not online, choose another player",
- Duration = 10,
- })
- end
- end
- end)
Add Comment
Please, Sign In to add comment