of     1   

TheLuaUser
#138548657Saturday, June 28, 2014 10:47 PM GMT

I can't find Numbers in the Key bindings list...
smiley599
#138549103Saturday, June 28, 2014 10:52 PM GMT

mouse.KeyDown:connect(function(key) if type(tonumber(key))=="Number" then ? Idk
smiley599
#138549274Saturday, June 28, 2014 10:53 PM GMT

Or you could make a function like for k=1,string.len(key) do if k=="1" or k == "2" or --etc etc all the way to 9 and 0 then print'ok' else break Or return true if all keys are 1 or 2 Etc
TheLuaUser
#138549400Saturday, June 28, 2014 10:54 PM GMT

Didn't work... :/
AnonyAnonymous
#138549418Saturday, June 28, 2014 10:54 PM GMT

while wait() do for c,v in pairs(game.Players:GetChildren()) do Mouse = v:GetMouse() Mouse.KeyDown:connect(function(Key) if Key == "NumberKeyHere" then --Code Here end end) end end This would create an infinite loop which would constantly. check if that specific number key is being pressed.
smiley599
#138549990Saturday, June 28, 2014 11:00 PM GMT

Anony that cannot work.
TheLuaUser
#138550855Saturday, June 28, 2014 11:07 PM GMT

@Anony, You can detect numbers with strings...
TheLuaUser
#138551003Saturday, June 28, 2014 11:09 PM GMT

I meant. You can't. :/
TheLuaUser
#138553392Saturday, June 28, 2014 11:29 PM GMT

Bumpy.
Notunknown99
#138553918Saturday, June 28, 2014 11:35 PM GMT

if key == "1" then print("'1' was pressed. If this does not work, ROBLOX does not allow it.") end
Goulstem
#138554191Saturday, June 28, 2014 11:37 PM GMT

OMFG STRING.BYTE keyz = {"48","49","50","51","52","53","54","55","56","57"} mouse.KeyDown:connect(function(key) key = key:lower():byte() for i = 1,#keyz do if a = true then if keyz[i]:match(tostring(key)) then print("KEY FOUND, IZA NUMBRE") end end end end)
Goulstem
#138554300Saturday, June 28, 2014 11:38 PM GMT

Sowwy typo keyz = {"48","49","50","51","52","53","54","55","56","57"} mouse.KeyDown:connect(function(key) key = key:lower():byte() for i = 1,#keyz do if keyz[i]:match(tostring(key)) then print("KEY FOUND, IZA NUMBRE") end end end)
Notunknown99
#138554806Saturday, June 28, 2014 11:43 PM GMT

@Goulstem@ if key == "1" then No need for byte :)
Goulstem
#138555083Saturday, June 28, 2014 11:45 PM GMT

That doesn't work, just tested it.
Notunknown99
#138555760Saturday, June 28, 2014 11:51 PM GMT

Works for me (In Studios, probably wont work online unless they fixed that) Code: game.StarterGui:SetCoreGuiEnabled("All", false) game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(k) print(k) end) >1 >2 >3

    of     1