How to make a script for changing players rig and also Ui

Hello, I am trying to make a game for the first time. Luckily I overcame some roadblocks throughout making the game but now I am totally stuck on this subject.

The problem I am facing is I don’t know how to change a players appearance using script & also I don’t know how to identify different roles for different User Interface. For example, the game has 2 types of roles Thief, Police. If a player chooses Police his costume will turn into police and also his Ui will be different then Thief’s Ui.

I hope this is understandable.

the players actual model (character) has these instances called shirt and pants. You can change the thingie there. For accesories (hats) simply just instance them in

1 Like