This script won’t work without a task.wait() that has a number higher than 1 before it and i’m not sure how to fix this. Is there any way to fix this or do i just have to use task.wait()
If you play scripts that start earlier than the instances they require load in, you can use the function :IsLoaded() and the event .Loaded to check and wait until the game is finished loading for the player.
---Top of the script---
if not game:IsLoaded() then
game.Loaded:Wait()
end
This will start the script only when all the instances it requires (the game) have been loaded.