I'm trying to make a hiding system with a time limit

first of all you gotta write it yourself
second of all put it outside the event connection

I would recommend you use something like os.time() or os.clock() for precise calculations. tick() would be slower, and will likely be Deprecated in the future.

tick() gives the exact time from the unix timestamp, so yes it would be smarter to just use os.time as an integer variation of tick(), thanks for the correction

@Anti_Lorax14 so basically assign the values, set up the loop, check the difference of times and voila.

also I suggest you use lerping for changing your saturation since you can just assign the return value of an interpolation to the ColorCorrectionEffect

oh and yes, also use os.time instead of tick() :cowboy_hat_face:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.