What solutions have you tried so far?
I’ve tried to google it but it came up with nothing good.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local button = script.Parent
button.MouseButton1Click:Connect(function()
if game.Players.Player.PlayerGui.Auction.Enabled == false then
game.Players.Player.PlayerGui.Auction.Enabled = true
if game.Players.Player.PlayerGui.Auction.Enabled == true then
game.Players.Player.PlayerGui.Auction.Enabled = false
end
end)
local button = script.Parent
button.MouseButton1Click:Connect(function()
if game.Players.Player.PlayerGui.Auction.Enabled == false then
game.Players.Player.PlayerGui.Auction.Enabled = true
end
if game.Players.Player.PlayerGui.Auction.Enabled == true then
game.Players.Player.PlayerGui.Auction.Enabled = false
end
end)
local button = script.Parent
button.MouseButton1Click:Connect(function()
if game.Players.Player.PlayerGui.Auction.Enabled == false then
game.Players.Player.PlayerGui.Auction.Enabled = true
if game.Players.Player.PlayerGui.Auction.Enabled == true then
game.Players.Player.PlayerGui.Auction.Enabled = false
end
end
end)
local button = script.Parent
button.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.PlayerGui.Auction.Enabled = not game.Players.LocalPlayer.PlayerGui.Auction.Enabled
end)