of     2   
chevron_rightchevron_rightchevron_right

ItsWayne
#182630072Friday, January 29, 2016 9:13 PM GMT

This script is supposed to make a light flicker but the light flickers waaaay too slow. Is there a way I can make it flicker faster? local Light = script.Parent Light.Brightness = 7 while true do wait(0.1) do Light.Range = math.random(2, 12) end end
SwagCuzYolo
#182630134Friday, January 29, 2016 9:14 PM GMT

no wait(0.1) .........................
wonderful72pike
#182630167Friday, January 29, 2016 9:14 PM GMT

local Light = script.Parent Light.Brightness = 7 while true do wait(0.01) do Light.Range = math.random(2, 12) end end Now it goes x10 faster
Plungeit
#182630181Friday, January 29, 2016 9:15 PM GMT

wait (0.1) is quite slow try wait (0.001)
FireController1847
#182630226Friday, January 29, 2016 9:15 PM GMT

Yes you can, by making the while true do wait(0.1) do into this: while true do wait(0.01) do But you can't go faster than that. It's just roblox, deal with it.
emantsevich1
#182631245Friday, January 29, 2016 9:32 PM GMT

RenderStepped
iPenguinSuperTime
#182631345Friday, January 29, 2016 9:33 PM GMT

.. wait()
wonderful72pike
#182631627Friday, January 29, 2016 9:38 PM GMT

"RenderStepped" jesus
ElectoStriking
#182631898Friday, January 29, 2016 9:42 PM GMT

^
CreativitiesUnity
#182632685Friday, January 29, 2016 9:55 PM GMT

why aren't we using wait() again? https://www.youtube.com/watch?v=EbLo9fU_3jw&feature=youtu.be&t=152
iPenguinSuperTime
#182634819Friday, January 29, 2016 10:29 PM GMT

^^^^
Happywalker
#182635175Friday, January 29, 2016 10:34 PM GMT

"wait(0.01)" Trolol
ItsWayne
#182637219Friday, January 29, 2016 11:05 PM GMT

"wait(0.01)" No, same speed...
Happywalker
#182637624Friday, January 29, 2016 11:12 PM GMT

I was just laughing at the people saying that
emantsevich1
#182638387Friday, January 29, 2016 11:22 PM GMT

is renderstepped to good to use =p
emantsevich1
#182638474Friday, January 29, 2016 11:24 PM GMT

... im joking btw
LegendaryAccount
#182638552Friday, January 29, 2016 11:25 PM GMT

render step is every frame your screen renders. that would be visually the fastest
Ikren00
#182638995Friday, January 29, 2016 11:32 PM GMT

local Light = script.Parent Light.Brightness = 7 Powered = true while wait() and Powered do Light.Range = math.random(2, 12) end
jody7777
#182653475Saturday, January 30, 2016 3:30 AM GMT

u can't use render stepped in server scripts, if I remember
MrJoeyJoeJoey
#182653742Saturday, January 30, 2016 3:36 AM GMT

Okay, all of you are idiots (well not all but whatever most of you idiots), anyway the shortest you can wait is ~1/30th of a second, (unless you use rennderstep but lets not use that with a new scripter) First do this while true do wait(1/30) Light.Range = math.random(2, 12) end
Darkenus
#182653939Saturday, January 30, 2016 3:39 AM GMT

render stepped is the fastest - smoothest - and most awesome thing ever great in camera manipulation never used it in changing a light - however, i think itd work http://wiki.roblox.com/index.php?title=API:Class/RunService/RenderStepped
MrJoeyJoeJoey
#182654063Saturday, January 30, 2016 3:41 AM GMT

in a serverscript it wont work
iPenguinSuperTime
#182682398Saturday, January 30, 2016 5:38 PM GMT

wait() will wait the shortest amount of time possible, which if 1/30th of a second is correct, then that's the same thing that you just did.
Lord_Narwhal
#182682577Saturday, January 30, 2016 5:41 PM GMT

can't you just use renderstep from a localscript and invoke the server to change the light
MrJoeyJoeJoey
#182684220Saturday, January 30, 2016 6:08 PM GMT

^ cringe cringe cringe cringe cringe

    of     2   
chevron_rightchevron_rightchevron_right