-
What do you want to achieve? I want to figure out how to fix the following issues
-
What is the issue?
1 - I’ve welded a Humanoid model to a player with a Motor6D and I want to play an animation on it, but the animation doesn’t play
The humanoid model welded behind the player with a motor6D, animation doesn’t play.
2- after welding the model to the player, the player is now unable to jump, they get forced into the ground before coming back out ( https://gyazo.com/a30ce065845ce4b821abcb21ff69994a )
3- More of a question, but does having a humanoid automatically make an animator, It doesn’t in my case
- What solutions have you tried so far? I’ve tried looking at the devhub for help but i don’t understand why the animation isn’t playing when I met the criteria, and it was playing fine on the player’s humanoid but not the models. the mode is in fact rigged and it does have it’s own humanoid
Instead of trying to wait for the model’s animator in the humanoid, i tried using an AnimationController instead but that also didn’t work
there are not any welds that are locking the parts in place so welds aren’t the issue
– the script to weld the humanoid model to the player AND to play the animation on the humanoid model. It’s in StarterCharacterScripts
PS = game:GetService("Players")
if script.Parent:FindFirstChild("Humanoid") then
Char = script.Parent
Plr = game.Players:GetPlayerFromCharacter(Char)
Stando = game.ReplicatedStorage["Stand Test"]:Clone()
Stando.Parent = Char
SW = Instance.new("Motor6D")
SW.Parent = Char:FindFirstChild("Torso")
SW.Part0 = Char:FindFirstChild("HumanoidRootPart")
SW.Part1 = Stando:FindFirstChild("HumanoidRootPart")
SW.C1 = CFrame.new(1.8,-1.1,-1.8)
SAnimator = Stando.Humanoid:WaitForChild("Animator")
print("Animator Found")
IAnim = Instance.new("Animation")
IAnim.Parent = Stando
IAnim.AnimationId = "rbxassetid://7345385646"
Idle = SAnimator:LoadAnimation(IAnim)
Idle:Play()
end
(My first thread so sorry if it looks choppy)