Not a clue why, tried multiple options and none of them seem to work. Its in a folder inside of ServerScriptService
local Players = game:GetService("Players")
local Gamepasses = {}
local EventsAndCallbacks = game:GetService("ReplicatedStorage"):WaitForChild("EventsAndCallbacks")
local PlayerDataEvents = EventsAndCallbacks:WaitForChild("PlayerDataEvents")
local CheckAttributesLoaded = PlayerDataEvents:WaitForChild("CheckAttributesLoaded")
local GlobalData = require(script.Parent:WaitForChild("GlobalData"))
local DataManager = require(script.Parent:WaitForChild("DataManager"))
local MarketPlaceService = game:GetService("MarketplaceService")
local SpiderCatsID = 4056049
function AddGamepasses(Player, Gamepasses)
end
function IsInSPIDERCATS(Player)
if Player:IsInGroup(SpiderCatsID) then
return true
else
return false
end
end
function GroupRank(Player)
return Player:GetRoleInGroup(SpiderCatsID)
end
function PlayerRank(Player)
for _,DevID in pairs(GlobalData.GetDeveloperIDs()) do
if DevID == Player.UserId then
return "developer"
end
end
return "norank"
end
local function AddPlayerAttributes(Player)
Player:SetAttribute("PlayerRank", PlayerRank(Player))
Player:SetAttribute("JoinedSpiderCatz", IsInSPIDERCATS(Player))
Player:SetAttribute("GroupRank", GroupRank(Player))
Player:SetAttribute("CatBucks", 0)
Player:SetAttribute("Treats", 0)
Player:SetAttribute("Banned", false)
Player:SetAttribute("AttributesLoaded", true)
end
Players.PlayerAdded:Connect(AddPlayerAttributes)
for _, player in ipairs(Players:GetPlayers()) do
AddPlayerAttributes(player)
end