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 » Club Houses » ROBLOX Talk
Home Search
 

Re: SCRIPTIN QUESTIONS: HOW TO DO STUFF ON EVENT

Previous Thread :: Next Thread 
LegoADS is not online. 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
Remainings is not online. Remainings
Joined: 10 Dec 2011
Total Posts: 18015
16 Sep 2014 04:08 PM
idk but i think you could try using the wait() function

-R
Report Abuse
LegoADS is not online. 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 is not online. 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
Remainings is not online. Remainings
Joined: 10 Dec 2011
Total Posts: 18015
16 Sep 2014 04:10 PM
hmmm

try local time = game.Lighting.TimeOfDay

then try that script again

-R
Report Abuse
Larney is not online. 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 is not online. 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
Remainings is not online. Remainings
Joined: 10 Dec 2011
Total Posts: 18015
16 Sep 2014 04:14 PM
maybe capitalize Script???

-R
Report Abuse
LegoADS is not online. 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 is not online. Larney
Joined: 19 Oct 2011
Total Posts: 19999
16 Sep 2014 04:21 PM
try the scripting helpers website
Report Abuse
Remainings is not online. Remainings
Joined: 10 Dec 2011
Total Posts: 18015
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 is not online. 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 is not online. 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 is not online. 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
Remainings is not online. Remainings
Joined: 10 Dec 2011
Total Posts: 18015
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 is not online. 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 is not online. 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 is not online. 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
Remainings is not online. Remainings
Joined: 10 Dec 2011
Total Posts: 18015
16 Sep 2014 04:27 PM
oh

@larney

i do really simple scripts

-R
Report Abuse
LegoADS is not online. 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 is not online. 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
Remainings is not online. Remainings
Joined: 10 Dec 2011
Total Posts: 18015
16 Sep 2014 04:31 PM
u missed ur 19k!!!

-R
Report Abuse
LegoADS is not online. 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
Jazzyforcefield is not online. Jazzyforcefield
Joined: 12 Jan 2010
Total Posts: 18838
16 Sep 2014 04:32 PM
use
repeat wait() until

--time of day == 19

instead. it's better.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » ROBLOX Talk
   
 
   
  • 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