No I’ve done the rank color I fixed it,
But lets say I want to check if a player is in the team before giving it the MET or RN rankSo you want to check if the player is in the same team as the name property? For example, if the player is i nthe team “Intelligence section 5”, give them the properties for that team?
Yes. That’s what I mean. Is there a way to do it?
You can check if the name of the team is equal to the name of one of the properties’ name, could you show me the full code that you have right now so I can see how I would do the code if I were you?
if isPlayerInDivision or player.Team == game:GetService("Teams")[info.name] then
Is that what you wanted? This change checks if the player is in the group id in the info and if the team they’re in has the same name as the info’s name
Yes, I’ll try that, I’m in a training right now XD so I’ll do it in a moment. Thanks alot for helping me.
Anytime! If you have anymore issues don’t be afraid to make another post!
Thanks alot, this is why I like the devforum a very helpful community.
The if in it underlines red, maybe it’s to do with the script?
Could you show me the line that’s underlined in red and what it says when it’s hovered over
Edit: And something that could be needed as well is the current code you have right now
There
Please show me the current code that is in the script right now
I did not mean to put that line there, I meant you to put as a replacement to if isPlayerInDivision then
At the local isPlayerInDivison = player:IsInGroup(info.groupId)
You see the line if isPlayerInDivision then
? I’m saying you should replace that line with if isPlayerInDivision or player.Team == game:GetService("Teams")[info.name] then
. The line i gave you is not meant to be in the array, it was meant to repalce something else
Oh yes I see it now, will do.
It works thanks so much! You helped me alot!
Anytime! Again, if you anymore issues don’t be afraid to make another post!