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

Is Mouse.Keydown actually deprecated?

Asked by 6 years ago

im making an FPS and i want to make a custom inventory system, but the wiki says "KeyDown [deprecated]", so is there any other way to use a key down event if its actually deprecated?

mse.KeyDown:connect(function(key)

end)

i added this but i wasnt sure if it was KeyDown so i checked the wiki and found out that it was deprecated

im wondering if its still a good option or if there's another, better way to do that

any help is appreciated

0
just search keyboard input. abnotaddable 920 — 6y
0
just search keyboard input. abnotaddable 920 — 6y
0
Yes. Last time I tried it, its argument had the wrong key. hiimgoodpack 2009 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I would advise using UserInputService. Here is a link where you can learn about it.

http://wiki.roblox.com/index.php?title=API:Class/UserInputService

0
oh thanks, i'll be able to use iskeypressed etc yeah that's better loulou1112 35 — 6y
0
or context action service? just search keyboard input. abnotaddable 920 — 6y
Ad

Answer this question