Make a script cycle through a list of names on pastebin

May I ask your use case here if you don’t mind? Are you just trying to see if a players name exists on the list, or are you trying to get every single players name on the list?

Edit: Nevermind, clearly I don’t know how to read. You stated you want to cycle through the list of names. This code below will print everything at a line break. I was under the assumption that your pastebin was seperated by linebreaks, but depending on how it’s formatted you might want to adjust this.

local HTTP = game:GetService("HttpService")
local pasteBin = HTTP:GetAsync("https://pastebin.com/raw/sGs0fJTe") -- made this quickly as an example.

for i, v in pairs(pasteBin:split("\n")) do
	print(v)
end
1 Like