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

Gui visible only working in roblox studio?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago
--//Variables
Frame = script.Parent.Frame

--//Function
script.Parent.MouseButton1Click:connect(function()
    if Frame.Visible == true then
        Frame.Visible = false
        script.Parent.Text = "Open Shop"
    else
        Frame.Visible = true
        script.Parent.Text = "Close Shop"
    end 
end)

1 answer

Log in to vote
1
Answered by
Azmidium 388 Moderation Voter
8 years ago

(I was in a skype call with you)

Well the issue seems that you are using a localscript.

It will fix it if you just use a regular script. :)

Hope this helps!

Sincerely, jmanrock123

1
It should work in local. LetThereBeCode 360 — 8y
0
I know I was wierded out by that. Azmidium 388 — 8y
Ad

Answer this question