local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local CoolFrame = Player.PlayerGui.ScreenGui.Frame
Mouse.KeyDown:Connect(function(Key)
Key = Key:lower()
if Key == 'e' then
if CoolFrame.Visible == false then
CoolFrame.Visible = true
else
CoolFrame.Visible = false
end
end
end)
https://media.discordapp.net/attachments/810082259859406848/810100307425624084/help.PNG
IDK what to name what
I want the Main_frame

3 comments
Replace line 3 by local CoolFrame = script.Parent["Main_Frame"]
still dont work
if key == Enum.KeyCode.E then think that should do it