Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Settings = {};
- Settings.Copy = {
- ['Enabled'] = true;
- ['scriptify'] = true;
- ['func'] = print;
- };
- local Coords = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Label = Instance.new("TextLabel")
- local Coordinates = Instance.new("TextLabel")
- local Copy = Instance.new("TextButton")
- Coords.Name = "Coords"
- Coords.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = Coords
- MainFrame.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
- MainFrame.BackgroundTransparency = 0.5
- MainFrame.BorderSizePixel = 0
- MainFrame.Position = UDim2.new(0, 5, 0, 5)
- MainFrame.Size = UDim2.new(0, 160, 0, 30)
- Label.Name = "Label"
- Label.Parent = MainFrame
- Label.BackgroundColor3 = Color3.new(1, 1, 1)
- Label.BackgroundTransparency = 1
- Label.Position = UDim2.new(0, 5, 0, 5)
- Label.Size = UDim2.new(0, 60, 1, -10)
- Label.Font = Enum.Font.GothamBold
- Label.Text = "Coords:"
- Label.TextColor3 = Color3.new(1, 1, 1)
- Label.TextSize = 14
- Label.TextStrokeColor3 = Color3.new(0.0509804, 0.0509804, 0.0509804)
- Label.TextStrokeTransparency = 0.99000000953674
- Label.TextXAlignment = Enum.TextXAlignment.Left
- Coordinates.Name = "Coordinates"
- Coordinates.Parent = Label
- Coordinates.BackgroundColor3 = Color3.new(1, 1, 1)
- Coordinates.BackgroundTransparency = 1
- Coordinates.Position = UDim2.new(1, 0, 0, 3)
- Coordinates.Size = UDim2.new(0, 100, 1, -6)
- Coordinates.Font = Enum.Font.Gotham
- Coordinates.Text = "0, 0, 0"
- Coordinates.TextColor3 = Color3.new(1, 1, 1)
- Coordinates.TextSize = 14
- Coordinates.TextStrokeColor3 = Color3.new(0.0509804, 0.0509804, 0.0509804)
- Coordinates.TextStrokeTransparency = 0.99000000953674
- Coordinates.TextXAlignment = Enum.TextXAlignment.Left
- Copy.Name = "Copy"
- Copy.Parent = MainFrame
- Copy.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
- Copy.Size = UDim2.new(1, 0, 1, 0)
- Copy.Font = Enum.Font.GothamBold
- Copy.Text = "Copy"
- Copy.BorderSizePixel = 0;
- Copy.TextColor3 = Color3.new(1, 1, 0.717647)
- Copy.TextSize = 14
- Copy.BackgroundTransparency = .2;
- Copy.Visible = false;
- local RunService = game:GetService('RunService');
- local LP = game:GetService('Players').LocalPlayer;
- local getRoot = function()
- if LP.Character then
- return LP.Character:FindFirstChild'HumanoidRootPart';
- end;
- end;
- local CopyOnClick = function()
- if Settings.Copy.Enabled then
- local format = ('Vector3.new('.. tostring(getRoot().Position) ..')');
- if Settings.Copy.scriptify then
- format = ('game:GetService\'Players\'.LocalPlayer.Character:MoveTo(%s)'):format(format);
- end;
- if format then
- Settings.Copy.func(format);
- end;
- end;
- end;
- local updateCoords = function()
- local root = getRoot();
- if root then
- Coordinates.Text = tostring(Vector3.new(math.floor(root.Position.X), math.floor(root.Position.Y), math.floor(root.Position.Z)));
- end;
- end;
- local hideButton = function()
- Copy.Visible = false;
- end;
- local showButton = function()
- Copy.Visible = true;
- end;
- RunService.Heartbeat:Connect(updateCoords);
- MainFrame.MouseEnter:Connect(showButton);
- Copy.MouseLeave:Connect(hideButton);
- Copy.MouseButton1Click:Connect(CopyOnClick);
- Coords.Parent = game.CoreGui;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement