Zarteon
|
  |
| Joined: 25 Apr 2011 |
| Total Posts: 2085 |
|
|
| 06 Nov 2012 02:09 PM |
Hi, The following script has become non-functional over time and I require your help to fix it, its not a very long script but I need help fixing it.
print("Test") wait(0.1) speaker = "zarteon" script.Parent.Name = speaker .. ":" function c(msg) script.Parent.Name = speaker .. ": " .. msg end function op(pl) if (pl.Name == speaker) then pl.Chatted:connect(c) end end game.Players.PlayerAdded:connect(op)
Thankyou, your help is appreciated. |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 02:31 PM |
speaker = "zarteon"
game.Players.PlayerAdded:connect(function(p) repeat wait() until p.Character if p.Name == speaker then p.Chatted:connect(function(msg) op(p,msg) end)
end) end end)
function chat(pl, msg)
script.Parent.Name = plr.Name .. " : " .. tostring(msg)
end
|
|
|
| Report Abuse |
|
|
Zarteon
|
  |
| Joined: 25 Apr 2011 |
| Total Posts: 2085 |
|
|
| 06 Nov 2012 02:41 PM |
| Let me clear it up, as you may be getting confused, The sole purpose of the script is when an player chats something it will then show the text above a brick with a humanoid in it. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 06 Nov 2012 03:02 PM |
It's not become non-functional, your caps are incorrect. Make the z uppercase in the speaker variable. |
|
|
| Report Abuse |
|
|
Zarteon
|
  |
| Joined: 25 Apr 2011 |
| Total Posts: 2085 |
|
|
| 13 Nov 2012 07:55 AM |
Here is the script...
print("Script Functioning") wait(0.1) speaker = "LudicrouslyEpic"
function c(msg) local Obj = game.Workspace.SpeakerSystem:GetChildren() for i = 1,#Obj do if Obj[i]:isA("Model") then Obj[i].Name = speaker .. ": " .. msg end end
function op(pl) if (pl.Name == speaker) then pl.Chatted:connect(c) end end game.Players.PlayerAdded:connect(op) |
|
|
| Report Abuse |
|
|
Zarteon
|
  |
| Joined: 25 Apr 2011 |
| Total Posts: 2085 |
|
|
| 13 Nov 2012 07:56 AM |
| Need help with the above script. Appreciated if you can help. |
|
|
| Report Abuse |
|
|
Zarteon
|
  |
| Joined: 25 Apr 2011 |
| Total Posts: 2085 |
|
| |
|