function Customer.New()
local self = setmetatable({}, {__index = Customer})
local customer = script.Rig:Clone()
self.Customer = customer
self.Customer.Parent = workspace
self.Humanoid = customer:WaitForChild('Humanoid')
wait(2)
self:Move()
return self
end
function Customer:Move()
local WalkAnim = Instance.new("Animation")
WalkAnim.AnimationId = "rbxassetid://17346937969"
self.Humanoid:LoadAnimation(WalkAnim):Play()
end
return Customer
I am trying to play animation on rig but its not working