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
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
|
| 06 Mar 2017 08:27 PM |
| the first message I meant. |
|
|
| Report Abuse |
|
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|