Advertisement
ILovePotato

KJ spawn FE with sound!

Jan 25th, 2025
54
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 1 0
  1. local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  2. local humanoid = character:WaitForChild("Humanoid")
  3. local animationId = "rbxassetid://17325160621"
  4. local soundId = "rbxassetid://17325174223"
  5.  
  6. local animation = Instance.new("Animation")
  7. animation.AnimationId = animationId
  8. local animTrack = humanoid:LoadAnimation(animation)
  9. animTrack:Play()
  10.  
  11. local sound = Instance.new("Sound")
  12. sound.SoundId = soundId
  13. sound.Parent = character:WaitForChild("HumanoidRootPart")
  14. sound:Play()
  15.  
  16. animTrack.Stopped:Wait()
  17. sound.Ended:Wait()
  18.  
  19. sound:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement