Answers for "how to check if a key was pressed in roblox"

Lua
2

roblox key pressed script

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
	 
mouse.KeyDown:connect(function()
	    print("Pressed a key.")
end)
Posted by: Guest on September-15-2020

Code answers related to "how to check if a key was pressed in roblox"

Browse Popular Code Answers by Language