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: A repeating script

Previous Thread :: Next Thread 
Lem0nzz is not online. Lem0nzz
Joined: 18 Jul 2011
Total Posts: 926
28 Jan 2014 01:56 PM
Before my game script, I want a repeat message if there is only 1 player in the game. Does anyone have something like that??
Report Abuse
BlockBones2 is not online. BlockBones2
Joined: 19 Oct 2008
Total Posts: 404
28 Jan 2014 02:06 PM
if --Something that checks if there is only one player
then local m = Instance.new("Message", Workspace)
m.Text = "There must be 2 players for the game to begin."
wait() until --Something to check if there is more than one player
m:Destroy()



--Continue Code

Report Abuse
XxUMADBROSXx is not online. XxUMADBROSXx
Joined: 18 Oct 2013
Total Posts: 22
28 Jan 2014 02:53 PM
Are you talking about a script like wait..... For another player to join? Cause I have that!
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
28 Jan 2014 02:55 PM
while true do
wait()
--Code
end

●▂▂●
Report Abuse
1234Christopher is not online. 1234Christopher
Joined: 21 Oct 2008
Total Posts: 1715
28 Jan 2014 03:07 PM
game.Players.PlayerAdded:connect(function(plr)
if PlayerCount < 2 then
local msg = Instance.new("Message", workspace)
msg.Text = "Need 1 more player to play"
end
end)

That's all i'm doing.
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