btw there is a value inside of the GUI so that i know if its Visible so i can spend less time lol
local UIS = game:GetService("UserInputService") UIS.InputBegan:Connect(function(key) if key == Enum.KeyCode.RightShift then if script.Parent.Visible.Value == true then script.Parent.BottomFrame.Visible = false script.Parent.Frame.Visible = false else script.Parent.BottomFrame.Visible = true script.Parent.Frame.Visible = true end else return end end)
InputBegan gives “input”, not “key”, also, it’s not the KeyCode itself.
You need to do Input.KeyCode
to compare the keys.
So something like
UIS.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.RightShift then --yes shift else --no shift end end)