I have a script that plays an animation, despite setting the weight to a very high value, it never plays
local UIS = game:GetService("UserInputService")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://6745090063"
for i , v in pairs(anim:GetDescendants()) do
if v:IsA("Pose") then
v.Weight = 1000
end
end
local loadanim = script.Parent:WaitForChild("Humanoid").Animator:LoadAnimation(anim)
UIS.InputBegan:Wait()
loadanim:Play()
Make sure that the idle animationâs priority is lower than the animation youâre trying to play. Iâd suggest changing the idle animationâs priority to âidleâ and the one youâd like to play to âactionâ.
Keep in mind the idea behind weighted animations is that you are given the ability to have multiple animations running simultaneously, all with the same animation priority.
Iâm aware that you marked my response as the solution, but I may still be able to answer your questions; even as a property of keyframesequence, its priority can still be changed. As for changing it before saving, if you are referring to the animation, simply just change the animationâs priority, save it, and you shouldnât have to change much else in the script. I assume you already know this now, but, yâknow, food for thought.