So this is a advanced (kinda) group door script.. Here's the server script:
game.Players.PlayerAdded:connect(function(plr)
game.ReplicatedStorage.OpenGDoor:FireClient(plr)
end)
And here's the client script:
game.ReplicatedStorage.OpenGDoor.OnClientEvent:connect(function(plr)
if game.Players[plr]:GetRankInGroup(3327521) >= 2 then -- This is where it errors out
workspace.GroupDoor:Destroy()
end
end)
welp...

1 comment
This is the full error: 17:48:47.804 - Players.Trolna.PlayerGui.LocalScript:2: bad argument #2 to '?' (string expected, got nil)