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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Apr 2014 06:18 PM
[ Content Deleted ]
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
10 Apr 2014 06:19 PM
too much 2 read
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Apr 2014 06:20 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Apr 2014 06:21 PM
[ Content Deleted ]
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
10 Apr 2014 06:22 PM
yo man trim that tower down
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Apr 2014 06:23 PM
[ Content Deleted ]
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
10 Apr 2014 06:24 PM
but ur bad script0r bro
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Apr 2014 06:25 PM
[ Content Deleted ]
Report Abuse
yurhomi10 is not online. yurhomi10
Joined: 10 Dec 2008
Total Posts: 13886
10 Apr 2014 06:26 PM
did you even define numplayers in the first couple lines of the script?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
10 Apr 2014 06:26 PM
where are the freemodels
where is the source
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:26 PM
quote:

"Suggestion:
Don't ask others to debug your broken code without giving a hint what sort of problem you are having. Posting a few hundred lines of code, saying "it doesn't work", will get you ignored. Posting a dozen lines of code, saying "after line 7 I was expecting to see (something), but (something else) happened instead" is much more likely to get you a reply."

that's too long bra,tell us where the prob is,..
also:


http://wiki.roblox.com/index.php?title=Writing_Clean_Code
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Apr 2014 06:27 PM
[ Content Deleted ]
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:28 PM
well,its really long,theres no indents or extra lines or comments etc
and ur getting the output now?
good good
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Apr 2014 06:28 PM
What is this output? And 'my script is good' is your opinion. But a fact is that it can be shortened a lot
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Apr 2014 06:28 PM
[ Content Deleted ]
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:30 PM
ok,first thing
creating several hints in VERY inneficient,why not use a table to store the texts,and loop thru it and set hint1.Text to it

also

while true do gonna lag ur game bro

while wait() do--doesn't freeze
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:31 PM
like
txts = {"hi","by","sup sup"}
h = Instance.new("Hint",Workspace)
for I,v in pairs(txts) do
h.Text = v
wait(timeHere)
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Apr 2014 06:31 PM
Or just do:

while true do
if game.Players.NumPlayers>1 then
--etc code
else
game.Players.PlayerAdded:wait()
end
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:32 PM
@cnt
genius :P
but that's still rather inifeccient,why not just while wait() do
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Apr 2014 06:33 PM
Actually, it's like 100x more efficient then yours, since it will not run the loop UNTIL someone joins when the player count is 0 while yours is running always at ~s/30
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Apr 2014 06:33 PM
Won't run the loop more than once*
Report Abuse
yurhomi10 is not online. yurhomi10
Joined: 10 Dec 2008
Total Posts: 13886
10 Apr 2014 06:36 PM
o lol
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:46 PM
oh,thats right >_<
but still,that makes it longer(the script itself)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Apr 2014 06:49 PM
efficiency > size

Plus it's only 2 lines
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:50 PM
still,still..
his script WAS already long :P

but yeah,i have to admit,itll loop it once,then wait until player joins
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