guys I need help when I press the key it doesn't work
User
-- Obtém o serviço UserInputService
local userInputService = game:GetService("UserInputService")
-- Função a ser executada quando uma tecla é pressionada
local function onKeyDown(input, gameProcessedEvent)
-- Verifica se a tecla pressionada é a tecla "Q"
if input.KeyCode == Enum.KeyCode.Q then
workspace.LieDetector.Color = Color3.fromRGB(255, 38, 0)
end
end
-- Conecta a função ao evento InputBegan
userInputService.InputBegan:Connect(onKeyDown)
** You are now Level 5! **