I have honestly tried everything. I have found this topic so many times on the devforum and tried every single solution which is pretty much the same but I can’t seem to be able to make players phase through each other
Here’s my current code in a server script which for some reason doesn’t work:
function NoCollide(char)
for _,v in pairs (char:GetChildren()) do
if v:IsA("BasePart") then
v.CollisionGroup = "NonCollidablePlayers"
end
end
end
function Collide(char)
for _,v in pairs (char:GetChildren()) do
if v:IsA("BasePart") then
v.CollisionGroup = "Default"
end
end
end
I’ve tried setting the Collision group’s collidable settings both by the Model menu and manually via code but nothing works. The timing of when the functions fire is correct it just doesn’t work for some reason. If you can find any errors with this or something I’m doing wrong I’d appreciate your help.