Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

TextLabel isn't visible when button is pressed?

I've done this before, and it's worked perfectly fine! I have no idea what's wrong with this script. Is anyone able to help?

script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.Parent.MainText.Visible = true
    script.Parent.Parent.Parent.MainText.Text = "Welcome."
end)

3 comments

0

Did you put the correct amount of Parents?

0

Yes

0

What if the particular GUI text isnt visible at the default setting? ( the box "Visible" is selected, or the text has an transparency of 1? )

2 answers

If that doesn't work, make sure you made it a "Local Script" and if that still doesn't work, you might have to make it not visible from the Local player Gui. This is an example

local Player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
      Player.PlayerGui.ScreenGui.TextLabel.Visible = false
end)

Hope that helped :D

1 comment

0

It didn't work :/

Did you use frame? if you use it, try to set zindex value of the frame

This discussion is preserved as it was. New answers, comments, and votes are closed.