ChatBubbleGUI: Why wont it work?
So I have tried to make a chat Bubble Script that will pop a gui above the player's head with his/hers message, but when i tested it, the results weren't quite what I was going for:
It did the test command (above "----"), but it didn't do anything when I tried chatting (below "----").
Anyone who can help? Here is the full script (please don't copy it):
01 | color = script.Parent.Color.Value |
02 | local chatted = script.BillboardGui:Clone() |
03 | chatted.Parent = script.Parent.Parent.Parent.Parent.Character.Head |
05 | chatted.TextLabel.TextColor 3 = color |
06 | chatted.TextLabel.Text = "Hello World" |
12 | game.Players.PlayerAdded:connect( function (player) |
13 | player.Chatted:connect( function (msg) |
14 | local chatted = script.BillboardGui:Clone() |
15 | chatted.Parent = player.Character.Head |
16 | chatted.Enabled = true |
17 | chatted.TextLabel.TextColor 3 = color |
18 | chatted.TextLabel.Text = msg |
The used objects Tree/Hierarchy:
Color
Script
BillboardGui
TextLabel