I have loaded an animation.
I then set it to loop.
But it is not looping, Can anyone tell me why it might be?
local function loadCharacter(charName)
local char = game:GetService('ServerStorage'):FindFirstChild('Characters'):FindFirstChild(charName):Clone()
char.Parent =workspace
local anim = char.Humanoid:LoadAnimation(script:FindFirstChild('Anim'))
anim.Looped = true
anim:Play()
end
wait(1)
loadCharacter('Dummy')
local function loadCharacter(charName)
local char = game:GetService('ServerStorage'):FindFirstChild('Characters'):FindFirstChild(charName):Clone()
char.Parent =workspace
local anim = char.Humanoid:LoadAnimation(script:FindFirstChild('Anim'))
anim.Looped = true
task.wait()
anim:Play()
end
wait(1)
loadCharacter('Dummy')
I looked at this it says it only does this if you do it on the server. And then change it to client and do something there. Im just doing it straight from the server.
Unless I read it wrong ofc