Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

What's an event for when someone presses a "key", on the keyboard?

Asked by 10 years ago

What's an event for when someone presses a "key", on the keyboard?

2 answers

Log in to vote
0
Answered by 10 years ago
mouse = game.Players.LocalPlayer:GetMouse()
--Put in localscript in starterpack

mouse.KeyDown:connect(function(key)
if key == "z" then
print("z was pressed")
end
end)

For more on this go here: Here

0
Please note: This is not a request site. So this MAY be taken down or you may have to put code in your next question, thank you! fireboltofdeath 635 — 10y
Ad
Log in to vote
-3
Answered by 10 years ago

Here you can learn it.

0
Ey ppl down voting beacuse they want the entire script. too bad for you. digitalzer3 123 — 10y

Answer this question