Add a local script into StarterPlayerScripts and paste this inside:
--//Services
local Players = game:GetService("Players")
--//Variables
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
--//Functions
local function InitializeCharacter(character)
local Highlight = character:WaitForChild("Highlight")
Highlight:Destroy()
end
InitializeCharacter(Character)
LocalPlayer.CharacterAdded:Connect(function(character)
InitializeCharacter(character)
end)
Considering this is just for an effect (‘Highlight’ instance) the functionality may as well be handled by the client.
--LOCAL
local Game = game
local Players = Game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local function OnPlayerAdded(Player)
if Player == LocalPlayer then return end
local function OnCharacterAdded(Character)
local Highlight = Instance.new("Highlight")
Highlight.Adornee = Character
Highlight.Parent = Character
end
Player.CharacterAdded:Connect(OnCharacterAdded)
local Character = Player.Character
if Character then task.spawn(OnCharacterAdded, Character) end
end
Players.PlayerAdded:Connect(OnPlayerAdded)
for _, Player in ipairs(Players:GetPlayers()) do
task.spawn(OnPlayerAdded, Player)
end