Script spitting out errors / not working

hi

I recently found a person in GRP which I paid him 5,000 robux to make a script for me.

They gave me the following script, which is supposed to make you on a team if you are in the group.

if plr is in group and rank Major then team Trainer if plr is in group and ranked below captain then team Trainee

I hope I can get this resolved as it is not working, and I hope I did not get scammed 5,000 robux for this script.

1 Like

does that mean i got scammed 5k

1 Like

yes you have been scammed, shame on the person that gave u that for 5k

Well, you said it’s not working, for one, and two, that looks godawful.

That’s completely incorrect!

It should be something like this:

local GroupRank = YOUR_GROUP_RANK

game.Players.PlayerAdded:Connect(function(plr)
	if plr:GetRankInGroup(GroupId) >= GroupRank then
		plr.TeamColor = BrickColor.new("COLOR_OF_TEAM")
	elseif plr:GetRankInGroup(GroupId) < GroupRank then
		plr.TeamColor = BrickColor.new("COLOR_OF_TEAM")
	end
end)
1 Like