what is the best way to make Custom Character depending on Player Race?
Asked by
2 years ago Edited 2 years ago
im trying to make a script that changes player body to a "monster like" depending on the race, there is 4 of these monsters, each one with a specific body, i did it with a ServerScript and doing this:
1 | if race.Value = = "hollow" then |
2 | local newChar = hollow:Clone() |
3 | newChar.Name = plr.Name |
5 | newChar.PrimaryPart = newChar.HumanoidRootPart |
6 | newChar.PrimaryPart.CFrame = plr.Character.PrimaryPart.CFrame |
7 | plr.Character = newChar |
8 | game.ReplicatedStorage:WaitForChild( "CameraFix" ):FireClient(plr) |
its the best way? make in a ServerScript and do all these things or theres a way to just change the player "StarterCharacter"? i think in a LocaScript, something like "if your race is X, ill clone the X body in your StarterPlayer and rename it StarterCharacter" what u guys think about it?