Hey there. This is a relatively simple script. As soon as the player hits the part (which enclosed is the localscript with the following code) the OnTouch should fire and play the paused audio (audio was paused via another LocalScript) and also play the animation. I’m missing something I believe. This code is a jumbled mess of me trying to come up with solutions, so if someone could simplify it, that would be great.
local animTrack = game.Workspace.UFO.Humanoid:LoadAnimation(UFO)
local UFOmodel = game.Workspace.UFO
local MaleVoiceover = game.Workspace.Sound.MaleVoiceover
local canTouch = game.Workspace.UFOevent.CanTouch
local function onTouch (hit)
canTouch.Enabled = false
wait(.1)
MaleVoiceover:Resume()
animTrack:Play()
wait(9)
UFOmodel:Destroy()
end
script.Parent.Touched:Connect(onTouch)```