|
| 09 Nov 2011 11:59 AM |
| I am making an admin script to use on script builder and I want to make a players chat bubble to look like an NPC's dialog, but it cannot be a ChildAdded function or a onRespawned function, a few other people have done this so it is possible. Could you help me? |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2011 01:40 PM |
function AllowBubbleChat(Player) Player.Chatted:connect(function(Msg) if Player.Character then game:GetService("Chat"):Chat(Player.Character.Head, Msg, Enum.ChatColor.Blue) end end) end
for Num, Obj in pairs(game.Players:GetPlayers()) do AllowBubbleChat(Obj) end
game.Players.PlayerAdded:connect(function(NewPlayer) AllowBubbleChat(NewPlayer) end --------------------------- Untested though. May not work.
|
|
|
| Report Abuse |
|
|
|
| 09 Nov 2011 01:54 PM |
| I did say it cant be a ChildAdded xD |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2011 02:02 PM |
| I used PlayerAdded not ChildAdded. Also why the restrictions? |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2011 02:41 PM |
| I need to run it in Script Builder and I dont really want to leave and re-join to use the dialog. |
|
|
| Report Abuse |
|
|