#UNSOLVED - How to reinit Animate script correctly with all the animations working immediately

1 messages · Page 1 of 1 (latest)

vagrant ruin
#

Yeah so uhh i wrote this code ```lua
local DefaultAnimations = {}
task.spawn(function()
AnimateScript.DescendantAdded:Connect(function(descendant)
if descendant:IsA("Animation") then
DefaultAnimations[descendant.Name] = descendant
end
end)
AnimateScript.DescendantRemoving:Connect(function(descendant)
if descendant:IsA("Animation") then
DefaultAnimations[descendant.Name] = nil
end
end)
for i, v in ipairs(AnimateScript:GetDescendants()) do
if v:IsA("Animation") then
DefaultAnimations[v.Name] = v
end
end
end)

local function PauseFromPlayingDefaultAnimations()
local AnimateScript = GetCharacter():WaitForChild("Animate")
AnimateScript.Enabled = false
for i,v in ipairs(GetAnimator():GetPlayingAnimationTracks()) do
if DefaultAnimations[v.Name] then
v:Stop()
end
task.wait()
end
end

local function UnpauseFromPlayingDefaultAnimations()
AnimateScript.Enabled = true
endthat pauses the Animate script then stops the default animations and more but when i calllua UnpauseFromPlayingDefaultAnimations()``` in the air it does the idle animation instead of the falling animation until i hit the ground so does anybody know how to fix this

#

How to reinit Animate script correctly with all the animations working immediately

cursive tendon
#

ok so are you trying to make your own custom anims work ingame?

#

cause if yes

#

there is a WAY easier fix

vagrant ruin
vagrant ruin
#

me when no response when even when they are online

cursive tendon
cursive tendon
# vagrant ruin what is it (also i am NOT trying to replace the default animations or remove the...

so if you go ingame, and go into ur character, u can copy the script inside the humanoid called "Animate". copy it and leave the test area and youll see the default animations in there, along with them actually being in the script. you can save the script to actually have the ids for the default anims incase you wanna keep em idk. to change that specific anim, put your anims id in the script AND the anim in the properties menu! if you want me to like idk do screenshots just ask

vagrant ruin
cursive tendon
#

your just changing the IDS

vagrant ruin
deep magnetBOT
#

studio** You are now Level 2! **studio

cursive tendon
#

hm

#

i dont rlly know what ur trying to do then

vagrant ruin
#

bruhhhhhhhhhhhhhh

vagrant ruin
# cursive tendon hm

its literally restarting the Animate script with all the default animations working immediately

cursive tendon
#

then idk

vagrant ruin
#

bruh moment