I am making a game themed around this dimension that you might randomly step into a new time period. To do this, I wanted to track how long a player walks around, and after so long they will "step" (Teleport) into a new dimension! If it's easy enough, how would I make the time random, say some time between 1 minute and 3.5 minutes!
More clarification: A script that counts how many seconds a player has been walking (discluding standing still, or jumping). After 1-3.5 minutes, it will teleport them to a new area.
After you teleport them, wait
a random amount of time. Consider that wait
is measured in seconds, and therefore you'll need to wait a random interval between 1*60
and 3.5*60
Do:
if humanoid.MoveDirection.Magnitude > 0 then -- humanoid is the child of the player's character ---------- ur script end