Run it
Copy the script and paste it into your executor.
PathfindingService = :()
RunService = :()
Players = :()
UserInputService = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
rootPart = character:()
targetPlayer =
currentHighlight =
path = PathfindingService:({
AgentRadius = ,
AgentCanJump = ,
})
()
targetPlayer =
currentHighlight
currentHighlight:()
currentHighlight =
humanoid:(rootPart.Position)
()
targetPlayer targetPlayer.Character targetPlayer.Character:()
targetRoot = targetPlayer.Character.HumanoidRootPart
destination = targetRoot.Position
(rootPart.Position - destination).Magnitude >
success, errorMessage = (()
path:(rootPart.Position, destination)
)
success path.Status == .PathStatus.Success
waypoints = path:()
waypoints[]
humanoid:(waypoints[].Position)
waypoints[].Action == .PathWaypointAction.Jump
humanoid.Jump =
humanoid:(destination)
.()
()
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
mousePos = UserInputService:()
unitRay = .CurrentCamera:(mousePos.X, mousePos.Y)
raycastParams = RaycastParams.()
raycastParams.FilterType = .RaycastFilterType.Exclude
raycastParams.FilterDescendantsInstances = {character}
result = :(unitRay.Origin, unitRay.Direction * , raycastParams)
result result.Instance
hitCharacter = result.Instance:()
hitPlayer = Players:(hitCharacter)
hitPlayer
hitPlayer == targetPlayer
()
()
targetPlayer = hitPlayer
currentHighlight = .()
currentHighlight.FillTransparency =
currentHighlight.OutlineColor = .(, , )
currentHighlight.OutlineTransparency =
currentHighlight.Parent = hitCharacter
.(followTarget)
)
Players.PlayerRemoving:((playerWhoLeft)
targetPlayer playerWhoLeft == targetPlayer
()
)Pathfind a player. When they are clicked you follow them and they have a red outline only appears for you

Universal