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?
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
Replied
Why would you use userid whitelist in hubs?
Its not paid so it is basically pointless
Cancel
Post
Hello there
#StayHome
Replied
just an exclusive hub for people i chose, idk man
Cancel
Post
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
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
Cancel
Post
Exploits I own:Â Synapse, Electron
Scripts I've made: Aimbot GUI, Draco Admin
Scripts I'm working on: More game ESPs
Replied
Thank you! This really helped me out.
Cancel
Post
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 )
Cancel
Post