Universal Script 📌
1.4k Views
55 Executions

Highlight all players made by Google ai

Universal Script 📌
ameeenjador
ameeenjadorFirst script
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

highlight

View Raw


-- 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)


Comments

2
Log in to join the conversation. Login
ZERETET's profile picture
ZERETET1 year ago

skid

1
bopery7's profile picture
bopery71 year ago

easy to script lol

1

More universal scripts

See all
Script hub
202.3k
2.3M
Bumped 1 hour ago
Key System

Script hub

#20 this week

Verified script badgeAirflow HUB

Universal Script 📌
57.4k
270.2k
Bumped 3 hours ago
Key System
Script hub
2.2M
2.5M
Bumped 6 hours ago
Key System
Universal Script 📌
33.3k
479.6k
Bumped 6 hours ago
Script hub
4.0M
2.7M
Bumped 6 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games

Script hub
580
2.6k
Bumped 8 hours ago