Ok, so I was working on a script that will make an animation play when I player's character is loaded. I have placed the script in three places, Server Script Service, StaterPlayer, and in the workspace. However, when I placed the script into workspace it printed what I needed it to print, but it did not work, here's the error: 12:16:41.452 - LoadAnimation requires the Humanoid object (Ruflixx.Humanoid) to be a descendant of the game object
And, here's the script:
game.Players.PlayerAdded:Connect(function(p)
print(p.Name)
p.CharacterAdded:Connect(function(c)
print(c.Name)
local a = script.Animation:Clone()
a.AnimationId = script.Animation.AnimationId
a.Parent = c
local humanoid = c.Humanoid
local dance = humanoid:LoadAnimation(a)
dance.Looped = true
dance:Play()
end)
end)
keep in mind the script is currently in the workspace, thx <3
