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 » Scripters
Home Search
 

Re: does not work xp

Previous Thread :: Next Thread 
OmariHero is not online. OmariHero
Joined: 14 Aug 2013
Total Posts: 4193
14 Aug 2015 03:55 PM
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()

Mouse.KeyDown:connect(function(key)
key = key:lower()
if key == "j" then
game:GetService("Chat"):Chat(Player.Character.Head, "test")
end
end)

want it so whenever someone press j, they say "test"

doesnt work when i test it :(
Report Abuse
OmariHero is not online. OmariHero
Joined: 14 Aug 2013
Total Posts: 4193
14 Aug 2015 03:57 PM
gang in this bit
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
14 Aug 2015 03:58 PM
1. You didn't post the actual problem.
2. KeyDown is deprecated, use UserInputService.
3. You should be firing a RemoteEvent and do the chatting serverside.
4. You're assuming head is loaded.
5. You didn't put any output or say there is none.
6. Why didn't you specify the color in the 3rd arg?


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
OmariHero is not online. OmariHero
Joined: 14 Aug 2013
Total Posts: 4193
14 Aug 2015 04:00 PM
1. You didn't post the actual problem.
2. KeyDown is deprecated, use UserInputService.
3. You should be firing a RemoteEvent and do the chatting serverside.
4. You're assuming head is loaded.
5. You didn't put any output or say there is none.
6. Why didn't you specify the color in the 3rd arg?

1. lol the problem is that it wont say "Test"
2. ok lol
3. ok lol
4. it is
5. none
6. wym
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
14 Aug 2015 04:02 PM
3rd argument of Chat is to specify the color, "Red', "Blue", or "Green".

-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
OmariHero is not online. OmariHero
Joined: 14 Aug 2013
Total Posts: 4193
14 Aug 2015 04:08 PM
thx
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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