nick2222
(nick2222)
November 1, 2022, 8:29pm
#1
You can write your topic however you want, but you need to answer these questions:
What do you want to achieve?
to play the animation
What is the issue?
the animation wont play but the output prints the text
What solutions have you tried so far?
tried republishing the animation twice
while wait(10) do
anim:Play()
print("AnimPlaying")
wait(3)
end
really not sure why this isnt working, i get the output in studio/play testing but the animation isnt playing
2 Likes
JOEBOBBY16
(JOEBOBBY16)
November 1, 2022, 9:10pm
#2
Can I see some of the variables you have?
1 Like
nick2222
(nick2222)
November 1, 2022, 9:16pm
#4
so sorry i forgot to include the top line of the script
JOEBOBBY16
(JOEBOBBY16)
November 1, 2022, 9:20pm
#5
do
local ani = script.Parent.HeadAnim
local hum = script.Parent:WaitForChild(“Humanoid”)
local playani = hum:LoadAnimation(ani)
while wait(10) do
playani:Play()
wait(3)
end
That might work, Maybe do a repeat until loop instead of while loop
nick2222
(nick2222)
November 1, 2022, 9:29pm
#6
i added a print statement to show the script is working, but the animation still doesnt play
nick2222
(nick2222)
November 1, 2022, 9:39pm
#7
maybe i could try using Vectors instead of animation ?
JOEBOBBY16
(JOEBOBBY16)
November 1, 2022, 9:49pm
#8
Maybe. Try a repeat until loop
If im correct, the animation isnt playing, is the game inside a group? if yes then you will have to upload the animation directly in the group
1 Like
the simplest cause is that something in the model is anchored. Assuming that isnt the case then another cause could be that the owner of the game isnt the same as the owner of the animation. If the game is published under a group or an account that isnt the same as the one you used to publish, then the animation wont play. It’s a mechanism roblox has to prevent stealing assets. All you need to do to fix it is publish it under the same account or group.
2 Likes
nick2222
(nick2222)
November 1, 2022, 9:59pm
#11
yeah im having someone on fivver do the animations and he walked me through publishing it through my account since im the game owner
I’ll look to see if anything is anchored
1 Like
nick2222
(nick2222)
November 1, 2022, 10:05pm
#12
so checking the model and nothing is anchored
where is the script parented. show us the explorer hierarchy
nick2222
(nick2222)
November 1, 2022, 10:15pm
#16
i just now went in and created a random animation and that one wont load either
can i get a fuller picture of it? i cant really see where its parented, or where its parent is parented, or where the animation is
nick2222
(nick2222)
November 1, 2022, 11:31pm
#18
so sorry for the late reply
nick2222
(nick2222)
November 2, 2022, 7:19pm
#19
Bump. still need help with this
try using the animator inside the humanoid. The code is the same but it looks like this …
Humanoid.Animator:LoadAnimation(anim)
also how did you check if everything was unanchored?