generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I need some help now

Previous Thread :: Next Thread 
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
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
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
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 is not online. 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 is not online. 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 is not online. 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
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image