When my character morphs, it works but doesn’t have animations. I have an Animation local script but still not work any tips
game.ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("StartRound").OnClientEvent:Connect(function(shadow)
local player = game.Players.LocalPlayer
if player.Name == shadow then
local newCharacter = game.ReplicatedStorage:WaitForChild("Models"):WaitForChild("StarterCharacter"):Clone()
local oldCharacter = player.Character
if oldCharacter and oldCharacter:FindFirstChild("HumanoidRootPart") then
local pos = oldCharacter.HumanoidRootPart.Position
oldCharacter:Destroy()
newCharacter.Parent = workspace
newCharacter:PivotTo(CFrame.new(pos))
player.Character = newCharacter
local humanoid = newCharacter:WaitForChild("Humanoid")
local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator", humanoid)
workspace.CurrentCamera.CameraSubject = humanoid
local animateScript = game.StarterPlayer:FindFirstChild("StarterCharacterScripts") and game.StarterPlayer.StarterCharacterScripts:FindFirstChild("Animate")
if animateScript then
local newAnimate = animateScript:Clone()
newAnimate.Disabled = false
newAnimate.Parent = newCharacter
end
end
end
end)