Trying to run an Animation on a cloned object isn't working

Hello! When I run this code:

local ReplicatedStorage: ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage: ServerStorage = game:GetService("ServerStorage")

local function StartEvent(...)
	local WE: Model = ServerStorage.Models.LocalWE:Clone(...)
	WE.Parent = game:GetService("Workspace") :: Workspace
	local Animation: Animation = Instance.new("Animation")
	Animation.AnimationId = "rbxassetid://7757547136":: string
	local Track = WE.Humanoid.Animator:LoadAnimation(Animation)
	Track:Play(...) -- Error happens here.
	Track.Stopped:Wait(...)
	ReplicatedStorage.Events.Dialog.StartDialog:FireAllClients("Hello! Welcome to the first ever WorldWE Event!")
end

ReplicatedStorage.Events.StartEventServerSided.Event:Connect(StartEvent)
ReplicatedStorage.Events.TestEvent.OnServerEvent:Connect(StartEvent)

This error happens:
image

I tried everything, including removing Strict Typing, task.wait(1), and more, however, nothing is working. This doesn’t happen when you don’t clone.

If you can help me out, that will be appreciated. Thanks! WE

1 Like

Turns out, I had to remove ... from :Play()

2 Likes