-- game variables
local userInputService = game:GetService("UserInputService")
local RepStorarge = game:GetService("ReplicatedStorage")
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
-- Other variables
local SubRootPart = workspace.Submarine.RootPart
userInputService.InputBegan:connect(function(inputObject, gameProcessedEvent)
if gameProcessedEvent then
if inputObject.KeyCode == Enum.KeyCode.One then
print("z")
end
end
end)
Z is not printing, however it works with letter keys on the keyboard but not with number keys.