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?
01 | Id = Script.Parent.Sound.Soundid |
02 | Sound = Script.Parent.Sound |
03 | Text = Script.Parent.Parent.Textbox.Text |
04 |
05 | function Music() |
06 | Id = "http://web.roblox.com/Because-Im-Happy-32-540-Sold-item?id=" ..Text.. "" |
07 | Sound:Play() |
08 | Script.Parent.Parent:remove() |
09 | end |
10 |
11 | Script.Parent.MouseButton 1 Down: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.
01 | Id = script.Parent.Sound.SoundId |
02 | Sound = Script.Parent.Sound |
03 | Text = Script.Parent.Parent.Textbox |
04 |
05 | function Music() |
06 | Id = "http://www.roblox.com/asset/?id=" ..Text.Text -- Incase it changes. Variable may not update |
07 | Sound:Play() |
08 | script.Parent.Parent:Destroy() |
09 | end |
10 |
11 | script.Parent.MouseButton 1 Down:connect(Music) |
You need to write three "end" and get the very last line before them. "end end end"