|
| 01 May 2012 11:00 AM |
I want to happen, if you say "start", (But only a certain player), the game will start.
local m = Instance.new("Message") m.Text = "Welcome to the FLAG Sword Fight Tournament!" local eventrunning = false local deb = false
function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name) msg = string.lower(msg)
if (msg == "watch") then speaker.Status.Value = 0 wait(1.5) end if (msg == "join") then speaker.Status.Value = 1 wait(1.5) end
'I need it in here'
if (msg == "start") and (deb == false) then
local players = game.Players:getChildren() local competitors = 0 for i, v in pairs(players) do if v.Character ~= nil then if v.Status.Value == 1 then competitors = competitors + 1 end end end
"Less QQ, moar pew pew, boom, bang, exploshionz and trolling" |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 01 May 2012 11:07 AM |
>Just scripting helpers is so slow..
Scripters is even slower :PP |
|
|
| Report Abuse |
|
|
|
| 01 May 2012 11:07 AM |
:P
"Less QQ, moar pew pew, boom, bang, exploshionz and trolling" |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 01 May 2012 11:09 AM |
| There isn't even any connection ? |
|
|
| Report Abuse |
|
|
|
| 01 May 2012 11:10 AM |
?
"Less QQ, moar pew pew, boom, bang, exploshionz and trolling" |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 01 May 2012 11:11 AM |
| If that's the full script it doesn't do anything even if somebody would say something right? |
|
|
| Report Abuse |
|
|
|
| 01 May 2012 11:12 AM |
IT's not the full script xD I just gave some of it.
"Less QQ, moar pew pew, boom, bang, exploshionz and trolling" |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 01 May 2012 11:14 AM |
Well you probably have something like
game.Players.PlayerAdded:connect(function(p) p.Chatted:connect(function(c) onChatted(c,p,blahblah) end) end)
Erase that and just put
game.Players.SpecificPlayer.Chatted:connect(function(c) onChatted(c,game.Players.SpecificPlayer,blahblah) end) |
|
|
| Report Abuse |
|
|