Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local TweenService = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- -- ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "TeleportGUI"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = playerGui
- -- Loading Sound (First Song)
- local loadingSound = Instance.new("Sound")
- loadingSound.SoundId = "rbxassetid://1841647093"
- loadingSound.Volume = 1
- loadingSound.PlayOnRemove = false
- loadingSound.Parent = screenGui
- loadingSound:Play()
- -- Click Sound
- local clickSound = Instance.new("Sound")
- clickSound.SoundId = "rbxassetid://6042053626"
- clickSound.Volume = 1
- clickSound.PlayOnRemove = false
- clickSound.Parent = screenGui
- -- Loading Label
- local loadingLabel = Instance.new("TextLabel")
- loadingLabel.Size = UDim2.new(0, 300, 0, 100)
- loadingLabel.Position = UDim2.new(0.5, -150, 0.5, -50)
- loadingLabel.BackgroundTransparency = 1
- loadingLabel.Text = "Loading..."
- loadingLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
- loadingLabel.Font = Enum.Font.GothamBlack
- loadingLabel.TextSize = 36
- loadingLabel.TextStrokeTransparency = 0.5
- loadingLabel.Parent = screenGui
- -- Rainbow Tween
- local function rainbowTween(label)
- local colors = {
- Color3.fromRGB(255, 0, 0),
- Color3.fromRGB(255, 165, 0),
- Color3.fromRGB(255, 255, 0),
- Color3.fromRGB(0, 255, 0),
- Color3.fromRGB(0, 255, 255),
- Color3.fromRGB(0, 0, 255),
- Color3.fromRGB(255, 0, 255),
- }
- local index = 1
- while label.Parent do
- local tween = TweenService:Create(label, TweenInfo.new(0.4), {TextColor3 = colors[index]})
- tween:Play()
- tween.Completed:Wait()
- index = index % #colors + 1
- end
- end
- coroutine.wrap(function()
- rainbowTween(loadingLabel)
- end)()
- -- Main Frame
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0, 300, 0, 400)
- mainFrame.Position = UDim2.new(0.05, 0, -0.5, 0)
- mainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 40)
- mainFrame.BorderSizePixel = 0
- mainFrame.Visible = false
- mainFrame.Active = true
- mainFrame.Draggable = true
- mainFrame.Parent = screenGui
- -- Title
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Size = UDim2.new(1, 0, 0, 40)
- titleLabel.Position = UDim2.new(0, 0, 0, 0)
- titleLabel.BackgroundColor3 = Color3.fromRGB(55, 55, 65)
- titleLabel.Text = "Untitled's Assist"
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.Font = Enum.Font.GothamBold
- titleLabel.TextSize = 20
- titleLabel.Parent = mainFrame
- -- Z Hint
- local zHint = Instance.new("TextLabel")
- zHint.Size = UDim2.new(1, 0, 0, 25)
- zHint.Position = UDim2.new(0, 0, 1, -25)
- zHint.BackgroundTransparency = 1
- zHint.Text = "[Z] to Close/Open"
- zHint.TextColor3 = Color3.fromRGB(200, 200, 200)
- zHint.Font = Enum.Font.Gotham
- zHint.TextSize = 14
- zHint.Parent = mainFrame
- -- Scroll Frame
- local scrollFrame = Instance.new("ScrollingFrame")
- scrollFrame.Size = UDim2.new(1, 0, 1, -65)
- scrollFrame.Position = UDim2.new(0, 0, 0, 40)
- scrollFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
- scrollFrame.BorderSizePixel = 0
- scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- scrollFrame.ScrollBarThickness = 6
- scrollFrame.Parent = mainFrame
- local listLayout = Instance.new("UIListLayout")
- listLayout.Padding = UDim.new(0, 5)
- listLayout.Parent = scrollFrame
- -- Teleport Button Function
- local function createTeleportButton(name, position)
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(1, -10, 0, 40)
- button.BackgroundColor3 = Color3.fromRGB(60, 60, 70)
- button.BorderSizePixel = 0
- button.Text = name
- button.TextColor3 = Color3.new(1, 1, 1)
- button.Font = Enum.Font.Gotham
- button.TextSize = 16
- button.Parent = scrollFrame
- button.MouseButton1Click:Connect(function()
- clickSound:Play() -- Play the click sound on button click
- local character = player.Character
- if character and character:FindFirstChild("HumanoidRootPart") then
- character.HumanoidRootPart.CFrame = CFrame.new(position)
- end
- end)
- end
- -- Locations (including Pizza Place)
- local locations = {
- {"Nursery", Vector3.new(-247, 31, -1488)},
- {"Coffee Shop", Vector3.new(-272, 31, -1763)},
- {"Ice Cream Shop", Vector3.new(-223, 31, -1769)},
- {"Salon", Vector3.new(-132, 31, -1762)},
- {"Car Shop", Vector3.new(-55, 31, -1758)},
- {"PlayGround", Vector3.new(-381, 31, -1755)},
- {"Potty + Strollers", Vector3.new(-448, 31, -1657)},
- {"Hot Spring", Vector3.new(-600, 28, -1473)},
- {"SuperMarket", Vector3.new(-390, 31, -1207)},
- {"Camp", Vector3.new(-33, 31, -1073)},
- {"Hospital", Vector3.new(-192, 31, -1443)},
- {"School", Vector3.new(-305, 31, -1503)},
- {"Pizza Place", Vector3.new(-126.243, 30.798, -1663.765)}
- }
- for _, loc in pairs(locations) do
- createTeleportButton(loc[1], loc[2])
- end
- scrollFrame.CanvasSize = UDim2.new(0, 0, 0, #locations * 45)
- -- Show GUI with Tween
- task.delay(3, function()
- loadingLabel:Destroy()
- mainFrame.Visible = true
- local tween = TweenService:Create(mainFrame, TweenInfo.new(0.6, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {
- Position = UDim2.new(0.05, 0, 0.3, 0)
- })
- tween:Play()
- end)
- -- Z Key Toggle
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- if input.KeyCode == Enum.KeyCode.Z then
- mainFrame.Visible = not mainFrame.Visible
- elseif input.KeyCode == Enum.KeyCode.Period then
- screenGui:Destroy() -- Unload the GUI
- end
- end)
Add Comment
Please, Sign In to add comment