of     1   

Korniak
#159810402Friday, April 10, 2015 1:02 AM GMT

What is the numerical key for spacebar? EXAMPLE: mouse.KeyDown:connect(function(key) if key == (Key Number goes here) then -- do stuff end end)
ray_revenge
#159810456Friday, April 10, 2015 1:03 AM GMT

Use UserInputService
Korniak
#159810540Friday, April 10, 2015 1:04 AM GMT

Don't get off track here. Tell me what the numerical key for spacebar, pls.
K7Q
#159810606Friday, April 10, 2015 1:05 AM GMT

that wont work! you havent called the player yet!
amanda
#159810695Friday, April 10, 2015 1:06 AM GMT

It might be 32. However, that's irrelevant because UserInputService is better. Here's a script you can steal from me that prints 'Hello World!' whenever you press Spacebar in game. --Insert this into a LocalScript in StarterGui local UIS = game:GetService('UserInputService') UIS.InputBegan:connect(function(input, gameProcessedEvent) if not gameProcessedEvent then if input.KeyCode = Enum.KeyCode.Space then print('Hello World!') end end end)
Korniak
#159810728Friday, April 10, 2015 1:06 AM GMT

I already have in my script that has this problem. plr = game.Players.LocalPlayer mouse = plr:GetMouse() Happy?
Korniak
#159810832Friday, April 10, 2015 1:07 AM GMT

Thank you Amanda. Now I have another question I will post in another thread.
amanda
#159811081Friday, April 10, 2015 1:10 AM GMT

'Now I have another question I will post in another thread.' That is not how this works. Post it here. I am surely too late.
Korniak
#159811189Friday, April 10, 2015 1:12 AM GMT

Too late, I have posted the thread. Reply there.

    of     1