Does anyone have a script for a whitelist button?

my scripting knowledge is very limited, so basically I am kindly asking for someone to pass on to my a script that makes a whitelist for a button, so when clicked, it checks if the user is in a table of whitelisted users then does all the code stuff inside. I’ve searched on youtube and the libary, but I got nothing related to a whitelist BUTTON so yeah…

Sorry, no script giving here according to the rules and for other reasons such as to help you independently improve your scripting knowledge.

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Looks like you found yourself a problem without any tutorials.

The good thing though is that you broke down the problem into several steps which are nice which is in fact what a scripter should do.

Because for each of these steps luckily a tutorial/resource exists yay :partying_face:

  1. First step

General basic GUI tutorial

Event to activate script when a GUI is clicked

https://developer.roblox.com/en-us/api-reference/event/GuiButton/MouseButton1Click

  1. Second step

Yep you can store UserID’s in a table. Then you can check if the user is in a table using table.find documented here

https://developer.roblox.com/en-us/api-reference/lua-docs/table

IDK, that’s up to you.

Anyways good luck and feel free to ask more questions on each of these operations like tables and table.find() if you need to or if you want to wonder why table.find and if there is a better way to do it.

Understood, but I wasn’t looking for a GUI tutorial, already know how to use gui’s and such. Was looking for a simple click detector thingy but okay, guess I’ll just waste time searching through nothing

Sorry, but maybe you should specify further in your post rather than the initial title of the post which is Does anyone have a script for a whitelist button?.

Then in this case for GUIs, there are no click detectors for GUIs unlike parts rather the GUIButton Event for Mouse 1 down click which I linked above.

If you spend some time searching through API documentation provided, and learning from the resources given then it won’t be called wasting time, instead you will learn something new and probably be able to make your desired asset.

Otherwise if you want to hire someone do it so in #collaboration:recruitment category

1 Like

Yeah probably should’ve explained better, and I’m not looking for anything related to a GUI. Click detector in a part.

Here is the API Reference of Click Detectors, and it is pretty easy to learn and use them:

1 Like