Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local coordinateTP = Instance.new("ScreenGui")
- local bar = Instance.new("TextLabel")
- local mainframe = Instance.new("Frame")
- local coordX = Instance.new("TextBox")
- local coordZ = Instance.new("TextBox")
- local coordY = Instance.new("TextBox")
- local teleport = Instance.new("TextButton")
- local underline = Instance.new("Frame")
- local minimize = Instance.new("TextButton")
- local currentCoord = Instance.new("TextLabel")
- coordinateTP.Name = "coordinateTP"
- coordinateTP.Parent = game:GetService("CoreGui")
- coordinateTP.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- bar.Name = "bar"
- bar.Parent = coordinateTP
- bar.Active = true
- bar.AnchorPoint = Vector2.new(0.5, 0)
- bar.BackgroundColor3 = Color3.new(0.686275, 0.686275, 0.686275)
- bar.BorderSizePixel = 0
- bar.Draggable = true
- bar.Position = UDim2.new(0.5, 0, 0.25, 0)
- bar.Selectable = true
- bar.Size = UDim2.new(0, 350, 0, 30)
- bar.Font = Enum.Font.GothamBlack
- bar.Text = "Coordinate Teleport"
- bar.TextColor3 = Color3.new(1, 1, 1)
- bar.TextSize = 15
- mainframe.Name = "mainframe"
- mainframe.Parent = bar
- mainframe.AnchorPoint = Vector2.new(0.5, 0)
- mainframe.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- mainframe.BorderSizePixel = 0
- mainframe.Position = UDim2.new(0.5, 0, 1, 0)
- mainframe.Size = UDim2.new(1, 0, 0, 150)
- currentCoord.Name = "currentCoord"
- currentCoord.Parent = mainframe
- currentCoord.AnchorPoint = Vector2.new(0.5, 1)
- currentCoord.BackgroundColor3 = Color3.new(1, 1, 1)
- currentCoord.BackgroundTransparency = 1
- currentCoord.BorderSizePixel = 0
- currentCoord.Position = UDim2.new(0.5, 0, 1, 0)
- currentCoord.Size = UDim2.new(1, 0, 0.100000001, 0)
- currentCoord.Font = Enum.Font.SourceSans
- currentCoord.Text = "Your current coordinates are [ Loading... ]"
- currentCoord.TextColor3 = Color3.new(1, 1, 1)
- currentCoord.TextSize = 14
- currentCoord.TextWrapped = true
- coordX.Name = "coordX"
- coordX.Parent = mainframe
- coordX.AnchorPoint = Vector2.new(0.5, 0)
- coordX.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- coordX.BorderColor3 = Color3.new(0.490196, 0.490196, 0.490196)
- coordX.BorderSizePixel = 3
- coordX.Position = UDim2.new(0.200000003, 0, 0.219999999, 0)
- coordX.Size = UDim2.new(0.25, 0, 0.25, 0)
- coordX.Font = Enum.Font.SourceSans
- coordX.PlaceholderColor3 = Color3.new(1, 1, 1)
- coordX.PlaceholderText = "X Coordinate"
- coordX.Text = ""
- coordX.TextColor3 = Color3.new(1, 1, 1)
- coordX.TextSize = 14
- coordZ.Name = "coordZ"
- coordZ.Parent = mainframe
- coordZ.AnchorPoint = Vector2.new(0.5, 0)
- coordZ.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- coordZ.BorderColor3 = Color3.new(0.490196, 0.490196, 0.490196)
- coordZ.BorderSizePixel = 3
- coordZ.Position = UDim2.new(0.800000012, 0, 0.219999999, 0)
- coordZ.Size = UDim2.new(0.25, 0, 0.25, 0)
- coordZ.Font = Enum.Font.SourceSans
- coordZ.PlaceholderColor3 = Color3.new(1, 1, 1)
- coordZ.PlaceholderText = "Z Coordinate"
- coordZ.Text = ""
- coordZ.TextColor3 = Color3.new(1, 1, 1)
- coordZ.TextSize = 14
- coordY.Name = "coordY"
- coordY.Parent = mainframe
- coordY.AnchorPoint = Vector2.new(0.5, 0)
- coordY.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- coordY.BorderColor3 = Color3.new(0.490196, 0.490196, 0.490196)
- coordY.BorderSizePixel = 3
- coordY.Position = UDim2.new(0.5, 0, 0.219999999, 0)
- coordY.Size = UDim2.new(0.25, 0, 0.25, 0)
- coordY.Font = Enum.Font.SourceSans
- coordY.PlaceholderColor3 = Color3.new(1, 1, 1)
- coordY.PlaceholderText = "Y Coordinate"
- coordY.Text = ""
- coordY.TextColor3 = Color3.new(1, 1, 1)
- coordY.TextSize = 14
- teleport.Name = "teleport"
- teleport.Parent = mainframe
- teleport.AnchorPoint = Vector2.new(0.5, 0)
- teleport.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- teleport.BorderColor3 = Color3.new(0.490196, 0.490196, 0.490196)
- teleport.BorderSizePixel = 3
- teleport.Position = UDim2.new(0.5, 0, 0.600000024, 0)
- teleport.Size = UDim2.new(0.5, 0, 0.25, 0)
- teleport.Font = Enum.Font.SourceSansBold
- teleport.Text = "Teleport!"
- teleport.TextColor3 = Color3.new(1, 1, 1)
- teleport.TextSize = 16
- teleport.TextTruncate = Enum.TextTruncate.AtEnd
- underline.Name = "underline"
- underline.Parent = bar
- underline.AnchorPoint = Vector2.new(0.5, 0)
- underline.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- underline.BorderSizePixel = 0
- underline.Position = UDim2.new(0.5, 0, 1, 0)
- underline.Size = UDim2.new(1, 0, 0, 5)
- minimize.Name = "minimize"
- minimize.Parent = bar
- minimize.AnchorPoint = Vector2.new(1, 0)
- minimize.BackgroundColor3 = Color3.new(0.627451, 0.627451, 0.627451)
- minimize.BorderSizePixel = 0
- minimize.Position = UDim2.new(1, 0, 0, 0)
- minimize.Size = UDim2.new(1, 0, 1, 0)
- minimize.SizeConstraint = Enum.SizeConstraint.RelativeYY
- minimize.Font = Enum.Font.GothamBlack
- minimize.Text = "-"
- minimize.TextColor3 = Color3.new(1, 1, 1)
- minimize.TextScaled = true
- minimize.TextSize = 14
- minimize.TextWrapped = true
- coroutine.resume(coroutine.create(function()
- teleport.MouseButton1Click:Connect(function()
- if (coordX.Text ~= "") and (coordY.Text ~= "") and (coordZ.Text ~= "") then
- if (tonumber(coordX.Text)) and (tonumber(coordY.Text)) and (tonumber(coordZ.Text)) then
- local position = CFrame.new(tonumber(coordX.Text), tonumber(coordY.Text), tonumber(coordZ.Text))
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = position
- end
- end
- end)
- end))
- local canMinimize = true
- local minimized = false
- coroutine.resume(coroutine.create(function()
- minimize.MouseButton1Click:Connect(function()
- if (canMinimize == true) then
- minimized = not minimized
- if (minimized == true) then
- canMinimize = false
- minimize.Text = "+"
- for __,v in pairs(mainframe:GetChildren()) do
- pcall(function() v.Visible = false end)
- end
- mainframe:TweenSize(UDim2.new(1,0,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.75, true)
- wait(0.75)
- canMinimize = true
- else
- canMinimize = false
- minimize.Text = "-"
- for __,v in pairs(mainframe:GetChildren()) do
- pcall(function() v.Visible = true end)
- end
- mainframe:TweenSize(UDim2.new(1,0,0,150), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.75, true)
- wait(0.75)
- canMinimize = true
- end
- end
- end)
- end))
- local function round(n)
- return math.floor(n+0.5)
- end
- coroutine.resume(coroutine.create(function()
- while wait() do
- local cf = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
- currentCoord.Text = string.format("Your current coordinates are (%s, %s, %s).", tostring(round(cf.X)), tostring(round(cf.Y)), tostring(round(cf.Z)))
- end
- end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement