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 » Scripters
Home Search
 

Re: script stops running?

Previous Thread :: Next Thread 
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:08 PM
refuses to execute rather, after the first sound plays.
this is a server script.

nothing in output.

game.Lighting.Changed:connect(function()
local thetime = game.Lighting.TimeOfDay
if thetime == "08:00:00" then
v = Instance.new("Message", workspace)
v.Text = "School in session!"
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=179284894"
sound.Parent = script.Parent
sound:Play()
wait(5)
sound:Destroy()
v:Destroy()
end
if thetime == "9:30:00" then
Math = Instance.new("Message", workspace)
Math.Text = "Math"
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=179284894"
sound.Parent = script.Parent
sound:Play()
wait(5)
Math:Destroy()
sound:Destroy()
end
if thetime == "11:00:00" then
Science = Instance.new("Message", workspace)
Science.Text = "Science"
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=179284894"
sound.Parent = script.Parent
sound:Play()
wait(5)
Science:Destroy()
sound:Destroy()
end
if thetime == "12:30:00" then
lunch = Instance.new("Message", workspace)
lunch.Text = "Lunch"
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=179284894"
sound.Parent = script.Parent
sound:Play()
wait(5)
lunch:Destroy()
sound:Destroy()
end
if thetime == "13:30:00" then
gym = Instance.new("Message", workspace)
gym.Text = "Gym"
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=179284894"
sound.Parent = script.Parent
sound:Play()
wait(5)
Gym:Destroy()
sound:Destroy()
end
if thetime == "14:30:00" then
StudyHall = Instance.new("Message", workspace)
StudyHall.Text = "Study Hall!"
sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=179284894"
sound.Parent = script.Parent
sound:Play()
print'playing'
wait(5)
StudyHall:Destroy()
sound:Destroy()
end
if thetime == "15:30:00" then
schoolend = Instance.new("Message", workspace)
schoolend.Text = "School over!"
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=179284894"
sound.Parent = script.Parent
sound:Play()
wait(6)
schoolend:Destroy()
sound:Destroy()
end
end)
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:11 PM
b
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:12 PM
plox help quickly
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:19 PM
no1?
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:20 PM
b
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:23 PM
this is easier to read. doing the same thing.

game.Lighting.Changed:connect(function()
local thetime = game.Lighting.TimeOfDay
if thetime == "08:00:00" then
v = Instance.new("Message", workspace)
v.Text = "School in session!"
wait(5)
v:Destroy()
print'done'
end
if thetime == "9:30:00" then
Math = Instance.new("Message", workspace)
Math.Text = "Math"
wait(5)
Math:Destroy()
end
if thetime == "11:00:00" then
Science = Instance.new("Message", workspace)
Science.Text = "Science"
wait(5)
Science:Destroy()
end
if thetime == "12:30:00" then
lunch = Instance.new("Message", workspace)
lunch.Text = "Lunch"
wait(5)
lunch:Destroy()
end
if thetime == "13:30:00" then
gym = Instance.new("Message", workspace)
gym.Text = "Gym"
wait(5)
Gym:Destroy()
end
if thetime == "14:30:00" then
StudyHall = Instance.new("Message", workspace)
StudyHall.Text = "Study Hall!"
print'playing'
wait(5)
StudyHall:Destroy()
end
if thetime == "15:30:00" then
schoolend = Instance.new("Message", workspace)
schoolend.Text = "School over!"
wait(6)
schoolend:Destroy()
end
end)
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:24 PM
it creates the first script, and destroys it, but wont print.
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:27 PM
the first message I meant.
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:29 PM
some1 plox
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:31 PM
no1....
Report Abuse
PriorityMethod is not online. PriorityMethod
Joined: 17 Sep 2013
Total Posts: 356
06 Mar 2017 08:32 PM
One would think scripters were actually empty if you weren't posting literally every 2 minutes. Which is probably why nobody has answered.
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
06 Mar 2017 08:33 PM
if you're not going to offer help, get out.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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