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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|