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