
7.1k Views
253 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
.f = follow .unf = unfollow by covron visuals Pathfinder
Updates
Script edited: Create script
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("follow script by covron | commands: .f <user>, .unf <user>", "All")
local Players = game:GetService("Players")
local PathfindingService = game:GetService("PathfindingService")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local HRP = Character:WaitForChild("HumanoidRootPart")
local following = false
local targetPlayer = nil
local targetJumpConn = nil
local targetCharAddedConn = nil
local pathFolder = workspace:FindFirstChild("PathVisuals") or Instance.new("Folder", workspace)
pathFolder.Name = "PathVisuals"
local function updateLocalCharacter(newCharacter)
Character = newCharacter
Humanoid = Character:WaitForChild("Humanoid")
HRP = Character:WaitForChild("HumanoidRootPart")
end
LocalPlayer.CharacterAdded:Connect(updateLocalCharacter)
local function getPlayerByName(nameFragment)
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer and string.find(player.Name:lower(), nameFragment:lower(), 1, true) then
return player
end
end
return nil
end
local function setupTargetJumpConnection(target)
if targetJumpConn then
targetJumpConn:Disconnect()
targetJumpConn = nil
end
if targetCharAddedConn then
targetCharAddedConn:Disconnect()
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!






