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: Why is this happening?

Previous Thread :: Next Thread 
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:06 PM
Ive just now finished my 6079 line script for day / night and was wondering why it wasnt working I have the Output up and everything but no errors are coming up and its not adjusting the time.
Report Abuse
evilspartan9000 is not online. evilspartan9000
Joined: 09 Apr 2010
Total Posts: 10655
21 Jan 2013 01:07 PM
What is the script?
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:08 PM
I can show an example of it I do not want to show it completely though do to copying people.
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:10 PM
It is just not showing up but I have no idea why?
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 01:12 PM
A night and day script shouldn't be that long..

Was that your mom? Tell her she needs to exercise a little more, those legs had a little flab.
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:12 PM
Heres a sample


-- Made by William99978 -- This Script is actual time meening that it takes 60 minutes for it to turn an hour! --

game = game.Lighting.TimeOfDay

minute = 1

while true do

--Hour One--

game = "01:00:00"

wait ("minute")

game = "01:01:00"

wait ("minute")

game = "01:02:00"

wait ("minute")

game = "01:03:00"

wait ("minute")

game = "01:04:00"

wait ("minute")

game = "01:05:00"

wait ("minute")

This is the start ill show the end in the next post.
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:13 PM
This is the end
wait ("minute")

game = "24:55:00"

wait ("minute")

game = "24:56:00"

wait ("minute")

game = "24:57:00"

wait ("minute")

game = "24:58:00"

wait ("minute")

game = "24:59:00"

wait ("minute")

game = "24:60:00"

wait ("minute")

end

-- Made by William99978 in partnership with Tri - Peak Industries. --

And in reply to last comment the reason it is so long is because it changed the times 1 second at a time so that causing it to have the best possible looking Day / Night
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 01:14 PM
Fail...

for i = 01, 59 do
wait(1)
game = "01:"..i..":00"
end

Was that your mom? Tell her she needs to exercise a little more, those legs had a little flab.
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:17 PM
Explain it more please that is confusing and please reference the script.
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:18 PM
but do you meen that on minute it needs to be
minute = "00:01:00" or no?
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
21 Jan 2013 01:19 PM
@Crouton actually it would be wait(60) because, he wants it to wait a full minute.
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:20 PM
Well I want the player to be able to do four modes the 60 sec minute mode
45 sec minute mode
30 sec minute mode
and a
15 sec minute mode
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:23 PM
So can someone answer it more breafly?
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 01:33 PM
function second()
repeat
wait(1)
game.Lighting.TimeOfDay:sub(8,9) = tonumber(game.Lighting.TimeOfday:sub(8,9) + 01))
until game.Lighting.TimeOfDay:sub(8,9) = "60"
game.Lighting.TimeOfDay:sub(5,6) = tonumber(game.Lighting.TimeOfDay:sub(5,6) + 01))
end

Maybe this can work for seconds.

Was that your mom? Tell her she needs to exercise a little more, those legs had a little flab.
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:37 PM
If it does ima be SOOOOOO MAD IT TOOK ME A FULL DAY TO WRITE THAT 6079 LINE SCRIPT
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 01:40 PM
But this is not working for me.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 01:47 PM
I made one that does seconds and minutes..

It took me like 5 minutes 2 tries.

Was that your mom? Tell her she needs to exercise a little more, those legs had a little flab.
Report Abuse
OzzyBlox is not online. OzzyBlox
Joined: 04 Nov 2009
Total Posts: 14166
21 Jan 2013 01:49 PM
Mother of god you wasted alot of time.

You could have used the 'for' variable to save ALOT more time.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 01:51 PM
Wait nevermind it does seconds minutes and hours.

It took my 5 minutes..

10 lines. X3


Was that your mom? Tell her she needs to exercise a little more, those legs had a little flab.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 01:52 PM
I did 1 in 10 lines using repeat and tonumber

Was that your mom? Tell her she needs to exercise a little more, those legs had a little flab.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 01:54 PM
Here:

function timeofday()
repeat
wait()
game.Lighting.TimeOfDay = (tonumber(game.Lighting.TimeOfDay:sub(1,2))..":"..tonumber(game.Lighting.TimeOfDay:sub(4,5))..":"..tonumber(game.Lighting.TimeOfDay:sub(7,8)) + 01)
until
tonumber(game.Lighting.TimeOfDay:sub(7,8)) == 60
game.Lighting.TimeOfDay = (tonumber(game.Lighting.TimeOfDay:sub(1,2))..":"..tonumber(game.Lighting.TimeOfDay:sub(4,5)) + 01 ..":"..tonumber(game.Lighting.TimeOfDay:sub(7,8)))
end

timeofday()

Was that your mom? Tell her she needs to exercise a little more, those legs had a little flab.
Report Abuse
william99978 is not online. william99978
Joined: 02 Sep 2010
Total Posts: 217
21 Jan 2013 03:04 PM
Well thank you but now I wished I wouldve asked first lol.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 03:18 PM
Change the wait() to wait(1)
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
21 Jan 2013 03:24 PM
@crouton

YOUR POSTS.... ALMOST 1337 :DD


@op; Original Poster (Because not many know what it means...)

The only reason it took you a full day to write a 6079 line script is because you didn't know the efficiency of the for loop. ^.^

~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 03:28 PM
My script used repeat and got the job done in ten lines :o

And omg!!!!!!
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