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 » Scripting Helpers
Home Search
 

Pseudo Chat

Previous Thread :: Next Thread 
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
15 Jul 2014 05:59 PM
SO I've edited the Pseudo Chat script from the wiki. So that it would work with mine. But it didn't.. Help?

function UpdateOldLabels(Parent)
for i,v in pairs(Parent:GetChildren()) do
if v.Name:sub(1,4):lower() == "line" then
local LineNumber = v.Name:sub(5)
if LineNumber == "12" then
v:Destroy()
else
v.Name = "line"..tostring(tonumber(LineNumber) + 1)
v.Position = v.Position - UDim2.new(0,0,0,15)
end
end
end
end

game:GetService("Players").PlayerAdded:connect(function(player)
local chat = player.PlayerGui:WaitForChild("Chat").CurrentChat
if chat.Value~="" then
for _,v in ipairs(game:GetService("Players"):GetChildren()) do
UpdateOldLabels(v:WaitForChild("PlayerGui").CHATGUI.Frame)
newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").CHATGUI.Frame)
newchatline.Text = player.Name.. ": " ..chat.Value
newchatline.Size = UDim2.new(1,0,0,15)
newchatline.Position = UDim2.new(0,0,1,-15)
newchatline.Font = "SourceSansBold"
newchatline.TextColor3 = Color3.new(1,1,1)
newchatline.TextStrokeTransparency = 0
newchatline.BackgroundTransparency = 1
newchatline.BorderSizePixel = 0
newchatline.FontSize = "Size14"
newchatline.TextXAlignment = "Left"
newchatline.TextYAlignment = "Top"
newchatline.ClipsDescendants = true
newchatline.Name = "line1"
end
UpdateOldLabels(game:GetService("StarterGui").CHATGUI.Frame)
newchatline:Clone().Parent = game:GetService("StarterGui").CHATGUI.Frame
end
end)

No errors nothing in output..
~Tynexx
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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