Hello! I’m trying to make a character select option based off of Sonic Advanced for fun. I ran into a problem while creating it though. Im using viewport frames for the characters and I have a animation for said characters. It works normally, but if i clone the viewport frame, it doesnt work for some reason. Any idea why its not working? As you can see, behind the dummy without the animation you can somewhat make out a animated dummy.
also note, I load the animations using a script in the dummy itself and theres a animation in the dummy.
undefined (NaN [en.number.human.storage_units.units.byte count=undefined])
Script (FOR THE DUMMIES):
local hum = script.Parent.Humanoid
local animate = hum.Animator:LoadAnimation(script.Parent.Animation)
animate:Play()
LocalScript (FOR THE CLONING):
local currentt = gui.ViewportFrame:Clone()
local nextt = gui.ViewportFrame2:Clone()
local prevt = gui.ViewportFrame3:Clone()
currentt.Visible = true
nextt.Visible = true
prevt.Visible = true
currentt.Parent = gui
nextt.Parent = gui
prevt.Parent = gui
currentt.WorldModel.Rig.Humanoid.Animator:LoadAnimation(currentt.WorldModel.Rig.Animation)
nextt.WorldModel.Rig.Humanoid.Animator:LoadAnimation(nextt.WorldModel.Rig.Animation)
prevt.WorldModel.Rig.Humanoid.Animator:LoadAnimation(prevt.WorldModel.Rig.Animation)