Advertisement
ILovePotato

Fe five seasons

Jan 22nd, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. local sound = Instance.new("Sound")
  2. sound.Parent = game.Workspace
  3. sound.SoundId = "rbxassetid://18460952794" -- Replace with your sound ID
  4. sound.Looped = false -- Ensures the sound doesn't loop
  5. sound:Play()
  6.  
  7.  
  8. -- Replace with your Animation ID
  9. local animationId = "rbxassetid://18462892217"
  10.  
  11. -- Wait for the player’s character to load
  12. local player = game.Players.LocalPlayer
  13. local character = player.Character or player.CharacterAdded:Wait()
  14. local humanoid = character:FindFirstChildOfClass("Humanoid")
  15.  
  16. if humanoid then
  17. -- Create and load the animation
  18. local animation = Instance.new("Animation")
  19. animation.AnimationId = animationId
  20. local animationTrack = humanoid:LoadAnimation(animation)
  21.  
  22. -- Play the animation
  23. animationTrack:Play()
  24.  
  25. -- Optional: Adjust speed or loop settings
  26. animationTrack:AdjustSpeed(1) -- Normal speed
  27. animationTrack.Looped = false -- Makes the animation loop
  28. end
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement