I have made a group door script and it checks if the player is in the teams group and if he is then it will open but if he isn’t in it and still has a certain clearance level in the main group then he can open the door.
This is what I have but I keep getting error attempt to compare string and number
if Player:IsInGroup(123543) or Player:GetRankInGroup(653432) >= 5then
Event = game.ReplicatedStorage.Event
Event.OnServerEvent:connect(function(Player, Rank, GroupID)
if Player:IsInGroup(GroupID) or Player:GetRankInGroup(7) >= Rank then
print("Granted")
else
print("Denied")
end
end)
Nope, you can’t send numbers through string values you’ll need NumberValue for float and IntValue for integer. Why are you sending numbers through string values?
You could do tonumber(Rank)