I Knew It Can Be This Simple Because It Doesn't Work! I'm New To Scripting And I'm Trying To Make A DJ booth?
Id = Script.Parent.Sound.Soundid Sound = Script.Parent.Sound Text = Script.Parent.Parent.Textbox.Text function Music() Id = "http://web.roblox.com/Because-Im-Happy-32-540-Sold-item?id="..Text.."" Sound:Play() Script.Parent.Parent:remove() end Script.Parent.MouseButton1Down:connect(Music)
I don't think you are using sound ID's properly. Here is the wiki link to using sounds. If it help let me know :D
Well, a few capitalization errors.
Id = script.Parent.Sound.SoundId Sound = Script.Parent.Sound Text = Script.Parent.Parent.Textbox function Music() Id = "http://www.roblox.com/asset/?id="..Text.Text -- Incase it changes. Variable may not update Sound:Play() script.Parent.Parent:Destroy() end script.Parent.MouseButton1Down:connect(Music)
You need to write three "end" and get the very last line before them. "end end end"