local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator", humanoid)
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://136075368851428"
local track = animator:LoadAnimation(animation)
script.Parent.Activated:Connect(function()
if not track.IsPlaying then
track:Play()
print("Animation playing")
end
end)
script.Parent.Unequipped:Connect(function()
if track.IsPlaying then
track:Stop()
end
end)
#Print outputs but the animation doesnt play
1 messages · Page 1 of 1 (latest)
is this in a local script or script?
** You are now Level 2! **
also, make sure everything is updated when the player dies/respawns
local, it also def updates its in starter pack
any errors
? ???
like animation isnt like able to be accessed
or sum shi
none, everything works the animation doesnt play, ive checked that the id is correct, im positive its owned by me, and so is the game, every common issue has been checked
im quite confused
you are not suppose to create a secondary animator
what the hell
just wait for the animator
only one of them will work
only if it wasnt found, i saw smt on the forum sugesting it 😄
no
you are supposed to wait it
it will always be there
it's default roblox
🥀
:WaitForChild() or some shi idk
animation.Parent prints
as Animator
local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://136075368851428"
local track = animator:LoadAnimation(animation)
script.Parent.Activated:Connect(function()
if not track.IsPlaying then
track:Play()
print("Animation playing")
end
end)
script.Parent.Unequipped:Connect(function()
if track.IsPlaying then
track:Stop()
end
end)
it aint that deep
but gimmie 1 sec ill add that change! Thanks! i dont do much with animations, ive used em once on a veryyy simple project, and that was before you needed an animator and could just load it to the humanoid
ye now animator it's better that way
since animator doesn't need a humanoid
it can be any object
yeah lowkey seems awesome for animating NPCs n such
ye
still dont play
🙏
okay so someone made the keyframe sequence for me, i paid him for a couple animations, i then opened those animations in the animation editor, and published them to roblox, that is where i go my animationID, did i get somethign wrong? @mint crypt
print when .Activated gets call
also
what is the context here
local script or serve script?
actually local player yeah
is this a tool script?
the "Animation Playing" goes to the output
yeah
then it's animation issue
maybe weight is too low
set the weight higher
ive never messed with weight, the forum says its for merging 2 animations? How would i use it in t his context?
you know it's great to learn how to use the documentation to your advantage
as a scripter
:Play(fadeTime, weight, speed)
i upped it to 2 and its doin the same thing
such a basic ass system for this many issues
make it 1000
these issues usually caused by systems not being designed to work gracefully with each other
get the playing animations
animator:GetPlayingAnimations()
and print it
GetPlayingAnimations is not a valid member of Animator "Workspace.toxicme54e.Humanoid.Animator"
GetPlayingAnimationTracks or whatever we dont keep a list of all the api in our head
yeah it says its playing
make the weight 1000000
I know it sounds stupid
but trust
I think it is
w the default roblox hold animation
still 1000 should've worked
weight = math.huge

don't tell me priority was the issue 🥀
nah still the same at action4
stop all animations before playing that one
I seriously think the animation is just empty
replace it with walk or smt
alr 1 sec
bruh thats working wtf? Ill fuck around w saving the animation in a sec
i saved it 3 dif times
bc i felt unsure too
I hate to say I told you
is the animation r6 or r15
r6, i force r6 in the avatar settings
does the avatar not change in-studio?
It does you need to publish the game
also avatar settings are wonky af
can i force r6 w a script?
it allows you to use r6 on r15 characters
bruh i didnt read carefully enough
the setting i had set to r6 only was animations
@mint crypt my man i appriciate you, il lremember this when i work with animations in the future! I appriciate you helping light my path towards learning and hopefully someday success!
i wish you the best of luck
you too man