Long-story short. I kinda broke my collision service.
So basically Im used a script from toolbox that I was used before (and he was working). But now he doesn’t.
Then I tried to write one by myself but result is same.
Here the script:
local ps = game:GetService("PhysicsService")
local group_name = "PlayerCollisions"
ps:CreateCollisionGroup(group_name)
ps:CollisionGroupSetCollidable(group_name,group_name,false)
function NewCharacter(character: Model)
for _,v in pairs(character:GetDescendants()) do
if v:IsA("BasePart") then
ps:SetPartCollisionGroup(v,group_name)
end
end
character.DescendantAdded:Connect(function(v)
if v:IsA("BasePart") then
ps:SetPartCollisionGroup(v,group_name)
end
end)
end
for _,enemy in pairs(workspace.Map.Enemies:GetChildren()) do
NewCharacter(enemy)
end
workspace.Map.Enemies.ChildAdded:Connect(NewCharacter)
local rp = game.ReplicatedStorage
game.Players.PlayerAdded:Connect(function(plr)
local data = script.Data:Clone()
data.Parent = plr
plr.CharacterAppearanceLoaded:Connect(NewCharacter)
end)