local head = nail:WaitForChild("Head")
local knock =head:WaitForChild("knock")
local please = head:WaitForChild("pleaseopen")
repeat
knock:Play()
local anim = script.Animation
local hum = script.Parent:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")
local track = animator:LoadAnimation(anim)
track.Looped = true
track:Play()
task.wait(2)
return
please:Play()
local anim = script.Animation
local hum = script.Parent:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")
local track = animator:LoadAnimation(anim)
track.Looped = true
track:Play()
task.wait(3)
until false```
#Need help with this working.
1 messages · Page 1 of 1 (latest)
Could you provide errors or describe the issues?
I need this script to play a sound and animation at the same time. after the sound and animation finished another sound and animation plays again at the same time. and this loops until the player interacts with them that Ill make later
And it isn't working now? I am asking how it isn't working?
havent tested it yet but studio says that there are errors
and I know nothing about scripting
In order for me to diagnose the script, I would need to see your output.
Idk if this helps
Remove return
alr
wait
i think I got smth
I don't know if this will help or something
But I made a video explaining what he would do
And well here is the script that doesnt work
I think you should really learn how to code. track:Play and track:Stop together. You are referring to anim, hum, animator, track twice.
then I must've switched them up
ill have to make placholder anims
like its supposed to play the sound and anim
then it ends
after that another plays and ends then repeats
Use .Completed:Wait if you wanna make it play new one after old one finished