|
| 17 Feb 2015 08:48 PM |
The whole Purpose to these scripts is to: 1. Remove All Sounds. 2. Playing a sound once all aren't playing (RemoteEvent)
Regular Script: local sounds = {"206507745","167673832",""}
game.Workspace.ChangeSound.OnServerEvent:connect(function(plr, soundNum) if script:FindFirstChild("Sound") then script.Sound:Remove() end local sound = Instance.new("Sound", script) sound.SoundId = sounds[soundNum] sound:Play() end)
Local Script:
for i, v in pairs(script.Parent:GetChildren()) do v.MouseButton1Click:connect(function(click) game.Workspace.ChangeSound:FireServer(v.Sound.Value) end) end
SadForMySad |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2015 08:51 PM |
Local Script is in the Frame of the Surface Gui BTW.
SadForMySad |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 17 Feb 2015 08:53 PM |
Part1.SurfaceGui, the surface GUI is named "Sound Board"
SadForMySad |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 17 Feb 2015 08:54 PM |
| place it in starter gui and makes its adornee to the part |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Feb 2015 08:57 PM |
I don't understand, I have a Part with a click detector that makes the GUI Visible on Part1
SadForMySad |
|
|
| Report Abuse |
|
|