Stopping Function Help

In simple terms: Precision.

task.wait() is the same as RunService.Heartbeat:Wait()