Forum > Scripts >

[HELP] User-ID Based whitelisting methods (lua)

falsepikawoods

Pika Pika!

Posts: 10

Threads: 2

Joined: Jun, 2020

Reputation: 1

Posted

I'm currently developing an exclusive script hub (not paid) and I'm stupid and need a basic user id based whitelist method. Any method I tried (if localplayers id = whitelisted, whitelisted has userid's contained) doesn't work. Can someone help me with this?

  • 0

pikachu hackerman
exploits i own(ed)
SirHurt  (ip logger :clown:)
Sentinel had but then gave acc
planning to get

Synapse X

B
B
B
B
B
B
B
B
B
B
B
B
B
B
b

Posts: 1372

Threads: 87

Joined: May, 2018

Reputation: 24

Replied

Why would you use userid whitelist in hubs?

Its not paid so it is basically pointless

  • 0

Hello there

#StayHome

 

falsepikawoods

Pika Pika!

Posts: 10

Threads: 2

Joined: Jun, 2020

Reputation: 1

Replied

just an exclusive hub for people i chose, idk man

 

  • 0

pikachu hackerman
exploits i own(ed)
SirHurt  (ip logger :clown:)
Sentinel had but then gave acc
planning to get

Synapse X

B
B
B
B
B
B
B
B
B
B
B
B
B
B
b

Posts: 250

Threads: 111

Joined: Jun, 2018

Reputation: 5

Replied

You should be able to do this with a pastebin instead. So store the pastebin's content in a string using game:HttpGet and check if the user's UserId is within the pastebin.

Ideally, you'd want to store them within a table by splitting the lines of the pastebin with a string.split function (can be found in a lot of places such as infinite yield or the lua forums) and store it there.


Also, if you're planning not to use a pastebin, you can just convert the UserId using tostring() and match it.

 

local plr = game.Players.LocalPlayer --Stays as a string, not as a player

local plr_id = tostring(game.Players[plr].UserId)

local ids = {"3919273", "3957193"} --Not a real IDs

 

local whitelisted = false

for i,v in pairs(ids) do --Makes a loop twice since there's 2 IDs in the table

    if (plr_id:match(v)) then --If v is matched as the plr ID

        whitelisted = true

        break --Breaks the loop

    end

end

 

if (whitelisted) then

    --Code here

end

 

  • 0

Exploits I own: Synapse, Electron

Scripts I've made: Aimbot GUI, Draco Admin

Scripts I'm working on: More game ESPs

falsepikawoods

Pika Pika!

Posts: 10

Threads: 2

Joined: Jun, 2020

Reputation: 1

Replied

Thank you! This really helped me out.

  • 0

pikachu hackerman
exploits i own(ed)
SirHurt  (ip logger :clown:)
Sentinel had but then gave acc
planning to get

Synapse X

B
B
B
B
B
B
B
B
B
B
B
B
B
B
b

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )