RedXVIII
|
  |
| Joined: 30 Nov 2011 |
| Total Posts: 8 |
|
|
| 04 Nov 2012 01:59 PM |
PlayersT = game.Players:GetChildren()
function PlayerC(Msg, PlayerWC) Chat = PlayerWC .. ": " .. Msg end while wait(0) do for I = 1, #PlayersT, 1 do PlayersT[I].Chatted:connect(PlayerC) end end
function CopyText(Message) A = TextLabel:Clone() A.Parent = TextBox A.Text = Message A.Visible = true A.Script.Disabled = false end
function click() CopyText(Chat) end script.Parent.MouseButton1Click:connect(click)
There is a problem with the first function for some reason, it just doesn't work, would be great if someon could lead me to what the problem is, or a better way of doing this. |
|
|
| Report Abuse |
|
|
RedXVIII
|
  |
| Joined: 30 Nov 2011 |
| Total Posts: 8 |
|
| |
|
|
| 04 Nov 2012 03:37 PM |
| TextLabel and TextBox were never defined |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 04 Nov 2012 03:57 PM |
Because Chatted only returns the message chatted.
Player.Chatted:connect(function(Message) PlayerC(Message,Player) end) |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 04 Nov 2012 03:58 PM |
Always search the wiki first.
http://wiki.roblox.com/index.php/Chatted_(Event)
print("Flood checks:",2) |
|
|
| Report Abuse |
|
|