The only thing in the output is "work".
script.Parent.MouseButton1Click:Connect(function()
print ("work")
game.StarterGui.ChooseGui.choice1gui.Visible = false
end)
How is this not working?
The only thing in the output is "work".
script.Parent.MouseButton1Click:Connect(function()
print ("work")
game.StarterGui.ChooseGui.choice1gui.Visible = false
end)
How is this not working?
Hello, please consider this:
script.Parent.MouseButton1Click:Connect(function()
print ("work")
game.Players.LocalPlayer:WaitForChild("PlayerGui"):FindFirstChild("ChooseGui"):FindFirstChild("choice1gui").Visible = false
end)
Based from my experiences, contents of StarterGui are automatically replicated to PlayerGui upon spawning.
Resource that may help: https://developer.roblox.com/en-us/api-reference/class/PlayerGui
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank you, this worked perfectly!