8Bawl
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 544 |
|
|
| 24 Jul 2011 11:14 AM |
--there's a model named sounds with sounds in it. Any help? >:\
function onPlayerEntered(newPlayer)
function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name)
if (msg == "1") then script.Sounds:findFirstChild("1"):play() end
if (msg == "2") then script.Sounds:findFirstChild("2"):play() end
if (msg == "4") then script.Sounds:findFirstChild("3"):play() end
if (msg == "4") then script.Sounds:findFirstChild("4"):play() end
if (msg == "5") then script.Sounds:findFirstChild("5"):play() end
if (msg == "lol") then script.Sounds:findFirstChild("L"):play() end end end
game.Players.PlayerAdded:connect(function(newP) onPlayerEntered(newP) if newP.Name == "8Bawl" then newP.Chatted:connect(function(msg) onChatted(msg, nil, newP) end) end end) |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2011 11:22 AM |
function onChatted(msg, speaker)
if (msg == "1") then script.Sounds:findFirstChild("1"):play() end
if (msg == "2") then script.Sounds:findFirstChild("2"):play() end
if (msg == "4") then script.Sounds:findFirstChild("3"):play() end
if (msg == "4") then script.Sounds:findFirstChild("4"):play() end
if (msg == "5") then script.Sounds:findFirstChild("5"):play() end
if (msg == "lol") then script.Sounds:findFirstChild("L"):play() end end
game.Players.PlayerAdded:connect(function(newP) onPlayerEntered(newP) if newP.Name == "8Bawl" then newP.Chatted:connect(function(msg) onChatted(msg, newP) end) end end)
Regards, ~Scarfacial |
|
|
| Report Abuse |
|
|
8Bawl
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 544 |
|
| |
|
| |
|
|
| 24 Jul 2011 11:46 AM |
| Maybe the sound assets haven't loaded yet. |
|
|
| Report Abuse |
|
|
8Bawl
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 544 |
|
|
| 24 Jul 2011 01:06 PM |
| No, something is wrong with the script. |
|
|
| Report Abuse |
|
|