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

Why is my Frame not turning visible on a button click?

Asked by 4 years ago

So basically my Frame isn't turning visible on button click. There is nothing is the output also. Here's an image of the explorer and the script.

https://gyazo.com/6755891859e0afecf884f773049838b8

1 answer

Log in to vote
0
Answered by 4 years ago

It's because you're changing it in StarterGui, that won't have an affect. You have to change it through player gui, or through the gui itself.

So, your script should look like this.

script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.SkillsGui.Visible = true
end)

That will alter the visual appearance on the player's screen.

Hope this helped! Feel free to select this as the answer if this helped!

0
Thanks! iiDevPanda 43 — 4y
0
Np killerbrenden 1537 — 4y
Ad

Answer this question