This script is supposed have a transition when it swaps animations however it does not work and i can’t seem to figure out why!
When i remove the transition parts it works but i want a transition!
can someone help me?
local lighting = game.Lighting
local night = 18
local day = 6
local anim1 = script.Parent.BaseAnimate
local change_anim = script.Parent.Humanoid:LoadAnimation(anim1.idle.Animation1)
while true do
task.wait(1)
if lighting.ClockTime > day and lighting.ClockTime < night then
change_anim:Play()
change_anim.Stopped:Wait()
anim1.idle.Animation1.AnimationId ="rbxassetid://17639503317"
anim1.idle.Animation2.AnimationId ="rbxassetid:// 17639503317"
anim1.walk.WalkAnim.AnimationId ="rbxassetid://17639505779"
anim1.run.RunAnim.AnimationId = "rbxassetid://17639509045"
else
change_anim:Play()
change_anim.Stopped:Wait()
anim1.idle.Animation1.AnimationId ="rbxassetid://17639512359"
anim1.idle.Animation2.AnimationId ="rbxassetid:// 17639512359"
anim1.walk.WalkAnim.AnimationId ="rbxassetid://17639521313"
anim1.run.RunAnim.AnimationId = "rbxassetid://17639527968"
end
end