Weird glitch Higlights

when I try this script even when it doesnt need to run this script will glitch the trasparency wil go to 0 for some reason and then go into the minus idk why this happends.

script.Parent.Highlight.OutlineTransparency = 1

game.ReplicatedStorage.Values.StoryValues.GetBackpacks:GetPropertyChangedSignal("Value"):Connect(function()
	if script.Parent.Owner.Value ~= nil and script.Parent.Owner.Value ~= "" then
		repeat
			script.Parent.Highlight.OutlineTransparency -= 0.017
			timer -= 1
		until timer <= 0
	end
end)
2 Likes