I want to make a simple animation play when the player’s character loads but for some reason it doesn’t play and roblox doesn’t give any error or warning for why it doesn’t play.
This is the script (normal script)
local plr = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
plr.CharacterAdded:Wait()
script.Parent.WalkSpeed = 0
local anim = script.Parent.Animator:LoadAnimation(script.Parent.Animation)
anim:Play()
anim.Ended:Wait()
script.Parent.WalkSpeed = 19
this is where it’s placed (the script’s name is play):
script.Parent.WalkSpeed = 0
local anim = script.Parent.Animator:LoadAnimation(script.Parent.Animation)
if anim then
print("Animation Loaded")
anim:Play()
end
anim.Ended:Wait()
script.Parent.WalkSpeed = 19
You could ask your friend to load the animation onto a rig, and then publish the animation under your own name to work around the issue. I’m not entirely sure if there’s a more direct way for your friend to grant you permissions.