I am currently confused on why my animation script works in studio yet not in game. I have tried anchoring and unanchoring my characters, restarting the servers and publishing my game a couple of times. Each time it does not work.
In studio:
In game:
This is the script I am using:
local hum = script.Parent:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim.Looped = true
anim:Play()
I made my animation in Moon Animator, which I looped when making. Apologies if this is an easy fix, I do not know much about programming.
Double check and make sure that you are uploading the animations to your group, because if it’s uploaded to your own profile it will not show in game.
Also make sure all rigs have a humanoid, and that nothing is anchored. This goes for hats/hairs too.
Did not work, we surely would not have to use any other scripts for Roblox Animation. Does the group owner have to upload the animations to the group or can it be anyone? We’re having a few issues and your solutions did not work. If we un anchor my rig then it will just fall to the ground (as it’s coming down from the ceiling, for the scare maze) Like others has said, it works in studio but it doesn’t work in the main game.
Hm, this is odd. If the animations work in studio while anchored but not in game, surely that’s a roblox issue. The game and animation was uploaded to my group yet it still doesn’t play on the main game.
It’s just odd that anchoring is affecting the in-game animations (for the main game not studio testing)