#animation being late not like the animation from animation editor
29 messages · Page 1 of 1 (latest)
local animation = script.Parent.Humanoid.Animator:LoadAnimation(script.Animation)
animation:AdjustSpeed(1000)
animation.Looped = true
animation:Play()
how does one support local scripts?
localscripts in characters only work if it's in the player's character
you should place the localscript inside starterplayerscripts instead
then doesnt mean the script inside the npc would be gone
and if its gone then it wont get animated
put all the npcs you want to be animated inside a folder, then use a localscript to loop through and play the animation for all of them
how do i do that
then
use this method in the localscript to loop through all the npcs
local function animate(npc)
--put the animation script here
end
for _,v in pairs(animationFolder:GetChildren()) do animate(v) end --loops through all the npcs and runs the function for them
animationFolder.ChildAdded:Connect(animate) --if a new npc is added it'll animate it
so ill have to change the script?
yes and just paste your original code into the function (with some minor modifications of course)
where do i paste my code?
I dont get it
inside this function
ok gets
do I change the red lines with the folder's name?
yes
or just make a variable named "animationFolder"
i am about to go insane
do you not know what a variable is
just make a "local # = #" that defines the animation folder
so gotta change the varibale to animationfolder
okay why the fuck are you using ai suddenly