Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Get the Player and the Workspace
- local player = game.Players.LocalPlayer
- local workspace = game:GetService("Workspace")
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- -- Create and load sounds
- local sound1 = Instance.new("Sound")
- sound1.SoundId = "rbxassetid://17150550559" -- Replace with your first sound ID
- sound1.Parent = workspace
- local sound2 = Instance.new("Sound")
- sound2.SoundId = "rbxassetid://17150550302" -- Replace with your second sound ID
- sound2.Parent = workspace
- -- Create and load animation
- local animation = Instance.new("Animation")
- animation.AnimationId = "rbxassetid://17140902079" -- Replace with your animation ID
- animation.Parent = humanoid
- -- Play the first sound
- sound1:Play()
- -- Wait for 1 second
- wait(1)
- -- Play the second sound
- sound2:Play()
- -- Play the animation
- local animTrack = humanoid:LoadAnimation(animation)
- animTrack:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement