--Try to find an instance of the ClientWeaponsScript (tagged as "ClientWeaponsSystem") under the PlayerScripts. If this is found, it means
--that this instance of ClientWeaponsScript (of this version) was not the first one to run.

local PlayerScripts = LocalPlayer:WaitForChild("PlayerScripts")
local ClientWeaponsScript = nil
for i, child in pairs(PlayerScripts:GetChildren()) do
	if child:IsA("LocalScript") and child.Name == script.Name and CollectionService:HasTag(child, "ClientWeaponsSystem") then
		local childVersion = child:FindFirstChild("Version")
		if childVersion and childVersion:IsA("IntValue") and childVersion.Value == ScriptVersion then
			ClientWeaponsScript = child
			break
		end
	end
end
