Hello! I haven’t scripted in a while so I’m a bit rusty and I realized I don’t know how to make a time trial. I couldn’t find any tutorials and I don’t really know where to start. I’m bad at working with clients so any help will be appreciated!
1 Like
Use RunService:BindToRenderStepped
and :UnbindToRenderStepped
, make a variable t
which will be the variable for time when you started. Inside the binded function
you’ll have a parameter called dt
, which is the change in time between frames.
You want to first have an input for the trial to begin, then you will bind it.
After which inside the function you would need to have add the time up.
t += dt
Side note, before you bind
the function
you want to set the time to 0
.
local t = 0
Now just get an output and use Unbind
and you’re done.
2 Likes