Button to make text invisible not working

Hello there! I just tried to make a script that makes a text invisible by clicking, it doesn’t work though I’ve looked around can’t find any way to fix it so guess I’ll ask here.

Here is the script:
image

Local TipsText = game.StarterGui.Tips.TipsGui.Tips

function Clicked()
TipsText.Visible = false
end

script.Parent.MouseButton1Click:Connect(Clicked)

change game.StarterGui to game.Players.LocalPlayer.PlayerGui

you are currently accessing the StarterGui, but you should access the players PlayerGui instead.

2 Likes

I’m not sure if I did something wrong, but it didn’t work for me.

Can I see the explorer? The script is correct, except for the game.StarterGui (which @TwilightWolf93 already talked about)

1 Like

Everything seems correct, can I see the updated script?

Are there any errors? char limit eeeeeeeee

Yes I see one.

Change line 1 to

local plrService = game:GetService("Players")
local TipsText = plrService.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("Tips"):WaitForChild("TipsGui"):WaitForChild("Tips")
1 Like

Thanks a lot, it works just like I want it to.

@BlooxyLukas did you mean solved in the title, the unsolved means it is not solved and you may change the title to solved.

Nah, I just forgot to put it on solved

1 Like