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

How do I go about making a key, that activates a script?

Asked by 8 years ago

Exactly what the title says.

0
UserInputService DepressionSensei 315 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

This is quite simple actually, just declare key and make a simple if statement determining if the key is correct

local key = (something)

if (key == (whatever key is supposed to be)) then
    --code
end
Ad

Answer this question