Key System Logic, How to do it?

The point of the key is that only the appropriate owner can use it. You know other owner who can share key to others, right? That’s what I am trying to prevent.

So only give the account that you want access, well access!

I guess you are misunderstanding something here. What I mean by owner is the appropriate individual who owned the key, not myself or the game creator.

No I understand but this is redundant because if one account and one account only could ever use the key in the first place than why even have a key?

The key system is to prevent troll, hackers from entering the game. It is a personal key, just like If you buy a Synapse X. You can only use the key and you cannot share it with others.

I am planning to make a multiple key to whitelist members.

Is the key single use and only able to be used in one game session (i.e when the player leaves the key is no longer valid)? Otherwise you need to implement a datastore first.

Alright then, how do you want to add/modify keys cause i can do this pretty ez

I want the key to be forever as possible. It’s like their only key. If the system detects that it enters the key, it will verify If the person that entered the key matches the corresponding owner in the table.

Do you have a gui already in place or something where the player could enter their key?

See above. Creating a datastore is easy. You can either use resources available on the Roblox API, or use a module like ProfileService.

I will soon. That’s why I am trying to know what logic behind it It’s like

local KeyHolder = {AmongUs69, LOL420}
local Key = {YOURKEYHERE, KEYHERELOL)

The system would do like

If Password is entered, it should match the corresponding another table which is Keyholder.

I will explain I just need to know how you have the key input system setup?

Let me tell you one thing. For example, I am a player and this owner called “TheGod” gave me a key called “YourOnlyKey”

If I am a player and I entered my key in the login system, of course I will get in but If I use my alt and enter the key, even If the key is correct; the player will not be able to logged in.

If you have bought any premium games or premium app digital or physically, I’m sure you’re gonna get what I’m trying to say by “Key system”

That’s not what im asking. Im asking for the technical side. Is there a remote or something that will be fired when someone submits a key?

What I expect is that it’s gonna look for the table, like.

System : “Woah, someone entered this key called THEKEYHERE! Hmm, wait. Let me check If the player who entered the key matches the corresponding owner which this key trusted to.”

THEKEYHERE – aruruy0155

“Hmmm, but the key called “THEKEYHERE” is only accessible by aruruy0155. The player who entered this key is called AmongUs69. I will reject his request to enter and deny him”

I don’t think we are on the same page here. Sorry if I sound rude but this isn’t what i was asking. I understand the idea of a key I have used private keys many times before too. Do you have any infrastructure(guis, or really any code) in place to input the key?

Oh. I’m sorry for not understanding what you mean. The key will be put inside the GUI/TextBox.

So do you understand remote functions and gui click events?