Need Help In PhysicsService

Hi Im CTG
idk im touch anything in my cancollide script but now it not work anymore

player.CharacterAdded:Connect(function(character)
		for i, object in ipairs(character:GetDescendants()) do
			if object:IsA("BasePart") then
				PhysicsService:SetPartCollisionGroup(object, "Player")
			end
		end
	end)
for i, object in ipairs(newTower:GetDescendants()) do
			if object:IsA("BasePart") then
				PhysicsService:SetPartCollisionGroup(object, "Tower")
			end
		end
for i, object in ipairs(newMob:GetDescendants()) do
				if object:IsA("BasePart") then
					PhysicsService:SetPartCollisionGroup(object, "Mob")
				end
			end

idk why this not work anymore so if u know tell me

If you haven’t changed the script have you changed anything else?
You should check your collision group editor in Studio.
Make sure you haven’t renamed your newTower or newMob in folders, models, wherever you’ve stored them and made variables/names for them.
If you test the game you will be able to see what CollisionGroup each is assigned to.

1 Like

i have check it alot and nothing change

also when im check npc it not cancollide but i still can touch them

ok i found a bug it stuck line ima fix it rn