Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

can somebody help I have a credits button that opens up the credits but its not working?

Asked by 3 years ago
Edited 3 years ago

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)

1 answer

Log in to vote
0
Answered by
vxnnisu 17
3 years ago

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.

0
It didnt work when I click it the visible property does enable But i still cant see the words Itsyaboyhands 6 — 3y
0
You also need to make the words visible. vxnnisu 17 — 3y
Ad

Answer this question