I’m making a morph system that turn you to a custom character when player have a groupRank in a certain group but I’m struggling with making the character the model.
My script :
local groupID = 16487930
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
repeat wait() until chr:FindFirstChildWhichIsA("Humanoid")
local getRole = plr:GetRoleInGroup(groupID)
if getRole then
local CharacterModel = game.ServerStorage.GroupModel:FindFirstChild(getRole)
if CharacterModel then
local model1 = CharacterModel:Clone()
model1.Parent = workspace
chr.Parent = model1
end
end
end)
end)