Don’t know why it doesn’t work. I suspect because the morph I’m using doesn’t half HRP as a child but I might be wrong. Any ideas?
My code:
game.Players.PlayerAdded:Connect(function(player: Player)
local char = player.CharacterAdded:Wait()
if char then
local morph = workspace:FindFirstChild("104th D"):FindFirstChild("Minor Officer"):Clone()
local humanoid = Instance.new("Humanoid")
humanoid.Parent = morph
for i = 5, 1, -1 do
print(i)
wait(1)
end
morph.PrimaryPart.Anchored = false
morph:PivotTo(char.HumanoidRootPart.CFrame)
player.Character = morph
morph.Parent = workspace
end
end)
what exactly doesn’t work? did it not “morph” you? or can’t you move with the morph?
judging by the structure of the “Minor Officer”, I suppose that it doesn’t recognize the morph as a “character” because the limbs are made out of Model instead of the usual BasePart. Try reloading the player’s character after setting the character:
What I mean is that the player essentially just vanishes into nothing and all you can move is the camera. Tried your code, but adding the “LoadCharacter” bit just turns the player back to their original character for some reason.
game.Players.PlayerAdded:Connect(function(player: Player)
local char = player.CharacterAdded:Wait()
if char then
local morph = workspace:FindFirstChild("104th D"):FindFirstChild("Minor Officer"):Clone()
local humanoid = Instance.new("Humanoid")
humanoid.Parent = morph
for i = 5, 1, -1 do
print(i)
wait(1)
end
morph.PrimaryPart.Anchored = false
morph:PivotTo(char.HumanoidRootPart.CFrame)
morph.Parent = workspace
player.Character = morph
player:LoadCharacter()
end
end)