|
| 17 Aug 2011 09:52 PM |
function: message() if game.Workspace.Player.Team.Raiders Message:("I Surrender") then game.Workspace.speaker.Torso.Cframe:("0,0,0") game.Workspace.speaker.tools:remove()
What it does if you say I Surrender you go to that CFrame position. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2011 09:53 PM |
| I posted in your other thread. Don't repost the exact same thread if your thread isn't answered >.> |
|
|
| Report Abuse |
|
|
bloob827
|
  |
| Joined: 01 Aug 2010 |
| Total Posts: 6867 |
|
|
| 17 Aug 2011 09:56 PM |
no you need to read the wiki again..
well atleast u trid
game.Players.PlayerEntered:connect(function(plr) plr.Chatted:connect(function(msg) if msg == 'i surrender' then game.Players:getPlayerFromCharacter(plr).Torso.CFrame = CFrame.new('0'0'0) else print[==[BYE]==] end end)end) |
|
|
| Report Abuse |
|
|
bloob827
|
  |
| Joined: 01 Aug 2010 |
| Total Posts: 6867 |
|
|
| 17 Aug 2011 09:57 PM |
WHOOPS FAIL CFRAME DOESNT USE STRINGS game.Players.PlayerEntered:connect(function(plr) plr.Chatted:connect(function(msg) if msg == 'i surrender' then game.Players:getPlayerFromCharacter(plr).Torso.CFrame = CFrame.new(0,0,0) else print[==[BYE]==] end end)end) |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2011 09:58 PM |
bloob, what happens if someone types
I surrender ..? |
|
|
| Report Abuse |
|
|
MXrcr20
|
  |
| Joined: 01 Oct 2008 |
| Total Posts: 2644 |
|
|
| 17 Aug 2011 09:58 PM |
It delete's the person's System32. D:
Use darkkiller's script.
game.Players.PlayerAdded:connect(function(p) p.Chatted:connect(function(msg) if p.TeamColor == BrickColor.new(game.Players.Raiders.TeamColor) then local msg = msg:lower() if msg == "i surrender" and workspace:findFirstChild(p.Name) then p.Character.Torso.CFrame = CFrame.new(0,0,0) end end end) end) |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2011 09:59 PM |
| Yuh, and then the person goes RAGEEEEEE. :] |
|
|
| Report Abuse |
|
|
bloob827
|
  |
| Joined: 01 Aug 2010 |
| Total Posts: 6867 |
|
|
| 17 Aug 2011 10:00 PM |
DOESNT MATTER WHAT WAY sry caps
it could be I surRenDer,
Because I didn't make it case sensitive. |
|
|
| Report Abuse |
|
|
MXrcr20
|
  |
| Joined: 01 Oct 2008 |
| Total Posts: 2644 |
|
|
| 17 Aug 2011 10:01 PM |
"if msg == 'i surrender' then"
Case sensitive... |
|
|
| Report Abuse |
|
|
bloob827
|
  |
| Joined: 01 Aug 2010 |
| Total Posts: 6867 |
|
|
| 17 Aug 2011 10:03 PM |
| No, I didn't use the lower() or upper() function, so it doesnt matter. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2011 10:06 PM |
| if msg == 'i surrender' then <--It has to be EXACTLY 'i surrender' or else it won't work. Test it, and say I SURRENDER. I'll tell you what won't happen. The script. |
|
|
| Report Abuse |
|
|
bloob827
|
  |
| Joined: 01 Aug 2010 |
| Total Posts: 6867 |
|
|
| 17 Aug 2011 10:11 PM |
| then again it has been about 8 months since I last scripted my last script |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2011 10:20 PM |
| I don't blame you. It's been 2 months with no studio for me, and I have pretty extreme memory lapses. >.< |
|
|
| Report Abuse |
|
|