UIStroke Transparency is set to 1 but it's still visible

This is how the gui looks like when the uistroke’s transparency is set to 1:
image

I’m changing it through a localscript:

for i = 1,10,1 do
			print(i)
			player.PlayerGui.NPCS.NPC1.Popup.BackgroundTransparency +=0.1
			player.PlayerGui.NPCS.NPC1.Popup.UIStroke.Transparency +=0.1
			player.PlayerGui.NPCS.NPC1.Popup.QuestName.TextTransparency +=0.1
			player.PlayerGui.NPCS.NPC1.Popup.QuestName.UIStroke.Transparency +=0.1
			player.PlayerGui.NPCS.NPC1.Popup.QuestText.TextTransparency +=0.1
			player.PlayerGui.NPCS.NPC1.Popup.QuestText.UIStroke.Transparency +=0.1
			wait(0.2)
		end

Help would be appreciated!

2 Likes

It’s is not 0.1 but 1 I think try that it sall work and if you try make the fully ui transparance you can make the GUI object invisible

1 Like

I understand what you are saying but I want to make an effect where it slowly disappears not instantly. That is what the for loop is for.

1 Like

Well I figured it out. For some reason setting the numbers instead of adding them works.

2 Likes

Also, consider using tweens. Much easier and much smoother to watch.

local tweenInfo = TweenInfo.new(--stuff)
local tween1 = --tween
local tween2 = --tween

--etc
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.