|
| 11 Oct 2014 08:17 PM |
I made everything local now,
When you chat I do this: plr.PlayerGui.Chat:FireClient(player,'TeamChat',chatbar.Text)
and that fires.. script.Parent.Chat.OnClientEvent:connect(function(plr,type,msg)
and right after that I have this local chatype=frame[type] -- line 19
and it throws this error Unable to cast value to Object 20:12:51.955 - Script 'Players.Player.PlayerGui.LocalChat', Line 19
|
|
|
| Report Abuse |
|
|
|
| 11 Oct 2014 08:19 PM |
Details:
I am making a chat gui and I am using a remote event to send the chat and where it goes to other people. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 11 Oct 2014 08:19 PM |
plr.PlayerGui.Chat:FireClient('TeamChat',chatbar.Text)
Player is filled in for you automatically |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 11 Oct 2014 08:20 PM |
On second thought I might be thinking of the wrong thing
Let me check the wiki If I find anything I'll reply |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 11 Oct 2014 08:20 PM |
plr.PlayerGui.Chat:FireClient(player,'TeamChat',chatbar.Text)
script.Parent.Chat.OnClientEvent:connect(function(type,msg)
Try that |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2014 08:28 PM |
Thanks, but I trouble shot it already.
I just need help with this..
script.Parent.Chat.OnClientEvent:connect(function(plr,type,msg) local chattype print('1') if frame.CurrentTab.Value=='Team' and print('2') and player.TeamColor==plr.TeamColor and print('3') then chattype=frame.TeamChat print(4)
It only prints 1 and 2
|
|
|
| Report Abuse |
|
|