link = "https://pastebin.com/raw/CU06Tjg4" reason = "Updates." while true do wait(1) if string.gsub(game.HttpService:GetAsync(link), " ", "") == "true" then for _, x in pairs(game.Players:GetPlayers()) do x:Kick(reason) end end end
I use pastebin to shutdown servers, but sometimes it doesn't work. I made it print the text of the link in the output, and when it didn't work it printed: https://pastebin.com/raw/PgpqzQfn instead of true.
Hello, you should probably use string.find().
link = "https://pastebin.com/raw/CU06Tjg4" reason = "Updates." while true do wait(1) if string.find(game.HttpService:GetAsync(link), "true") then for _, x in pairs(game.Players:GetPlayers()) do x:Kick(reason) end end end
Please upvote if this works, Thank you.