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

Why dosn't the gui show up on the screen?

Asked by 4 years ago

So I have made a script. Where a gui should show up on my screen if a click on textbutton. When I press the textbutton. The frame"gui" becomes visible = true. But it still doesn't show up on my screen. How do I make it show up on my screen?

textbutton = script.Parent
gui = game.StarterGui.Experia.Menu
textbutton.MouseButton1Click:Connect(function()
    gui.Visible = true
    print("textbutton got pressed")
end)
0
This is a common problem lately :) ForeverBrown 356 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

you are turning the StarterGui Visible not the PlayerGui try

textbutton = script.Parent
gui = game.Players.LocalPlayer.PlayerGui.Experia.Menu
textbutton.MouseButton1Click:Connect(function()
    gui.Visible = true
    print("textbutton got pressed")
end)
0
Hey, this works and I tottaly understand what I did wrong. Ty very much. Skydoeskey 108 — 4y
Ad

Answer this question