So, I am having an issue with guis not turning visible/invisible in game. I have a keybind event that looks like this
local gui = game:GetService("StarterGui")
local shop = gui.shopgui.Frame -- The name of the shop frame
local mouse = game.Players:GetMouse()
local toggle = false
mouse.KeyDown:Connect(function(key)
if key == "m" then
if toggle == false then
shop.Visible = true
toggle = true
elseif toggle == true then
shop.Visible = false
toggle = false
end
end
end
end)
Although, while im in studio and playing the game I can see the property of the gui and it says its visible but it doesn't show in the game screen. Help would be appreciated. Ask any questions about this if you have trouble understanding.

1 comment
finally got this accepted after 2 months lol