I want to know how to change a players character when their player is added if they’re a certain rank in a group.
The character models are in replicated storage
code so far:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local groupid = 9551727
game.Players.PlayerAdded:Connect(function(player)
end)
I just want to know how to change a players character to another character that’s in replicated storage.
1 Like
To check if a player is in a group, Player:IsInGroup.
To change a character entirely (so completely overriding the default character model to another one), you can do it very easily. I’d recommend doing it under the CharacterAdded event. These are the steps:
- Save the current character’s position;
- Destroy the player’s character;
- Clone the new character that you want, and parent it into the workspace (or wherever you want/need);
- Set the player’s character to the new model (
Player.Character = NewCharacterInstanceHere);
- Set the new character’s position to the old character’s position you saved earlier.
1 Like