This is what I have so far:
script.Parent.MouseButton1Click:connect(function() game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible = true end)
But I don't know how to make it where you click it again it goes away..
This is what I have so far:
script.Parent.MouseButton1Click:connect(function() game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible = true end)
But I don't know how to make it where you click it again it goes away..
script.Parent.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible==true then
game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible=false
elseif game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible==false then
game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible=true
end
Same idea really, just added 'if' statements.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thanks dyler3! :D