menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Does this line seem correct?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Does this line seem correct?
Combrad
Join Date: 2009-07-18
Post Count: 11025
#35536815
Saturday, October 16, 2010 7:23 PM GMT
game.Lighting.Winner.Changed:wait() I have never used it before. It should make my script wait until the value is changed.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
flump
Join Date: 2008-07-30
Post Count: 1039
#35536894
Saturday, October 16, 2010 7:24 PM GMT
game.Lighting.Winner.Changed:connect(function() --stuff here end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
elemein
Join Date: 2008-05-18
Post Count: 1932
#35536916
Saturday, October 16, 2010 7:24 PM GMT
It isnt being told to wait anything. Whats inside the brackets of wait? Nothing :)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Combrad
Join Date: 2009-07-18
Post Count: 11025
#35536945
Saturday, October 16, 2010 7:25 PM GMT
I'm not using a function. I am using a wait. It should make the script wait until a value is changed. I used it in my other game with the death function.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
OBF
Join Date: 2009-09-29
Post Count: 10709
#35536949
Saturday, October 16, 2010 7:25 PM GMT
prop = Game.Lighting.Winner.Changed:wait() if prop == "" then end end) I think.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Combrad
Join Date: 2009-07-18
Post Count: 11025
#35536984
Saturday, October 16, 2010 7:25 PM GMT
Thanks OBF.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Fungalmungal
Join Date: 2008-10-18
Post Count: 2519
#35537161
Saturday, October 16, 2010 7:28 PM GMT
Wait always returns a number, though, doesn't it?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Combrad
Join Date: 2009-07-18
Post Count: 11025
#35537838
Saturday, October 16, 2010 7:40 PM GMT
Nope. Its like :connect() it can be used as a :wait() connect tells it to do something. wait tells it to wait for something.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right