|
| 07 Dec 2011 09:10 AM |
Why dont it work? Seems that syntaxis is alright, but something dont work(as text of guis dont change) Code:
trans = script.Parent.Transmi lines = {script.Parent.Text1, script.Parent.Text2, script.Parent.Text3, script.Parent.Text4, script.Parent.Text5}
function transmission() if trans.Value~="" then length = #(trans.Value) num = math.floor(length/50)+1 for i = 1,num do lines[i].Text = (trans.Value:sub(50*(i-1), 50*i)) end end end
function onChatted(msg, recipient, speaker) trans.Value = msg transmission() end
function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
| 07 Dec 2011 09:26 AM |
Probably chatted event dont work.
P.S. the script is in startergui-screengui |
|
|
| Report Abuse |
|