I’m trying to make a highlight disapear for one player but it keaps glitching on local script and server script it just goes to -0.2 transparancy for some reason can someone please help me?
local script:
local timer = 60
local number = 1
script.Parent.Highlight.OutlineTransparency = 1
game.ReplicatedStorage.Values.StoryValues.GetBackpacks:GetPropertyChangedSignal("Value"):Connect(function()
local playerName = script.Parent.Owner.Value
local player = game.Players:FindFirstChild(playerName)
if script.Parent.Owner.Value ~= nil and script.Parent.Owner.Value ~= "" then
repeat
number -= 0.17
script.Parent.Highlight.OutlineTransparency = number
timer -= 1
until timer <= 0
end
end)