generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Chatlog problem

Previous Thread :: Next Thread 
Fedorakid is not online. 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 is not online. 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 is not online. 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 is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Nov 2014 03:32 PM
bumperino
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Nov 2014 03:43 PM
b2 k
Report Abuse
Fedorakid is not online. 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 is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
28 Nov 2014 01:16 PM
bumperino
Report Abuse
Fedorakid is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image