Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DepthMode = "AlwaysOnTop"
- local FillTransparency = 0.5
- local OutlineColor = Color3.fromRGB(255, 255, 255)
- local OutlineTransparency = 0
- local CoreGui = game:FindService("CoreGui")
- local Players = game:FindService("Players")
- local lp = Players.LocalPlayer
- local connections = {}
- -- Storage for highlights
- local Storage = Instance.new("Folder")
- Storage.Parent = CoreGui
- Storage.Name = "Highlight_Storage"
- local function RainbowEffect(Highlight)
- -- Rainbow cycle: smoothly transition through the color spectrum
- while Highlight and Highlight.Parent do
- for hue = 0, 1, 0.01 do
- Highlight.FillColor = Color3.fromHSV(hue, 1, 1) -- Cycle through colors
- wait(0.05) -- Speed of the color change (adjust for faster/slower effect)
- end
- end
- end
- -- Function to highlight a player
- local function HighlightPlayer(plr)
- local Highlight = Instance.new("Highlight")
- Highlight.Name = plr.Name
- -- Check if the player is one of the specific players
- if plr.Name == "ARAMPOGI_007" or plr.Name == "pvppogi_007" or plr.Name == "M4YH3M_ANT1V1RUS" then
- Highlight.FillColor = Color3.fromRGB(255, 165, 0) -- Orange for specific players
- else
- spawn(function() -- Apply rainbow effect to non-listed players
- RainbowEffect(Highlight)
- end)
- end
- Highlight.DepthMode = DepthMode
- Highlight.FillTransparency = FillTransparency
- Highlight.OutlineColor = OutlineColor
- Highlight.OutlineTransparency = OutlineTransparency
- Highlight.Parent = Storage
- local plrchar = plr.Character
- if plrchar then
- Highlight.Adornee = plrchar
- end
- -- Connect CharacterAdded event to update the Adornee
- connections[plr] = plr.CharacterAdded:Connect(function(char)
- Highlight.Adornee = char
- end)
- end
- -- Apply highlights when a new player joins
- Players.PlayerAdded:Connect(HighlightPlayer)
- -- Apply highlights to all current players
- for _, player in next, Players:GetPlayers() do
- HighlightPlayer(player)
- end
- -- Clean up when a player leaves
- Players.PlayerRemoving:Connect(function(plr)
- local plrname = plr.Name
- if Storage[plrname] then
- Storage[plrname]:Destroy()
- end
- if connections[plr] then
- connections[plr]:Disconnect()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement