
1.3k Views
29 Executions
Highlight all players made by Google ai
Universal Script 📌
ameeenjadorFirst script
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
highlight
-- Services
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
-- Configuration for the highlight effect
local HIGHLIGHT_COLOR = Color3.new(1, 1, 0) -- Yellow color (RGB: 255, 255, 0)
local HIGHLIGHT_OUTLINE_COLOR = Color3.new(0, 0, 0) -- Black color (RGB: 0, 0, 0)
local HIGHLIGHT_DEPTH_MODE = Enum.DepthMode.AlwaysOnTop -- Makes the highlight visible through objects
-- Function to create and add the highlight to a character
local function addHighlightToCharacter(character)
-- Check if the character already has a highlight to prevent duplicates
if character:FindFirstChildOfClass("Highlight") then
return
end
-- Create a new Highlight instance
local highlight = Instance.new("Highlight")
highlight.Parent = character
highlight.FillColor = HIGHLIGHT_COLOR
highlight.OutlineColor = HIGHLIGHT_OUTLINE_COLOR
highlight.DepthMode = HIGHLIGHT_DEPTH_MODE
print("Highlight added to character: " .. character.Name)
end
-- Function to handle new players joining the game
local function onPlayerAdded(player)
print("Player joined: " .. player.Name)
-- Wait for the player's character to spawn
player.CharacterAdded:Wait()
-- Add highlight to the new player's character
addHighlightToCharacter(player.Character)
-- Listen for when the character respawns to re-add the highlight
player.CharacterAdded:Connect(addHighlightToCharacter)









skid
easy to script lol