I have a text button and want to my a GUI visible, but it isn't doing anything.
script.Parent.Activated:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.Laptop.Visible = true
end)
I have a text button and want to my a GUI visible, but it isn't doing anything.
script.Parent.Activated:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.Laptop.Visible = true
end)
script.Parent.Activated:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.Laptop.Visible = not game.Players.LocalPlayer.PlayerGui.ScreenGui.Laptop.Visible
end)
It is set to invisible so when I click it shouldn't it make it visible? I don't want it 2 ways
? This script basically makes it the opposite of what yo do for e.g. If its visible then when you click it again its not visible
Just use BackgroundTransparency. Set the BackgroundTransparency of your Frame to 1 and use this script.
script.Parent.Activated:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.Laptop.BackgroundTransparency = 1
end)
Sorry, for line 2 I meant 0.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Maybe you could change the BackgroundTransparency instead.