Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- This is literaly just for me to see if i know how to use tostring.
- And now i know that i am capeable of using it
- --]]
- --//Instances:
- local grabCords = Instance.new("ScreenGui")
- local drag = Instance.new("Frame")
- local main = Instance.new("Frame")
- local cords = Instance.new("TextLabel")
- local grab = Instance.new("TextButton")
- local bottom = Instance.new("TextLabel")
- local copy = Instance.new("TextButton")
- local loop = Instance.new("TextLabel")
- local loopOn = Instance.new("TextButton")
- local tp = Instance.new("TextButton")
- local create = Instance.new("TextButton")
- --//Properties:
- grabCords.Parent = game.CoreGui
- grabCords.Name = "grabCords"
- grabCords.Enabled = true
- grabCords.ResetOnSpawn = true
- drag.Name = "drag"
- drag.Parent = grabCords
- drag.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- drag.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- drag.Position = UDim2.new(0.431770831, 0, 0.390663385, 0)
- drag.Size = UDim2.new(0, 262, 0, 18)
- drag.Active = true
- drag.Draggable = true
- main.Name = "main"
- main.Parent = drag
- main.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- main.Position = UDim2.new(0.000946253538, 0, 1.02538908, 0)
- main.Size = UDim2.new(0, 262, 0, 170)
- cords.Name = "cords"
- cords.Parent = main
- cords.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- cords.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- cords.Position = UDim2.new(0, 0, 0.0823529437, 0)
- cords.Size = UDim2.new(0, 262, 0, 47)
- cords.Font = Enum.Font.SourceSans
- cords.Text = ""
- cords.TextColor3 = Color3.new(1, 1, 1)
- cords.TextScaled = true
- cords.TextSize = 14
- cords.TextWrapped = true
- grab.Name = "grab"
- grab.Parent = main
- grab.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- grab.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- grab.Position = UDim2.new(0.0305343512, 0, 0.417647064, 0)
- grab.Size = UDim2.new(0, 74, 0, 40)
- grab.Font = Enum.Font.SourceSans
- grab.Text = "Grab Current Coordinates"
- grab.TextColor3 = Color3.new(1, 1, 1)
- grab.TextScaled = true
- grab.TextSize = 20
- grab.TextWrapped = true
- bottom.Name = "bottom"
- bottom.Parent = main
- bottom.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- bottom.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- bottom.Position = UDim2.new(0, 0, 0.888235271, 0)
- bottom.Size = UDim2.new(0, 262, 0, 19)
- bottom.Font = Enum.Font.SourceSans
- bottom.Text = "Open/Close Is Z"
- bottom.TextColor3 = Color3.new(1, 1, 1)
- bottom.TextSize = 12
- bottom.TextXAlignment = Enum.TextXAlignment.Left
- copy.Name = "copy"
- copy.Parent = main
- copy.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- copy.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- copy.Position = UDim2.new(0.362595379, 0, 0.417647094, 0)
- copy.Size = UDim2.new(0, 74, 0, 40)
- copy.Font = Enum.Font.SourceSans
- copy.Text = "Copy To Clipboard"
- copy.TextColor3 = Color3.new(1, 1, 1)
- copy.TextScaled = true
- copy.TextSize = 20
- copy.TextWrapped = true
- loop.Name = "loop"
- loop.Parent = main
- loop.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- loop.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- loop.Position = UDim2.new(0.0305343494, 0, 0.735294104, 0)
- loop.Size = UDim2.new(0, 102, 0, 19)
- loop.Font = Enum.Font.SourceSans
- loop.Text = "Loop Grab:"
- loop.TextColor3 = Color3.new(1, 1, 1)
- loop.TextSize = 14
- loop.TextXAlignment = Enum.TextXAlignment.Left
- loopOn.Name = "loopOn"
- loopOn.Parent = main
- loopOn.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- loopOn.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- loopOn.Position = UDim2.new(0.278625965, 0, 0.735294104, 0)
- loopOn.Size = UDim2.new(0, 37, 0, 19)
- loopOn.Font = Enum.Font.SourceSans
- loopOn.Text = "Off"
- loopOn.TextColor3 = Color3.new(1, 0, 0)
- loopOn.TextSize = 20
- loopOn.TextWrapped = true
- tp.Name = "tp"
- tp.Parent = main
- tp.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- tp.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- tp.Position = UDim2.new(0.687022865, 0, 0.417647094, 0)
- tp.Size = UDim2.new(0, 74, 0, 40)
- tp.Font = Enum.Font.SourceSans
- tp.Text = "Teleport To Cords"
- tp.TextColor3 = Color3.new(1, 1, 1)
- tp.TextScaled = true
- tp.TextSize = 20
- tp.TextWrapped = true
- create.Name = "create"
- create.Parent = main
- create.BackgroundColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- create.BorderColor3 = Color3.new(0.196078, 0.305882, 0.384314)
- create.Position = UDim2.new(0.687022924, 0, 0.723529398, 0)
- create.Size = UDim2.new(0, 74, 0, 22)
- create.Font = Enum.Font.SourceSans
- create.Text = "Create Part"
- create.TextColor3 = Color3.new(1, 1, 1)
- create.TextScaled = true
- create.TextSize = 20
- create.TextWrapped = true
- --//Scripts:
- --//Open/Close Function:
- local open = true
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.Z and gameProcessedEvent == false then
- if open == true then
- open = false
- drag:TweenPosition(UDim2.new(0.432, 0,0.391, 0), "In", "Quad", 1.5)
- else
- open = true
- drag:TweenPosition(UDim2.new(-1, 0,0.391, 0), "Out", "Quad", 1.5)
- end
- end
- end
- --//Grabbing Function:
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- grab.MouseButton1Down:Connect(function()
- cords.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
- wait(0.25)
- print('Coordinates: '..tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame))
- end)
- copy.MouseButton1Down:Connect(function()
- setclipboard("Coordinates: "..cords.Text)
- end)
- create.MouseButton1Down:Connect(function()
- local yeah = true
- if yeah == true then
- local Saved = Instance.new("Part")
- Saved.Anchored = true
- Saved.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
- Saved.Transparency = 1
- Saved.Name = "RobloxIsGay123"
- Saved.Parent = workspace
- else
- game.Workspace.RobloxIsGay123:Destroy()
- end
- end)
- tp.MouseButton1Down:Connect(function()
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.RobloxIsGay123.CFrame
- end)
- loopOn.MouseButton1Down:Connect(function()
- local on = false
- while wait() do
- if on ~= false then
- cords.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
- wait(0.25)
- print('Coordinates: '..tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame))
- loopOn.TextColor3 = Color3.new(0, 255, 0)
- loopOn.Text = "On"
- else
- cords.Text = ""
- wait()
- loopOn.TextColor3 = Color3.new(255, 0, 0)
- loopOn.Text = "Off"
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment