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
 

Adding certain players.

Previous Thread :: Next Thread 
cooldude816 is not online. cooldude816
Joined: 03 Jan 2009
Total Posts: 27759
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 is not online. 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
cooldude816 is not online. cooldude816
Joined: 03 Jan 2009
Total Posts: 27759
01 May 2012 11:07 AM
:P

"Less QQ, moar pew pew, boom, bang, exploshionz and trolling"
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
01 May 2012 11:09 AM
There isn't even any connection ?
Report Abuse
cooldude816 is not online. cooldude816
Joined: 03 Jan 2009
Total Posts: 27759
01 May 2012 11:10 AM
?

"Less QQ, moar pew pew, boom, bang, exploshionz and trolling"
Report Abuse
su8 is not online. 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
cooldude816 is not online. cooldude816
Joined: 03 Jan 2009
Total Posts: 27759
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 is not online. 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
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