I have some basic screen gui knowledge, but for a place i am working on, i need to make the shop open when a key is pressed, similar to murder mystery. I do not need the entire shop script, just some help for opening and closing with the same button.
For this you would use the KeyDown event.
--LocalScript local player = game.Players.LocalPlayer local mouse = player:GetMouse() local open = false mouse.KeyDown:connect(function(key) if key == "b" then --replace this with the key you want if open == false then open = true --open the shop elseif open == true then open = false --close the shop end end end