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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Day/night script isn't working in online mode.

Previous Thread :: Next Thread 
liampowers is not online. liampowers
Joined: 06 Mar 2011
Total Posts: 21
26 Oct 2014 12:43 PM
My day and night script doesn't seem to be working in online mode, only on Play Solo mode.
I copied the script and put it in to a localscript, and inserted it into starterpack and startergui, but it doesn't seem to be working there either.

(I'm learning how to script, so please don't hate on me if I made a really stupid mistake)

script:

while true do
game.StarterGui.ScreenGui.Time.Text = '11 PM'
local message = Instance.new('Message',game.Workspace)
message.Text = 'Almost 12, get back to the office and work.'
wait(5)
message:Destroy()
wait(10)
game.StarterGui.ScreenGui.Time.Text = '12 AM'
game.Lighting.OutdoorAmbient = Color3.new(0,0,0)
game.StarterGui.ScreenGui.Daynight.Text = "Nighttime"
wait(20)
game.StarterGui.ScreenGui.Time.Text = '1 AM'
wait(20)
game.StarterGui.ScreenGui.Time.Text = '2 AM'
wait(20)
game.StarterGui.ScreenGui.Time.Text = '3 AM'
wait(20)
game.StarterGui.ScreenGui.Time.Text = '4 AM'
wait(20)
game.StarterGui.ScreenGui.Time.Text = '5 AM'
wait(20)
game.StarterGui.ScreenGui.Time.Text = '6 AM'
game.Lighting.OutdoorAmbient = Color3.new(0.5,0.5,0.5)
game.StarterGui.ScreenGui.Daynight.Text = "Daytime"
local message = Instance.new('Message',game.Workspace)
message.Text = '6 AM'
game.Workspace.Bonnie:MoveTo{Vector3.new(-60.1, 3.3, 186.5)}
game.Workspace.Chica:MoveTo{Vector3.new(-60.3, 3.3, 172.7)}
game.Workspace.Freddy:MoveTo{Vector3.new(-58.3, 3.3, 179.1)}
wait(5)
message:Destroy()
wait(10)
game.StarterGui.ScreenGui.Time.Text = '7 AM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '8 AM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '9 AM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '10 AM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '11 AM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '12 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '1 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '2 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '3 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '4 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '5 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '6 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '7 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '8 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '9 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '10 PM'
wait(10)
game.StarterGui.ScreenGui.Time.Text = '11 PM'
end






Report Abuse
liampowers is not online. liampowers
Joined: 06 Mar 2011
Total Posts: 21
26 Oct 2014 02:53 PM
Also, nothing appears in the output regarding this script.
everything besides the screen gui not changing is working.
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