Untitled
unknown
plain_text
9 months ago
918 B
3
Indexable
local function highlightPlayer(player)
-- Ensure the player has a character
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
-- Create a Highlight object
local highlight = Instance.new("Highlight")
highlight.Parent = player.Character
highlight.Adornee = player.Character
highlight.FillColor = Color3.fromRGB(255, 0, 0) -- Red color (change this to any color you like)
highlight.OutlineColor = Color3.fromRGB(255, 255, 0) -- Yellow outline (change this as well)
highlight.FillTransparency = 0.5 -- Adjust transparency for fill
highlight.OutlineTransparency = 0.5 -- Adjust transparency for outline
highlight.Enabled = true
end
end
-- Example usage: Highlight the local player (you can replace with any other player)
local player = game.Players.LocalPlayer
highlightPlayer(player)
Editor is loading...
Leave a Comment