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

How do you add the staff lock?

1 answer

Your script is full of errors, unfortunately. You might want to check out some tutorials or find other sources of help.

One error I've seen a lot of is the use of curly brackets instead of parentheses. The brackets construct a table, which is not the type of argument that any of the functions you have called take. You can start with replacing the curly brackets on your function calls with parentheses. e.g.

warn{"Stafflock is off!"}

becomes

warn("Stafflock is off!")

A few of the errors I have spotted:

  • You did not use the correct casing for case sensitive values. If I'm not mistaken, all services capitalize the first letter of each word. You should replace "players" with "Players" on line 6.

  • You are using deprecated functions as well, which should be avoided.

  • You forgot to include "then" after the condition on line 7

  • You did not complete the "admin" table with a closing curly bracket "}"

  • Your indentation could use some work, but it's not hard to pick up on.

I'm positive I missed some of your errors, but you should seriously consider reading up on Lua because this script makes me doubt you know very well how to do what you want to do.

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