Animated Characters

Heya Devforum!

I have recently began developing a Hotel and Resort with my friends. As part of the inspiration we love this idea (see below)

How could we get a figure to play an animation on loop and say things utilising a script.

Thanks,
Azmarios

image

Please search before posting.

3 Likes
local Animation = game:GetService("ServerScriptService"):WaitForChild("Animation")
local Humanoid = script.Parent.Humanoid
local Loaded = Humanoid:LoadAnimation(Animation)

Loaded:Play()
Loaded.Stopped:Connect(function()
    Loaded:Play()
end