Highlight Script Not working

Might want to replace task.wait() with just wait(0).

Why? task.wait() is just more accurate.

Then do task.wait(0.03); Because the number you have done is under the mininum.

Oh thanks. I did wait(0) and its still slow…

If it is slow, you might want to change the for loop.
Here is one that changes the speed:

local function light(hrp) --Highlights the hrp
	local highlight = hrp.Highlight
    local speed = 2
	for i = 0,50/speed,1 do
		highlight.FillTransparency -= .01*speed
        wait(0)
	end
	for i = 0,50/speed,1 do
		highlight.FillTransparency += .01*speed
        wait(0)
	end
end

I did 2.5 and it stopped highlighting.

The speed cant be a decimal. Or it will break the for loop.

I did 3 and it also breaks… Is that a problem?

Fix: (Now you can also use decimals)

local function light(hrp) --Highlights the hrp
	local highlight = hrp.Highlight
    local speed = 2
	for i = 0,math.floor(50/speed),1 do
		highlight.FillTransparency -= .01*speed
        wait(0)
	end
	for i = 0,math.floor(50/speed),1 do
		highlight.FillTransparency += .01*speed
        wait(0)
	end
end

This would be the answer but I can’t hit now when its highlighted…

Highlight is not the problem that it is not hittable. You have a print in the damage section, is it being called?

It just prints glow the highlight

The print statement is useless, I just deleted it.