Hello!
This function would work, however you are using while wait(.0001) do, which is not really a best thing what you can do.
More about this topic can be found over here: Avoiding wait() and why
2 Likes