Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local animationId = "rbxassetid://17325160621"
- local soundId = "rbxassetid://17325174223"
- local animation = Instance.new("Animation")
- animation.AnimationId = animationId
- local animTrack = humanoid:LoadAnimation(animation)
- animTrack:Play()
- local sound = Instance.new("Sound")
- sound.SoundId = soundId
- sound.Parent = character:WaitForChild("HumanoidRootPart")
- sound:Play()
- animTrack.Stopped:Wait()
- sound.Ended:Wait()
- sound:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement