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

Key Down for Shift? [closed]

Asked by 9 years ago

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

3
You're gonna have to paste the script here, BS. adark 5487 — 9y
1
For a second I thought adark was claimimg the post was BS, lol DigitalVeer 1473 — 9y
0
haha xD BSIncorporated 640 — 9y
1
Yeah, nice choice of words there adark... xD M39a9am3R 3210 — 9y
View all comments (2 more)
0
Same here. XD TheeDeathCaster 2368 — 9y
1
4 comments and no help lol... BSIncorporated 640 — 9y

Locked by BSIncorporated, chess123mate, woodengop, and Redbullusa

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 9 years ago

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)
0
Thank you, I finally overlooked the wiki for this and understood it, and eventually got it to work BSIncorporated 640 — 9y
Ad