Answers for "roblox do something when key pressed"

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 "roblox do something when key pressed"

Browse Popular Code Answers by Language