So, a part of the script are now obsolete and I tried to use the new collision commands but it gave me attempt to call a string value error, this is the code I tried using:
for i, object in ipairs(newEnemy:GetDescendants()) do
if object:IsA("BasePart") then
object.CollisionGroup("Mob")
There are three places where this error happened which are in different scripts but all of them use the same code( well the same code but with different variable). They are line 18 of main controller, line 83 of placement controller and line 34 in enemy controller. The problem is I tried setting the collision group of three things which are players and two other game element but due to this error, it breaks the entire script.