Highlight all players made by Google ai · RobloxExploits.lolHighlight all players made by Google ai
ameeenjador 1 year ago 1.3K viewsRun it
Copy the script and paste it into your executor.
Highlight all players made by Google ai.lua · 63 lines
-- 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)
HIGHLIGHT_DEPTH_MODE = .DepthMode.AlwaysOnTop
(character)
character:()
highlight = .()
highlight.Parent = character
highlight.FillColor = HIGHLIGHT_COLOR
highlight.OutlineColor = HIGHLIGHT_OUTLINE_COLOR
highlight.DepthMode = HIGHLIGHT_DEPTH_MODE
( .. character.Name)
(player)
( .. player.Name)
player.CharacterAdded:()
(player.Character)
player.CharacterAdded:(addHighlightToCharacter)
(player)
( .. player.Name)
_, player (Players:())
player.Character
(player.Character)
Players.PlayerAdded:(onPlayerAdded)
Players.PlayerRemoving:(onPlayerRemoving)
About this script
highlight
-- Black color (RGB: 0, 0, 0)
local
Enum
-- Makes the highlight visible through objects
-- Function to create and add the highlight to a character
local
function
addHighlightToCharacter
-- Check if the character already has a highlight to prevent duplicates
if
FindFirstChildOfClass
"Highlight"
then
return
end
-- Create a new Highlight instance
local
Instance
new
"Highlight"
print
"Highlight added to character: "
end
-- Function to handle new players joining the game
local
function
onPlayerAdded
print
"Player joined: "
-- Wait for the player's character to spawn
Wait
-- Add highlight to the new player's character
addHighlightToCharacter
-- Listen for when the character respawns to re-add the highlight
Connect
end
-- Function to handle players leaving the game (optional but good practice)
local
function
onPlayerRemoving
print
"Player left: "
end
-- Main script execution logic
-- Add highlights to all players who are currently in the game
for
in
ipairs
GetPlayers
do
-- Check if the player's character has already spawned
if
then
addHighlightToCharacter
end
end
-- Listen for new players joining the game
Connect
-- Listen for players leaving the game
Connect
Soggyware 60 PLUS Games
Universal