Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why Wont My Chat Gui Work??? [closed]

Asked by 10 years ago
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)

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 10 years ago

See if your chat settings is in Bubble

0
K Done That djwill619 0 — 10y
1
Ok i am reading it Chillu4 0 — 10y
1
Is your chatGui name is ChatGUI? Chillu4 0 — 10y
0
Its Called ChatGui djwill619 0 — 10y
View all comments (6 more)
0
I Don't See Why It Wont Work djwill619 0 — 10y
1
Are you testing it in Studio? Chillu4 0 — 10y
0
No djwill619 0 — 10y
1
Did you city your game only for Bubble chat? Chillu4 0 — 10y
0
Yes Its Just Bubble Chat djwill619 0 — 10y
1
Thats why it is not working XD Set it to Both Chillu4 0 — 10y
Ad