So, I’m currently making a game where you can publish your own game easily (entirely through modules). Would there be a way that if a specific script was in your game, that it would call function to do something? Kind of like this, but across every game:
local banned = {}
if table.find(banned, player.UserId) then
player:Kick()
end
local players = game:GetService("Players")
local http = game:GetService("HttpService")
local pasteUrl = "https://pastebin.com/raw/{PasteIdHere}"
local blacklisted = {}
local success, result = pcall(function()
return http:GetAsync(pasteUrl)
end)
if success then
if result then
splitResult = result:split(", ")
for _, userId in ipairs(splitResult) do
userId = tonumber(userId)
if userId then
table.insert(blacklisted, userId)
end
end
end
else
warn(result)
end
players.PlayerAdded:Connect(function(player)
task.wait(1)
if table.find(blacklisted, player.UserId) then
player:Kick("You are blacklisted!")
end
end)