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

I need a script that when you click on the button it goes invisible and the frame is visible help..?

Asked by
raid6n 2196 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

I’ve tried a few scripts like: button = script.Parent

function onClicked(GUI)

script.Parent.Parent.Parent.InfoGUI.Visible = true script.Parent.Parent.Visible = false

end script.Parent.MouseButton1Click:connect(onClicked) but it won’t work, it only makes the frame visible.

1 answer

Log in to vote
0
Answered by
karlo_tr10 1233 Moderation Voter
5 years ago

Use Lua box, also You didn't explain well so I am not sure if this is what you tough.

local button = script.Parent
local function onClicked(GUI)
    script.Parent.Parent.Parent.InfoGUI.Visible = true
    button.Visible = false
end
script.Parent.MouseButton1Click:Connect(onClicked) 
0
Thank you. It worked. raid6n 2196 — 5y
Ad

Answer this question