Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Nov 2014 03:07 PM |
StarterGui -ChatLog (ScreenGui) --ScrollingFrame (ScrollingFrame) ---Script (ServerScript) ---CurrentChat (StringValue) ----Script (ServerScript)
The script inside the stringvalue is this
game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(msg) script.Parent.Value = plr.Name..": "..msg end) end)
The script inside ScrollingFrame is this
chatAmount = {}
script.Parent["CurrentChat"].Changed:connect(function(chat) local txt = Instance.new("TextLabel", script.Parent) table.insert(chatAmount, txt) txt.BackgroundTransparency = 1 txt.TextXAligntment = "Left" txt.TextWrapped = true txt.TextScaled = true txt.TextColor3 = Color3.new(0,0,0) txt.Size = UDim2.new(0,285,0,50) txt.Position = UDim2.new(0,0,0,(#chatAmount * 50)) txt.Text = chat game:GetService("Debris"):AddItem(txt, (1*60)) end)
When I went into my place, nothing appeared on the scrollingframe. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Nov 2014 03:11 PM |
| I miss-spelled "TextXAlignment" but I fixed it, but the chatlog doesen't work. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 23 Nov 2014 03:14 PM |
| I just went into play solo, weirdest thing. I changed the value of the StringValue which when changes, adds textlabels which is the logs, and it worked. I put something into the value and the textlabels added perfectly, which means something doesen't update the StringValue.. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 24 Nov 2014 08:34 AM |
| or maybe the changed event fails somehow, bump. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 28 Nov 2014 01:45 PM |
Help? Also, I discovered the value never updates because I ran a while loop which prints every 1 second, it prints the value of the current chat (it should), but it doesen't print anything, therefore the value never updates and the second script won't fire either.
So why doesen't the playeradded+chatted+textchanging script work? |
|
|
| Report Abuse |
|
|