So, i have been making an admin script for the last few days, and there is a function i just can't ge to work. The idea is that once a player joins a game with the admin in, and uses a command, it will add them to a pastebin file (which is already done and working in another part of the script), and then when this command is run, it will take the username given by the user, and tell them wether or not the player they checked has used the admin before. The problem is, the pastebin file is this: https://pastebin.com/tbLeesMx but the script sees it as having 170k entries.

if msg:sub(1,9) == ';plruses ' then
    mems = game:HttpGet('https://pastebin.com/edit/tbLeesMx')
    plrs = game:GetService("Players")
    for v = 1,#mems do
	    if msg:sub(10) == mems[v] then
		    cnotification('True. Player '..mems[v]..'Has used Ax Admin before.')
	    end
	    wait(0.000001)
	end
end

Any help would be much appreciated.

2 comments

0

does wait(0.000001) even works? i thought the minimum is 0.023

0

seems to.