local player = script.Parent.Parent

local serverstorage = game:GetService("ServerStorage")
local laser = serverstorage:WaitForChild("Classes"):WaitForChild("Laser")
local rocket = serverstorage:WaitForChild("Classes"):WaitForChild("Rocket")

game:GetService("ReplicatedStorage"):FindFirstChild("RoundTag").Changed:connect(function(value)
	if value == true then
		if player.Class.Value == "Laser" then
			player.StarterGear:ClearAllChildren()
			local weapon = laser.Phaser
			weapon:Clone().Parent = player.Backpack
			weapon:Clone().Parent = player.StarterGear
		elseif player.Class.Value == "Rocket" then
			player.StarterGear:ClearAllChildren()
			local weapon = rocket.Launcher
			weapon:Clone().Parent = player.Backpack
			weapon:Clone().Parent = player.StarterGear
		end
	end
end)

I have this script and it should give a player a weapon depending on their class. It gives the player a weapon in Solo mode, but when I add a second perosn it just does nothing so they dont get their weapons. Please help