So for context I am making a Gui that has player mods that is supposed to fade in and out, but the textButtons' background is transparent
local plrMods = script.Parent.Parent.Parent.Frame.PlayerMods script.Parent.MouseButton1Click:Connect(function() for i = 1,100,1 do plrMods.Jump.TextTransparency = plrMods.Jump.TextTransparency - 1 end end)
On line 5, you made it remove 1 from the transparency, when you should've done 0.1.
Try:
local plrMods = script.Parent.Parent.Parent.Frame.PlayerMods
script.Parent.MouseButton1Click:Connect(function() for i = 1,100,-1 do plrMods.Jump.TextTransparency = plrMods.Jump.TextTransparency - 0.1 end end)
for eazy copy from andarwniceguyjr
local plrMods = script.Parent.Parent.Parent.Frame.PlayerMods script.Parent.MouseButton1Click:Connect(function() for i = 1,100,-1 do plrMods.Jump.TextTransparency = plrMods.Jump.TextTransparency - 0.1 end end)
this should work
local plrMods = script.Parent.Parent.Parent.Frame.PlayerMods script.Parent.MouseButton1Click:Connect(function() for i = 1,100,-1 do wait() plrMods.Jump.TextTransparency = plrMods.Jump.TextTransparency - 0.01 end end)