This blacklist code wont work

Worked before, doesn’t work now.
Module -

local group = {
	{group = "test", reason = "tests", groupid = 8304363},
}

return group

Local -

local GroupList = require(script.GroupList)
local Player = game:GetService("Players").LocalPlayer

local Group = script.Parent.Group
local Reason = script.Parent.Reason

local blacklistedGroup = nil

for _,index in pairs(GroupList) do
	print("index")
	if game.Players.LocalPlayer:IsInGroup(index.groupid) then
		print("got id")
		blacklistedGroup = index
		break
	else
		return
	end
end

if blacklistedGroup then
	Player.Character:WaitForChild("Humanoid").WalkSpeed = 0
	script.Parent.Parent.Enabled = true
	Player.PlayerGui.Start:Destroy()
	script.Parent.Header.Text = "BLACKLISTED"
	Group.Text = "You cannot access this game until you leave" .. " " .. blacklistedGroup.groupid
	Reason.Text = blacklistedGroup.reason
end
1 Like
local group = {
	{groupvar2 = "test", reason = "tests", groupid = 8304363},
}

return group

turn the group inside the table a different name I guess… Might not fix it

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.