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

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

Exactly what the title says.

1 comment

0

UserInputService

1 answer

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

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