--This is not the whole script but when a character joins, I want there Packages to be removed (Destroyed) from their character.
	plr.CharacterAdded:connect(function(char)
		char.Sound.LocalSound:Destroy()
		
		--// Removes Packages from characters.
		for i,v in pairs(char:GetChildren()) do
			if v.ClassName == 'CharacterMesh' then -- The classname should be that..
				v:Destroy()
			end
		end
	end)

2 comments

0

The problem with this script in minor detail. The script is looking for character meshes that don't exist yet. In other words, you need to move your loop to a function and call that function when the character has been added.

0

Make sure you wait at the top of your function. You might even want to check twice just in case the player was really lagged when he joined.