How would i add a highlight to a characters accessories and be able to tween the values of it

How do i add a highlight that i would be able to change the color and other stuff inside the characters accessories

i can grab a clone highlight from sever storage but i don’t know how to put it into accessories and using the script to tween the colors of the clones highlights inside the accessories

image

you can change the highlights colors with these properties:
image

For tweening you could do a simple tween like any other object

local Highlight = -- Highlight here
local TargetColor = Color3.fromRGB(111,111,255) -- a nice purple for testing

local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new()-- put info here
local Tween = TweenService:Create(Highlight, Info, {FillColor = TargetColor})
Tween:Play()

If you want the highlight on separate accessories try this.

local Players = game:GetService("Players")
local TweS = game:GetService("TweenService")
local Debris = game:GetService("Debris")

local ConcurrentHighlights = {}

local Quad = Enum.EasingStyle.Quad

-- // this could work with any object just have it in a table (decaytime can be set to nil for infinite)
local function Highlight(Table, Color, TweenColor, TweenTime, DecayTime)
	for _, instance in pairs(Table) do
		-- // this can be switched with a highlight that u want parented under script
		local HL = Instance.new("Highlight", instance)
		HL.FillColor = Color
		HL.Parent = instance:FindFirstChild("Handle")
		-- // 
		TweS:Create(HL, TweenInfo.new(TweenTime, Quad), {FillColor = TweenColor}):Play()
		table.insert(ConcurrentHighlights, HL)
		if not DecayTime then continue end
		Debris:AddItem(HL, DecayTime)
	end
end

-- // if you want easy way to clear highlights
local function ClearHighlights(SpecificInstance: Instance?)
	if SpecificInstance then
		for _, children in pairs(SpecificInstance:GetDescendants()) do
			if children:IsA("Highlight") then children:Destroy() continue end
		end
	end
	for _, highlight in pairs(ConcurrentHighlights) do
		highlight:Destroy()
	end
end

-- // test purposes (can be deleted)
Players.PlayerAdded:Connect(function(Plr)
	task.spawn(function()
		local Character = Plr.Character or Plr.CharacterAdded:Wait()
		local AssetTable = {}
		
		task.wait(1)
		for _, instance in pairs(Character:GetChildren()) do
			if instance:IsA("Accessory") then
				table.insert(AssetTable, instance)
				continue
			end
		end

		Highlight(AssetTable, Color3.new(0.709804, 0.239216, 1), Color3.new(1, 0.882353, 0.454902), 10)
	end)
end)