Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables:
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- -- Instances:
- local CreateACartRideTpLvlGui = Instance.new("ScreenGui")
- local main = Instance.new("Frame")
- local title = Instance.new("TextLabel")
- local desc1 = Instance.new("TextLabel")
- local desc2 = Instance.new("TextLabel")
- local LevelInserter = Instance.new("TextBox")
- local UICorner = Instance.new("UICorner")
- local tptolvl = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- --Properties:
- CreateACartRideTpLvlGui.Name = "CreateACartRideTpLvlGui"
- CreateACartRideTpLvlGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- CreateACartRideTpLvlGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- CreateACartRideTpLvlGui.ResetOnSpawn = false
- main.Name = "main"
- main.Parent = CreateACartRideTpLvlGui
- main.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
- main.BorderColor3 = Color3.fromRGB(0, 0, 0)
- main.BorderSizePixel = 0
- main.Position = UDim2.new(0.333033323, 0, 0.102296457, 0)
- main.Size = UDim2.new(0.333033293, 0, 0.793319404, 0)
- main.Selectable = true
- main.Active = true
- main.Draggable = true
- title.Name = "title"
- title.Parent = main
- title.BackgroundColor3 = Color3.fromRGB(87, 87, 87)
- title.BorderColor3 = Color3.fromRGB(0, 0, 0)
- title.BorderSizePixel = 0
- title.Size = UDim2.new(1, 0, 0.114593297, 0)
- title.Font = Enum.Font.Gotham
- title.Text = "Create A Cart Ride Level Teleporter"
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.TextScaled = true
- title.TextSize = 14.000
- title.TextWrapped = true
- desc1.Name = "desc1"
- desc1.Parent = main
- desc1.BackgroundColor3 = Color3.fromRGB(87, 87, 87)
- desc1.BorderColor3 = Color3.fromRGB(0, 0, 0)
- desc1.BorderSizePixel = 0
- desc1.Position = UDim2.new(0, 0, 0.114593297, 0)
- desc1.Size = UDim2.new(1, 0, 0.114593297, 0)
- desc1.Font = Enum.Font.Gotham
- desc1.Text = "type the level you want to be teleported to on the textbox below (you can teleport others by making them sit in your cart and teleporting to the level you want to teleport)"
- desc1.TextColor3 = Color3.fromRGB(255, 255, 255)
- desc1.TextScaled = true
- desc1.TextSize = 14.000
- desc1.TextWrapped = true
- desc2.Name = "desc2"
- desc2.Parent = main
- desc2.BackgroundColor3 = Color3.fromRGB(87, 87, 87)
- desc2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- desc2.BorderSizePixel = 0
- desc2.Position = UDim2.new(0, 0, 0.229186594, 0)
- desc2.Size = UDim2.new(1, 0, 0.114593297, 0)
- desc2.Font = Enum.Font.Gotham
- desc2.Text = "You dont have to put something like \"Level 10\" instead, just put \"10\" on the textbox"
- desc2.TextColor3 = Color3.fromRGB(255, 255, 255)
- desc2.TextScaled = true
- desc2.TextSize = 14.000
- desc2.TextWrapped = true
- LevelInserter.Name = "LevelInserter"
- LevelInserter.Parent = main
- LevelInserter.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- LevelInserter.BorderColor3 = Color3.fromRGB(0, 0, 0)
- LevelInserter.BorderSizePixel = 0
- LevelInserter.Position = UDim2.new(0.0513513498, 0, 0.41941148, 0)
- LevelInserter.Size = UDim2.new(0.878378391, 0, 0.233770326, 0)
- LevelInserter.ClearTextOnFocus = false
- LevelInserter.Font = Enum.Font.Gotham
- LevelInserter.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
- LevelInserter.PlaceholderText = "Put level here"
- LevelInserter.Text = ""
- LevelInserter.TextColor3 = Color3.fromRGB(0, 0, 0)
- LevelInserter.TextScaled = true
- LevelInserter.TextSize = 14.000
- LevelInserter.TextWrapped = true
- UICorner.Parent = LevelInserter
- tptolvl.Name = "tptolvl"
- tptolvl.Parent = main
- tptolvl.BackgroundColor3 = Color3.fromRGB(87, 87, 87)
- tptolvl.BorderColor3 = Color3.fromRGB(0, 0, 0)
- tptolvl.BorderSizePixel = 0
- tptolvl.Position = UDim2.new(0.12702702, 0, 0.721937776, 0)
- tptolvl.Size = UDim2.new(0.724324346, 0, 0.190224871, 0)
- tptolvl.Font = Enum.Font.Gotham
- tptolvl.Text = "Teleport to requested level"
- tptolvl.TextColor3 = Color3.fromRGB(255, 255, 255)
- tptolvl.TextScaled = true
- tptolvl.TextSize = 14.000
- tptolvl.TextWrapped = true
- UICorner_2.Parent = tptolvl
- tptolvl.MouseButton1Click:Connect(function()
- for i, object in pairs(workspace.CartRideWorkspace.Objects:GetChildren()) do
- if object:IsA("Model") then
- if object.Name == "LevelSpawn" then
- if object.LevelSpawn.BBG.TextLabel.Text == "Level "..LevelInserter.Text then
- player.Character:PivotTo(object.LevelSpawn.CFrame)
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement