Also going to ask if your even playing the Instance
this is not meant to be this but rather this
local h = script.Parent:FindFirstChild("Humanoid")
local animation = h:LoadAnimation(script.Animation)
animation:Play()
Also going to ask if your even playing the Instance
this is not meant to be this but rather this
local h = script.Parent:FindFirstChild("Humanoid")
local animation = h:LoadAnimation(script.Animation)
animation:Play()
It’s better if it’s done using this
local h = script.Parent:FindFirstChild("Humanoid")
local animation = h.Animator:LoadAnimation(script.Animation)
animation:Play()
As LoadAnimation on Humanoids is deprecated, but both should work anyways
@chexedy Yes I know that deprecated objects can be worse off to use, but we were giving an alternate choice if something goes wrong when trying to load it with the Animator.
@baum2409 Is the code that me or @CreepingGamingTV gave you not working either? If so something’s going on with the animation or something else is up
Yeah why I said old school
Either way it should run no matter the implementation, though as you said I would rather have OP use your method
just because it works doesnt mean you should it considering it’s deprecated, it’s terrible practice
@baum2409 can i see the dev console when you test it in player?
So i looked in the Dev Console and Output and nothing there.
are you using a regular script or LocalScript
Local script or not animations run regardless, the issue OP has is that it’s running in studio though not in the website, is what my interpretation is from what he said. I may be wrong.
its a normal script.
but a question why is it in Studio working and not on Wbsite or App?
hmmmm that’s weird, if you ran it on a LocalScript you could try ContentProvider:PreloadAsync (as the animation may not have loaded) but I’m not sure if that’s how Animations work. maybe try preloading the asset?
Did you remember to publish the changes from studio to the website? Stupid question but it could be that. There’s not much else it could be.
If you did publish, then maybe make th script wait for a few seconds before loading and playing?
i publish the game. and tried Filtering Enabled. but year… and animation
might be a bug, try and publish it as a new game and then try
Try this?
wait(5)
local h = script.Parent:FindFirstChild("Humanoid")
local animation = h.Animator:LoadAnimation(script.Animation)
animation:Play()
waits 5 seconds then plays. If it still doesn’t palys then it could something wrong with the place as @Furkan5E said?
try preloading the asset in a LocalScript:
local ContentProvider = game:GetService("ContentProvider")
ContentProvider:PreloadAsync({"rbxassetid://idhere"})
i dont know if this is true but my theory is that it hasnt loaded on the client for a reason
preloadasync returns an error if there is an issue loading a specific id, and preloading it will help us find out what’s the problem
Yeah I agree, this might be it.
Have a look here as @EmbatTheHybrid mentioned this method of loading animation to humanoid is deprecating.
We can’t see your current code, can you post your script?
So i make my other game plubic so you can and the scripts from my other game is here:
https://devforum.roblox.com/t/release-platformer-character-controller/195215/41
The game:
https://www.roblox.com/games/6562842949/Roblox-64?refPageId=16df7f1c-9438-4358-b1fb-9e5408cbefbf
ok i found this:
https://devforum.roblox.com/t/ego-mooses-movement-system-i-cant-upload-animations/873931/2
And not working
This game you doing you own it?
or a group own it?
Edit : I saw the link you published on your last post, make sure the animation you trying to use its owned by the group =D
ohhhh so lets go i will test thanks