Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My sound creates, but doesn't play?

Hi! I'm very confused here. I was trying to make a music script but it didn't play.

local w = game:GetService("Workspace")
local part = Instance.new("Part")
part.Parent = w
local sound = Instance.new("Sound") -- creates sound
sound.Parent = part
print("Made and assigned sound")
sound.SoundId = 700994872
print("Set sound id")
sound.MaxDistance = 10000000000
print("Sound distance worked")
sound.Volume = 1
print("Volume is one")
sound:Play()
print("sound played")

1 answer

✓ Accepted answer
local Part = Instance.new("Part"); Part.Parent = workspace

local Sound = Instance.new("Sound")
Sound.SoundId = "rbxassetid://"..700994872
Sound.Parent = Part
Sound:Play()

2 comments

0

that's what i typed in

0

What Feahren typed in worked for me

This discussion is preserved as it was. New answers, comments, and votes are closed.