Is there a way to slide a slider to make the time run faster or slower?
If so, how do I write the script?
Yes.
Preferably in Visual Studios, but you could write it in notepad if you preferred.
Ok, jokes aside you should look at the slider ui component. You can easily grab values as you move the slider around to get it’s current value. There is an option onValueChange event that you can hook code into. Then when you retrieve that value you send it over to whatever controls your time and have it apply that value.
I am familiar with the different UI components, and how to use them. What I am looking for is how to control the time. Sorry if i wasn’t really clear there.
You’re looking for Time.timeScale: Unity - Scripting API: Time.timeScale. Just hook your slider up to that, and anything that relies on Time.time, Time.deltaTime, Time.timeSinceLevelLoad, or the physics engine will be affected.