How would I do so in playing an animation in a local script. Here is what I have going on so far.
local Plane = game.ReplicatedStorage.Plane:Clone()
Plane.Parent = game.workspace.CurrentCamera
local function Animation1()
local Human = Plane:WaitForChild("Humanoid")
local Animator = Human:FindFirstChildOfClass("Animator")
local Track = Instance.new("Animation")
Track.Parent = game.Workspace
Track.AnimationId = "rbxassetid://12190507218"
local Anim = Human.Animator:LoadAnimation(Track)
Anim:Play()
end
Animation1()
This local script is in StarterPlayerScripts.
I currently have a model which is cloned for every player. And as soon as it is cloned I want an animation to be played on this model. What I have right now doesn’t seem to be working and am not sure why. I would appreciate some help, thank you!