I need script that will make several group ranks to automatically after joining team certain players, depending on their group rang to certain teams, anyone here has idea how to do that?
I have script, but it is not working for some reason, there is not any error in console or anything so I don’t know where is problem.
I tried googling for solution, but did not find it unfortunately.
Here is the script that i putted together:
(Disclaimer: I am not a scripter, I mainly build and make UIs)
-- Group = 5671098
function Added(plyr)
-- NEM. CIV. --
if plyr:GetRankInGroup(Group) == {2, 32, 33, 34, 35, 36, 37, 253} then
plyr.TeamColor = BrickColor.new("Dark stone grey")
-- ČSR. CIV. --
elseif plyr:GetRankInGroup(Group) == {1, 6, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 252, 255}
then plyr.TeamColor = BrickColor.new("Really black")
end
end
game.Players.PlayerAdded:connect(Added)
Thanks for any help, I will be highly grateful.