RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make a script that says "Hello" whenever a player presses the H on the keyboard."
-- local script local player = game.Players.LocalPlayer local function onKeyPress(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.H then print("Hello") end end player.InputBegan:Connect(onKeyPress)