Universal Script 📌
1.3k Views
29 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
159.8k
1.5M
Bumped 2 hours ago
Key System

Script hub

#15 this week

Verified script badgeAirflow HUB

Universal Script 📌
2.3k
992
Bumped 2 hours ago
Script hub
1.6M
1.9M
Bumped 2 hours ago
Key System

Script hub

#10 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
40.4k
817.4k
Bumped 4 hours ago
Universal Script 📌
133.7k
24.2k
Bumped 5 hours ago
Key System