Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local coordgui = Instance.new("ScreenGui")
- local main = Instance.new("Frame")
- local title = Instance.new("TextLabel")
- local grab = Instance.new("TextButton")
- local copy = Instance.new("TextButton")
- local teleport = Instance.new("TextButton")
- local close = Instance.new("TextButton")
- local cords = Instance.new("TextLabel")
- --Properties:
- coordgui.Name = "coordgui"
- coordgui.Parent = game.CoreGui
- main.Name = "main"
- main.Parent = coordgui
- main.BackgroundColor3 = Color3.new(1, 1, 1)
- main.Position = UDim2.new(0.352638364, 0, 0.405797124, 0)
- main.Size = UDim2.new(0, 228, 0, 170)
- main.Style = Enum.FrameStyle.DropShadow
- main.Active = true
- main.Draggable = true
- title.Name = "title"
- title.Parent = main
- title.BackgroundColor3 = Color3.new(0, 0, 0)
- title.Position = UDim2.new(-0.0517418832, 0, -0.054933358, 0)
- title.Size = UDim2.new(0, 235, 0, 19)
- title.Font = Enum.Font.SciFi
- title.Text = "Coordinates Grabber Gui"
- title.TextColor3 = Color3.new(1, 1, 1)
- title.TextSize = 14
- grab.Name = "grab"
- grab.Parent = main
- grab.BackgroundColor3 = Color3.new(0, 0, 0)
- grab.Position = UDim2.new(0.0381504558, 0, 0.500263834, 0)
- grab.Size = UDim2.new(0, 128, 0, 31)
- grab.Font = Enum.Font.SciFi
- grab.Text = "Grab Coordinates"
- grab.TextColor3 = Color3.new(1, 1, 1)
- grab.TextSize = 14
- copy.Name = "copy"
- copy.Parent = main
- copy.BackgroundColor3 = Color3.new(0, 0, 0)
- copy.Position = UDim2.new(0.697107434, 0, 0.495215261, 0)
- copy.Size = UDim2.new(0, 52, 0, 32)
- copy.Font = Enum.Font.SciFi
- copy.Text = "Copy"
- copy.TextColor3 = Color3.new(1, 1, 1)
- copy.TextSize = 14
- teleport.Name = "teleport"
- teleport.Parent = main
- teleport.BackgroundColor3 = Color3.new(0, 0, 0)
- teleport.Position = UDim2.new(0.25, 0, 0.75, 0)
- teleport.Size = UDim2.new(0, 60, 0, 32)
- teleport.Font = Enum.Font.SciFi
- teleport.Text = "Teleport"
- teleport.TextColor3 = Color3.new(1, 1, 1)
- teleport.TextSize = 14
- close.Name = "close"
- close.Parent = main
- close.BackgroundColor3 = Color3.new(0, 0, 0)
- close.Position = UDim2.new(0.55, 0, 0.75, 0)
- close.Size = UDim2.new(0, 52, 0, 32)
- close.Font = Enum.Font.SciFi
- close.Text = "Close"
- close.TextColor3 = Color3.new(1, 1, 1)
- close.TextSize = 14
- cords.Name = "cords"
- cords.Parent = main
- cords.BackgroundColor3 = Color3.new(0, 0, 0)
- cords.Position = UDim2.new(0.0420129336, 0, 0.199266031, 0)
- cords.Size = UDim2.new(0, 194, 0, 37)
- cords.Font = Enum.Font.SciFi
- cords.Text = ""
- cords.TextColor3 = Color3.new(1, 1, 1)
- cords.TextSize = 14
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- grab.MouseButton1Down:Connect(function()
- cords.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
- wait(0.25)
- print(''..tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position))
- end)
- close.MouseButton1Down:Connect(function()
- coordgui:Destroy()
- end)
- function mysplit(inputstr, sep)
- if sep == nil then
- sep = "%s"
- end
- local t={}
- for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
- table.insert(t, str)
- end
- return t
- end
- teleport.MouseButton1Down:Connect(function()
- teleportTo = cords.Text
- if teleportTo and teleportTo ~= "" and teleportTo ~= " " then
- teleportTo = tostring(teleportTo)
- coordsToTeleport = mysplit(teleportTo, ", ")
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(coordsToTeleport[1], coordsToTeleport[2], coordsToTeleport[3])
- end
- end)
- copy.MouseButton1Down:Connect(function()
- setclipboard(""..cords.Text)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement