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: Output doesnt return anything. Chatted Script.

Previous Thread :: Next Thread 
fdude2000 is not online. fdude2000
Joined: 27 Feb 2010
Total Posts: 366
04 May 2013 12:11 PM
Please help me! Heres the script.


game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
msg = msg:lower()
if (msg == "reset") then
if (p.Character ~= nil) then
p.Character.Humanoid.Health = 0
end
elseif (msg == "Other") then
print("Teleporting to JJ Map")
wait(.1)
p.Character:MoveTo(Vector3.new (0,0,0))
print("Teleported")

elseif (msg == "Fdude") then
print("Teleporting to Fdude Map")
p.Character:MoveTo(Vector3.new (0,0,0))

end

end)
end)
Report Abuse
bourlo is not online. bourlo
Joined: 11 Aug 2009
Total Posts: 399
04 May 2013 12:16 PM
If you change your message to lowercase it won't match with those starting with uppercase...

elseif (msg == "other") then
elseif (msg == "fdude") then
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
04 May 2013 12:16 PM
The message can't be 'Fdude', as it contains only lowercase characters. Only problem I see.
You can't view what's printed online, but if you use the error function with this model you can see:
http://www.roblox.com/Remote-Error-Monitoring-System-item?id=65774258
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
04 May 2013 12:19 PM
You use :lower() and then try and compare the message to "Other" and "Fdude". Does reset work?
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