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

Previous Thread :: Next Thread 
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 05:47 PM
How do I make this appear, ONLY, when there is one person in the server?

while true do
wait()
script.Parent.Text = "W"
wait(0.15)
script.Parent.Text = "Wa"
wait(0.15)
script.Parent.Text = "Wai"
wait(0.15)
script.Parent.Text = "Wait"
wait(0.15)
script.Parent.Text = "Waiti"
wait(0.15)
script.Parent.Text = "Waitin"
wait(0.15)
script.Parent.Text = "Waiting"
wait(0.15)
script.Parent.Text = "Waiting"
wait(0.15)
script.Parent.Text = "Waiting f"
wait(0.15)
script.Parent.Text = "Waiting fo"
wait(0.15)
script.Parent.Text = "Waiting for"
wait(0.15)
script.Parent.Text = "Waiting for o"
wait(0.15)
script.Parent.Text = "Waiting for on"
wait(0.15)
script.Parent.Text = "Waiting for one"
wait(0.15)
script.Parent.Text = "Waiting for one m"
wait(0.15)
script.Parent.Text = "Waiting for one mo"
wait(0.15)
script.Parent.Text = "Waiting for one mor"
wait(0.15)
script.Parent.Text = "Waiting for one more"
wait(0.15)
script.Parent.Text = "Waiting for one more p"
wait(0.15)
script.Parent.Text = "Waiting for one more pl"
wait(0.15)
script.Parent.Text = "Waiting for one more pla"
wait(0.15)
script.Parent.Text = "Waiting for one more play"
wait(0.15)
script.Parent.Text = "Waiting for one more playe"
wait(0.15)
script.Parent.Text = "Waiting for one more player"
wait(0.15)
script.Parent.Text = "Waiting for one more player."
wait(0.15)
script.Parent.Text = "Waiting for one more player.."
wait(0.15)
script.Parent.Text = "Waiting for one more player..."
end
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
24 Mar 2014 05:51 PM
stringy = "Waiting for one more player..."

game.Players.PlayerAdded:connect(function(plyr)
while #[game.Players:GetPlayers()] == 1 do
for i = 1, string.len(stringy) do
script.Parent.Text = string.sub(stringy,1,i)
wait(0.15)
end
wait(0.15)
end
end)

Pretty sure that'll work.
Report Abuse
VoidShredder is not online. VoidShredder
Joined: 06 Jan 2014
Total Posts: 1467
24 Mar 2014 05:51 PM
1st line is

while game.Players.NumPlayers<2 do
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
24 Mar 2014 05:53 PM
--Credit to lupine

stringy = "Waiting for one more player..."

game.Players.PlayerAdded:connect(function(plyr)
while #[game.Players:GetPlayers()] == 1 do
for i = 1, string.len(stringy) do
script.Parent.Text = string.sub(stringy,1,i)
wait(0.15)
end
wait(0.15)
end
end)
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
24 Mar 2014 05:53 PM
Woops, didnt mean to fully copy that but his is a good way of doing it...use his way.
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 05:53 PM
@lup

thanks!
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
24 Mar 2014 05:54 PM
why did you just copy+paste what I posted..?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 05:54 PM
wait... line 4 is underlined
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
24 Mar 2014 05:55 PM
Whats the error msg say?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 05:56 PM
unexpected symbol near '['
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 05:58 PM
what do?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 06:00 PM
Hello?
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
24 Mar 2014 06:00 PM
Oops, those brackets shouldn't be there. Use this instead:

stringy = "Waiting for one more player..."

game.Players.PlayerAdded:connect(function(plyr)
while #game.Players:GetPlayers() == 1 do
for i = 1, string.len(stringy) do
script.Parent.Text = string.sub(stringy,1,i)
wait(0.15)
end
wait(0.15)
end
end)
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 06:02 PM
the gui doesn't even appear now LOL
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 06:05 PM
someone help quick?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 09:47 PM
Hello?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
24 Mar 2014 09:54 PM
please???
Report Abuse
roboslayer10 is not online. roboslayer10
Joined: 08 Aug 2011
Total Posts: 206
24 Mar 2014 10:04 PM
I find it easy doing this:


if #game.Players:GetChildren() < 2 then
repeat wait()
text = "Waiting for more than one player..."
t = ""

for i = 1,#text do
local t = t + text:sub(i,i)
gui.Text = t
wait(.1)
end

until #game.Players:GetChildren() > 1
t = ""
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