Help with scripting morphs

Hello! There are many games that have a very good rank morph system. I am not a very good scripter so I need help with it.

What I want

I want to make an rank system where if a player is a “Recruit” in the group, then he should automatically spawn with a morph (Backpack, vest,…), but if the player is a “Soldier” in the group, he should automatically spawn with another morph. I just want a auto-rank morth system:

You can use the :GetRankInGroup() or the GetRoleInGroup() functions

1 Like

jut like what @Ready2XD said.

but they are functions of GroupService
so

game:GetService("GroupService"):GetRankInGroup()
-- or
game:GetService("GroupService"):GetRoleInGroup()
1 Like

You could just weld the accessories onto the players (which you can do in multiple different ways), and set the id of the character shirt and pants to the id for the uniforms, and the recruit and soldiers aren’t very different you just need to add the helmet.

If the ranks are the players role in a group you can use a if grouprole == rolenumber then

If you don’t know how to use groupservice here

(GroupService)

1 Like

I don’t think I fully know how morphs work but I’m pretty sure welding the gear is easier, last time I checked morphing doesn’t keep the players accessories on the morph

1 Like

no!
it is not a function of group service!
it is actually a function of player instance :man_facepalming:t4:

1 Like