Hello, I have a script that sets a textbutton's visible and active property to true. But I don't see the textbutton. And my script is a localscript.
I tried searching many times on how I could fix this but I didn't find the right answer.
Here is the code:
game.StarterGui.FloatyBrickConversation.ImageLabel.Response1.Active = true game.StarterGui.FloatyBrickConversation.ImageLabel.Response2.Active = true game.StarterGui.FloatyBrickConversation.ImageLabel.Response1.Visible = true game.StarterGui.FloatyBrickConversation.ImageLabel.Response2.Visible = true
Please help me.
You need to edit the Gui of the player and not the StarterGui. By editing the StartGui (server-side) only new players that join are going to see the edits, as StarterGui copys its children to the player because it is only a container. Also your localscript does nothing as it can not really edit StarterGui except for you.
For more info read [StarterGui as a Container]: StarterGui Documentation
Edit: PlayerGui is located under the Player. To access it (locally):
game:GetService("Players").LocalPlayer.PlayerGui -- your GUIs from StarterGui are children from player.PlayerGui
You can also see this ingame (or when you test) and open your Player in the Explorer.