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

Whats wrong with my KeyDown?

local enabled = false

local player = game.Players.LocalPlayer

local mouse = player:GetMouse()

        mouse.KeyDown:connect(function(key)

        if not enabled then

        enabled = true
if key == "q" ten


1 comment

1

You spelled then wrong below your code block.

1 answer

✓ Accepted answer
if key == "q" then

You spelt "then" wrong

3 comments

1

Don't forget to look through for spelling mistakes

1

Thank you so much.

1

No problem!

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