-- Varibles
local UIS = game:GetService("UserInputService")
--[[
UI Varibles
--]]
local Title = script.Parent.Title
local Backframe = script.Parent.BackFrame
local IsActive = false
local function OpenMenu()
if IsActive == false then
IsActive = true
Title.Visible = true
Backframe.Visible = true
elseif IsActive == true then
IsActive = false
Title.Visible = false
Backframe.Visible = false
end
end
UIS.InputBegan:Connect(function(input,IsTyping)
if IsTyping then
return
elseif input.UserInputType == Enum.KeyCode.M then
OpenMenu()
end
end)
Get no output error so idk what to tell u

1 comment
There is no need to evaluate another term in your conditional, you can simply use an else clause as the only other state "IsActive" could be in is true.