Hello, I’ve recently edited already done Gun System, it works fine on a baseplate when I was testing it, but when I put it in my main game which consists a big map, the guns simply wont load.
Here’s an image of what’s happening:
In studio:
By what I see in the error the child “Others” is missing which creates an infinite yeld by the :WaitForChild (in simple terms, it waits forever because it can’t find it)
after that it waits 0.5 seconds, and the script works on concept of RemoteEvent, so basically when tool is equipped then the server fires the client and client does its stuff which doesn’t work. As seen in image below.
Well, the only clear thing, according to it, is that something is missing. If it only occurs in-game then it is related to replication and internet connection, check if it happens with other people
The more stuff the client has to download the slower the game will be 100% loaded which might impact some local scripts, a lot of games use a loading screen to wait for at least a big ammount of the game to be loaded before finally letting the player play. Still, it is good to test it with someone else and see if the error happens to the person too