Run it
Copy the script and paste it into your executor.
ScreenGui = .()
MainFrame = .()
Title = .()
ToggleButton = .()
DistanceTextBox = .()
DestroyButton = .()
HideShowButton = .()
BorderFrame = .()
BorderFrame.Name =
BorderFrame.Parent = ScreenGui
BorderFrame.BackgroundColor3 = .(, , )
BorderFrame.Position = .(, -, , -)
BorderFrame.Size = .(, , , )
BorderFrame.BorderSizePixel =
BorderFrame.Active =
ScreenGui.Parent = .Players.LocalPlayer:()
ScreenGui.ResetOnSpawn =
ScreenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
MainFrame.Name =
MainFrame.Parent = BorderFrame
MainFrame.BackgroundColor3 = .(, , )
MainFrame.Position = .(, , , )
MainFrame.Size = .(, , , )
MainFrame.BorderSizePixel =
(instance, radius)
corner = .()
corner.CornerRadius = .(, radius)
corner.Parent = instance
(BorderFrame, )
(MainFrame, )
Title.Name =
Title.Parent = MainFrame
Title.BackgroundColor3 = .(, , )
Title.Size = .(, , , )
Title.Font = .Font.GothamBold
Title.Text =
Title.TextColor3 = .(, , )
Title.TextSize =
(Title, )
ToggleButton.Name =
ToggleButton.Parent = MainFrame
ToggleButton.BackgroundColor3 = .(, , )
ToggleButton.Position = .(, , , )
ToggleButton.Size = .(, -, , )
ToggleButton.Font = .Font.GothamSemibold
ToggleButton.Text =
ToggleButton.TextColor3 = .(, , )
ToggleButton.TextSize =
(ToggleButton, )
DistanceTextBox.Name =
DistanceTextBox.Parent = MainFrame
DistanceTextBox.BackgroundColor3 = .(, , )
DistanceTextBox.Position = .(, , , )
DistanceTextBox.Size = .(, -, , )
DistanceTextBox.Font = .Font.GothamSemibold
DistanceTextBox.Text =
DistanceTextBox.PlaceholderText =
DistanceTextBox.TextColor3 = .(, , )
DistanceTextBox.TextSize =
DistanceTextBox.ClearTextOnFocus =
(DistanceTextBox, )
DestroyButton.Name =
DestroyButton.Parent = MainFrame
DestroyButton.BackgroundColor3 = .(, , )
DestroyButton.Position = .(, , , )
DestroyButton.Size = .(, -, , )
DestroyButton.Font = .Font.GothamBold
DestroyButton.Text =
DestroyButton.TextColor3 = .(, , )
DestroyButton.TextSize =
(DestroyButton, )
HideShowButton.Name =
HideShowButton.Parent = ScreenGui
HideShowButton.BackgroundColor3 = .(, , )
HideShowButton.Position = .(, , , )
HideShowButton.Size = .(, , , )
HideShowButton.Font = .Font.GothamBold
HideShowButton.Text =
HideShowButton.TextColor3 = .(, , )
HideShowButton.TextSize =
HideShowButton.Active =
(HideShowButton, )
UserInputService = :()
Players = :()
RunService = :()
LocalPlayer = Players.LocalPlayer
(frame)
dragging, dragInput, dragStart, startPos
frame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = frame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End dragging =
)
)
frame.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
UserInputService.InputChanged:((input)
input == dragInput dragging
delta = input.Position - dragStart
frame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
(BorderFrame)
(HideShowButton)
attachEnabled =
attachDistance =
loopConnection =
()
nearestPlayer =
shortestDistance = .huge
myChar = LocalPlayer.Character
myChar myChar:()
myHrp = myChar.HumanoidRootPart
_, player (Players:())
player ~= LocalPlayer player.Character player.Character:()
targetHrp = player.Character.HumanoidRootPart
distance = (myHrp.Position - targetHrp.Position).Magnitude
distance < shortestDistance
shortestDistance = distance
nearestPlayer = player
nearestPlayer
()
loopConnection = RunService.Heartbeat:(()
hue = (() % ) /
rainbowColor = .(hue, , )
BorderFrame.BackgroundColor3 = rainbowColor
attachEnabled
myChar = LocalPlayer.Character
myChar myChar:()
targetPlayer = ()
targetPlayer targetPlayer.Character targetPlayer.Character:()
targetHrp = targetPlayer.Character.HumanoidRootPart
targetLookVector = targetHrp.CFrame.LookVector
behindPosition = targetHrp.Position - (targetLookVector * attachDistance)
myChar.HumanoidRootPart.CFrame = .(behindPosition, behindPosition + targetLookVector)
)
()
ToggleButton.MouseButton1Click:(()
attachEnabled = attachEnabled
attachEnabled
ToggleButton.Text =
ToggleButton.BackgroundColor3 = .(, , )
ToggleButton.Text =
ToggleButton.BackgroundColor3 = .(, , )
)
DistanceTextBox.Focused:(()
DistanceTextBox.Text =
)
DistanceTextBox.FocusLost:((enterPressed)
num = (DistanceTextBox.Text)
num
attachDistance = num
DistanceTextBox.Text = .. (attachDistance)
)
DestroyButton.MouseButton1Click:(()
attachEnabled =
loopConnection loopConnection:()
ScreenGui:()
)
HideShowButton.MouseButton1Click:(()
BorderFrame.Visible = BorderFrame.Visible
)
Attach to nearest players

Universal