How can I prevent my script from yielding for a function to complete?

[topic remvoed because it contained code which shouldn’t be for public use

Use the task.spawn() for this, and put the newNotification function as parameter 1 and the parameters for the function after that. It will run in a separate thread.

3 Likes

So this would work? I have never used task.spawn.

		task.spawn(NewNotification,plr,"Please wait, loading Admin Panel","Loading PreloadService Admin Panel v"..CurrentVers,"rbxassetid://9894144899", 8)
2 Likes

Yes, that is how you use it. It should work.

3 Likes