Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
RunService = :()
player = Players.LocalPlayer
guiTitle =
trackButtonText =
smallButtonText =
listTitleText =
updateRate =
tracking =
selectedPlayer =
selectedCharacter =
selectedRoot =
character = player.Character player.CharacterAdded:()
humanoidRootPart = character:()
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = player:()
mainFrame = .()
mainFrame.Size = .(, , , )
mainFrame.Position = .(, -, , -)
mainFrame.BackgroundColor3 = .(, , )
mainFrame.BorderSizePixel =
mainFrame.Active =
mainFrame.ClipsDescendants =
mainFrame.Parent = screenGui
mainCorner = .()
mainCorner.CornerRadius = .(, )
mainCorner.Parent = mainFrame
titleBar = .()
titleBar.Size = .(, , , )
titleBar.BackgroundColor3 = .(, , )
titleBar.BorderSizePixel =
titleBar.Text = guiTitle
titleBar.TextColor3 = .(, , )
titleBar.TextScaled =
titleBar.Font = .Font.GothamBold
titleBar.Parent = mainFrame
titleCorner = .()
titleCorner.CornerRadius = .(, )
titleCorner.Parent = titleBar
hideButton = .()
hideButton.Size = .(, , , )
hideButton.Position = .(, -, , )
hideButton.BackgroundColor3 = .(, , )
hideButton.Text =
hideButton.TextColor3 = .(, , )
hideButton.TextScaled =
hideButton.Font = .Font.Gotham
hideButton.BorderSizePixel =
hideButton.Parent = mainFrame
hideCorner = .()
hideCorner.CornerRadius = .(, )
hideCorner.Parent = hideButton
closeButton = .()
closeButton.Size = .(, , , )
closeButton.Position = .(, -, , )
closeButton.BackgroundColor3 = .(, , )
closeButton.Text =
closeButton.TextColor3 = .(, , )
closeButton.TextScaled =
closeButton.Font = .Font.GothamBold
closeButton.BorderSizePixel =
closeButton.Parent = mainFrame
closeCorner = .()
closeCorner.CornerRadius = .(, )
closeCorner.Parent = closeButton
infoLabel = .()
infoLabel.Size = .(, -, , )
infoLabel.Position = .(, , , )
infoLabel.BackgroundTransparency =
infoLabel.Text =
infoLabel.TextColor3 = .(, , )
infoLabel.TextScaled =
infoLabel.Font = .Font.GothamBold
infoLabel.Parent = mainFrame
distanceLabel = .()
distanceLabel.Size = .(, -, , )
distanceLabel.Position = .(, , , )
distanceLabel.BackgroundTransparency =
distanceLabel.Text =
distanceLabel.TextColor3 = .(, , )
distanceLabel.TextScaled =
distanceLabel.Font = .Font.Gotham
distanceLabel.Parent = mainFrame
directionLabel = .()
directionLabel.Size = .(, -, , )
directionLabel.Position = .(, , , )
directionLabel.BackgroundTransparency =
directionLabel.Text =
directionLabel.TextColor3 = .(, , )
directionLabel.TextScaled =
directionLabel.Font = .Font.Gotham
directionLabel.Parent = mainFrame
statusLabel = .()
statusLabel.Size = .(, -, , )
statusLabel.Position = .(, , , )
statusLabel.BackgroundTransparency =
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
statusLabel.TextScaled =
statusLabel.Font = .Font.Gotham
statusLabel.Parent = mainFrame
trackButton = .()
trackButton.Size = .(, -, , )
trackButton.Position = .(, , , )
trackButton.BackgroundColor3 = .(, , )
trackButton.Text = trackButtonText
trackButton.TextColor3 = .(, , )
trackButton.TextScaled =
trackButton.Font = .Font.GothamBold
trackButton.BorderSizePixel =
trackButton.Parent = mainFrame
trackCorner = .()
trackCorner.CornerRadius = .(, )
trackCorner.Parent = trackButton
nearestButton = .()
nearestButton.Size = .(, -, , )
nearestButton.Position = .(, , , )
nearestButton.BackgroundColor3 = .(, , )
nearestButton.Text =
nearestButton.TextColor3 = .(, , )
nearestButton.TextScaled =
nearestButton.Font = .Font.GothamBold
nearestButton.BorderSizePixel =
nearestButton.Parent = mainFrame
nearestCorner = .()
nearestCorner.CornerRadius = .(, )
nearestCorner.Parent = nearestButton
clearButton = .()
clearButton.Size = .(, -, , )
clearButton.Position = .(, , , )
clearButton.BackgroundColor3 = .(, , )
clearButton.Text =
clearButton.TextColor3 = .(, , )
clearButton.TextScaled =
clearButton.Font = .Font.GothamBold
clearButton.BorderSizePixel =
clearButton.Parent = mainFrame
clearCorner = .()
clearCorner.CornerRadius = .(, )
clearCorner.Parent = clearButton
listHeader = .()
listHeader.Size = .(, -, , )
listHeader.Position = .(, , , )
listHeader.BackgroundTransparency =
listHeader.Text = listTitleText
listHeader.TextColor3 = .(, , )
listHeader.TextScaled =
listHeader.Font = .Font.GothamBold
listHeader.Parent = mainFrame
listFrame = .()
listFrame.Size = .(, -, , )
listFrame.Position = .(, , , )
listFrame.BackgroundColor3 = .(, , )
listFrame.BorderSizePixel =
listFrame.ScrollBarThickness =
listFrame.CanvasSize = .(, , , )
listFrame.Parent = mainFrame
listCorner = .()
listCorner.CornerRadius = .(, )
listCorner.Parent = listFrame
listLayout = .()
listLayout.Padding = .(, )
listLayout.SortOrder = .SortOrder.LayoutOrder
listLayout.Parent = listFrame
listPadding = .()
listPadding.PaddingTop = .(, )
listPadding.PaddingBottom = .(, )
listPadding.PaddingLeft = .(, )
listPadding.PaddingRight = .(, )
listPadding.Parent = listFrame
smallButton = .()
smallButton.Size = .(, , , )
smallButton.Position = .(, , , -)
smallButton.BackgroundColor3 = .(, , )
smallButton.Text = smallButtonText
smallButton.TextColor3 = .(, , )
smallButton.TextScaled =
smallButton.Font = .Font.GothamBold
smallButton.BorderSizePixel =
smallButton.Visible =
smallButton.Active =
smallButton.Parent = screenGui
smallCorner = .()
smallCorner.CornerRadius = .(, )
smallCorner.Parent = smallButton
()
character = player.Character player.CharacterAdded:()
humanoidRootPart = character:()
player.CharacterAdded:(()
.()
()
)
(plr)
plr plr.Character
plr.Character:()
()
humanoidRootPart
nearest =
nearestDistance = .huge
_, plr (Players:())
plr ~= player plr.Character
root = plr.Character:()
hum = plr.Character:()
root hum hum.Health >
dist = (root.Position - humanoidRootPart.Position).Magnitude
dist < nearestDistance
nearestDistance = dist
nearest = plr
nearest, nearestDistance
()
_, child (listFrame:())
child:()
child:()
()
()
y =
_, plr (Players:())
plr ~= player
btn = .()
btn.Size = .(, , , )
btn.Position = .(, , , y)
btn.BackgroundColor3 = .(, , )
btn.TextColor3 = .(, , )
btn.TextScaled =
btn.Font = .Font.Gotham
btn.BorderSizePixel =
btn.Text = plr.Name
btn.Parent = listFrame
c = .()
c.CornerRadius = .(, )
c.Parent = btn
btn.MouseButton1Click:(()
selectedPlayer = plr
selectedRoot = (plr)
infoLabel.Text = .. plr.Name
statusLabel.Text =
)
y +=
listFrame.CanvasSize = .(, , , y)
(on)
tracking = on
tracking
trackButton.Text =
trackButton.BackgroundColor3 = .(, , )
statusLabel.Text =
trackButton.Text = trackButtonText
trackButton.BackgroundColor3 = .(, , )
statusLabel.Text =
(targetPos)
humanoidRootPart
delta = targetPos - humanoidRootPart.Position
x = delta.X
z = delta.Z
.(x) < .(z) <
.(x) > .(z)
x >
z >
trackButton.MouseButton1Click:(()
( tracking)
)
nearestButton.MouseButton1Click:(()
nearest = ()
nearest
selectedPlayer = nearest
selectedRoot = (nearest)
infoLabel.Text = .. nearest.Name
statusLabel.Text =
selectedPlayer =
selectedRoot =
infoLabel.Text =
statusLabel.Text =
)
clearButton.MouseButton1Click:(()
selectedPlayer =
selectedRoot =
infoLabel.Text =
distanceLabel.Text =
directionLabel.Text =
statusLabel.Text =
)
hideButton.MouseButton1Click:(()
mainFrame.Visible =
smallButton.Visible =
)
smallButton.MouseButton1Click:(()
mainFrame.Visible =
smallButton.Visible =
)
closeButton.MouseButton1Click:(()
screenGui:()
)
Players.PlayerAdded:(()
.()
()
)
Players.PlayerRemoving:((plr)
selectedPlayer == plr
selectedPlayer =
selectedRoot =
.()
()
)
.(()
screenGui.Parent
()
tracking
selectedPlayer selectedPlayer.Parent
nearest = ()
nearest
selectedPlayer = nearest
selectedRoot = (nearest)
selectedRoot = (selectedPlayer)
selectedPlayer selectedRoot humanoidRootPart
dist = (selectedRoot.Position - humanoidRootPart.Position).Magnitude
infoLabel.Text = .. selectedPlayer.Name
distanceLabel.Text = .. .(, dist)
directionLabel.Text = .. (selectedRoot.Position)
statusLabel.Text = .. selectedPlayer.Name
infoLabel.Text =
distanceLabel.Text =
directionLabel.Text =
statusLabel.Text =
.(updateRate)
)
()
(guiObject)
dragging =
dragInput
dragStart
startPos
guiObject.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = guiObject.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
guiObject.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
dragInput = input
)
UserInputService.InputChanged:((input)
input == dragInput dragging
delta = input.Position - dragStart
guiObject.Position = .(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
)
(mainFrame)
(smallButton)
Universal