Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why Wont My Chat Gui Work???

game:GetService("Players").PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
for _, v in ipairs(game:GetService("Players"):GetChildren()) do
for _, oldmsg in ipairs(v:WaitForChild("PlayerGui").ChatGui.MsgBoard) do
oldmsg.Position = oldmsg.Position - UDim2.new(0, 0, 0, 15)
end
newmsg = Instance.new("TextLabel", v:WaitForChild("PlayerGui").ChatGui.MsgBoard)
newmsg.Text = player.Name..": "..msg
newmsg.Position = UDim2.new(0, 0, 1, -17.5)
newmsg.TextColor3 = Color3.new(0, 0, 0)
newmsg.TextStrokeTransparency = 0
newmsg.BackgroundTransparency = 1
newmsg.BorderSizePixel = 0
 newmsg.FontSize = "Size24"
newmsg.TextXAlignment = "Left"
newmsg.TextYAlignment = "Top"
newmsg.ClipsDescendants = true
end
end)
end)

1 answer

See if your chat settings is in Bubble

10 comments

0

K Done That

1

Ok i am reading it

1

Is your chatGui name is ChatGUI?

0

Its Called ChatGui

0

I Don't See Why It Wont Work

1

Are you testing it in Studio?

0

No

1

Did you city your game only for Bubble chat?

0

Yes Its Just Bubble Chat

1

Thats why it is not working XD Set it to Both

This discussion is preserved as it was. New answers, comments, and votes are closed.