LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:07 PM |
ok i want a script to be enabled at a time of day how
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2014 04:08 PM |
idk but i think you could try using the wait() function
-R |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:09 PM |
I have tried but for some reason it did not work.
I did
if time == "13:00:00" then script.Disabled = false
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:10 PM |
owot
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2014 04:10 PM |
hmmm
try local time = game.Lighting.TimeOfDay
then try that script again
-R |
|
|
| Report Abuse |
|
|
Larney
|
  |
| Joined: 19 Oct 2011 |
| Total Posts: 19999 |
|
|
| 16 Sep 2014 04:10 PM |
Try using a loop that forever checks if the time value is a certain value.
Їℕ✞∃ℛℜ☮ℬѦℕḠ‽ |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:13 PM |
i will try everything again
idk why it didnt work b4
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2014 04:14 PM |
maybe capitalize Script???
-R |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:20 PM |
i put
while true do wait(1) if game.Lighting.TimeOfDay == "19:00:00" then script.Parent.lis.Disabled = false end end
it still didnt work
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
Larney
|
  |
| Joined: 19 Oct 2011 |
| Total Posts: 19999 |
|
|
| 16 Sep 2014 04:21 PM |
| try the scripting helpers website |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2014 04:22 PM |
while true do wait(1) if game.Lighting.TimeOfDay == "19:00:00" then script.Parent.Disabled = false end end
i corrected a typo and an error in your script, i think it should work now
-R |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:23 PM |
i did this
while true do wait(1) if game.Lighting.TimeOfDay == "19:00:00" then print("The time has come...") script.Parent.lis.Disabled = false end end
and it didn't print so it is something wrong with the condition
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
Larney
|
  |
| Joined: 19 Oct 2011 |
| Total Posts: 19999 |
|
|
| 16 Sep 2014 04:24 PM |
@remainings
lol I don't think that was a mistake
Їℕ✞∃ℛℜ☮ℬѦℕḠ‽ |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:24 PM |
Oh... I know what's wrong.. I put wait(1) so it missed the time cause its in a loop so it always waits before checking
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2014 04:24 PM |
i dont think its script.Parent.lis.Disabled = false
it should be script.Parent.Disabled = false
-R |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:25 PM |
it might be fixed now i put wait(1) before loop
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:26 PM |
lis is the name of the script its a bit confusing
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
Larney
|
  |
| Joined: 19 Oct 2011 |
| Total Posts: 19999 |
|
|
| 16 Sep 2014 04:26 PM |
@remainings
lol you must not script
@OP
I assumed the time was changing at larger increments than 1. Put the wait at like 0.1.
Їℕ✞∃ℛℜ☮ℬѦℕḠ‽ |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2014 04:27 PM |
oh
@larney
i do really simple scripts
-R |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:28 PM |
YAY ITS FIXED
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:30 PM |
yes. the time was changing at 0.2 and i had it waiting 1 second so everytime it missed it
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
| |
|
LegoADS
|
  |
| Joined: 03 May 2011 |
| Total Posts: 25703 |
|
|
| 16 Sep 2014 04:32 PM |
ONO
yo yo, the name is le-go-go. donnot mess with me m8 or u may feel a lil constipate!!! |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2014 04:32 PM |
use repeat wait() until
--time of day == 19
instead. it's better. |
|
|
| Report Abuse |
|
|