Hey would anyone be able to help me with a gui as I would like it to show a gui when a user has pressed "q" And not sure how is anyone able to help?
Hello, I'm xWhiteHat. I'll be trying to help you with your request. I've made this script that should work how you asked.
local FramePath -- Path to frame local UIS = game:GetService("UserInputService") UIS.InputBegan:Connect(function(input, GPE) if not GPE then if input.KeyCode == Enum.KeyCode.Q then if FramePath.Visible == false then FramePath.Visible = true elseif FramePath.Visible == true then FramePath.Visible = false end end end end)
I hope this script works im not really that good
Mouse = game.Players.localPlayer:GetMouse() Mouse.KeyDown:connect(function(key) if (key:byte() == 113) then game.StarterGui.(PutGuiNameHere).Enabled = true Mouse.KeyUp:connect(function(key) if (key:byte() == 113) then game.StarterGui.(PutGuiNameHere).Enabled = false