So this is my code Idk whats wrong with it I think it should be working but idk
~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~
local button = script.Parent
local credits = game.StarterGui.TeamChange.Frame.Credits2
button.MouseButton1Click:Connect(function()
credits.BackgroundTransparency = 0 credits.TextTransparency = 0
end)
Hello there. I would say that you don't want the gui to be changed by transparency, you actually would want to say if it's Visible. Why? Well, actually it's because you want to be more precise of what you want, because it takes more time. So, here is the fixed version:
local button = script.Parent local credits = game.StarterGui.TeamChange.Frame.Credits2 button.MouseButton1Click:Connect(function() credits.Visible = true end)
You also, when the game starts to run, you want to set the visibility of the gui to false.