And i also tried another way to connect with 2 attachments, but nothing works.
the code is fairly simple and it works on server script
local lower = script.Parent.AnimationController.Animator:LoadAnimation(script.Parent.walk)
local upper = script.Parent.AnimationController.Animator:LoadAnimation(script.Parent.aim)
wait(3)
lower:Play()
upper:Play()
print(2)
while task.wait() do
script.Parent.RootPart["mixamorig:Hips"]["mixamorig:Spine"].WorldOrientation = Vector3.new(0,0,0)
end
There’s a subtle issue with how you are updating the orientation of mixamorig.Spine. By default, scripts resume execution just after we perform simulation. So in your original code, the orientation update occurs just after we simulate. Instead, you’ll want this update to occur just before the animations are updated. The fix is simple, just bind your orientation update to PreAnimation:
local RunService = game:GetService("RunService")
RunService.PreAnimation:Connect(function(deltaTime)
script.Parent.RootPart["mixamorig:Hips"]["mixamorig:Spine"].WorldOrientation = Vector3.new(0,0,0)
end)
See here for a detailed description of the order in which scripts are evaluated in the engine.