Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Key Down for Shift?

I've been using a shift to sprint script, and all of a sudden it doesn't work...I finally noticed that its sprinting on caps lock lol

SprintKey = string.char("0")

I looked at this page for the Key Inputs

http://wiki.roblox.com/index.php?title=Taking_keyboard_input

6 comments

3

You're gonna have to paste the script here, BS.

1

For a second I thought adark was claimimg the post was BS, lol

0

haha xD

1

Yeah, nice choice of words there adark... xD

0

Same here. XD

1

4 comments and no help lol...

1 answer

✓ Accepted answer

I tested it in a Hopperbin. The link you give actually gives you the answer in a table (see "Full List"), though its values weren't 100% accurate for me. For left shift, you want to compare it to string.char(48)

You can test it out yourself by using this script (modified from the link for a hopperbin):

local tool = script.Parent
tool.Selected:connect(function(mouse)
    mouse.KeyDown:connect(function(key)
		print(key,"pressed, byte:", string.byte(key))
    end)
end)

1 comment

0

Thank you, I finally overlooked the wiki for this and understood it, and eventually got it to work

This discussion is preserved as it was. New answers, comments, and votes are closed.