local RS = game:GetService("ReplicatedStorage")
local PhysicsService = game:GetService("PhysicsService")
PhysicsService:CreateCollisionGroup("Character")
PhysicsService:CreateCollisionGroup("Statue")
PhysicsService:CollisionGroupSetCollidable("Character","Statue",false)
game:GetService("Players").PlayerAdded:Connect(function(player)
player.CharacterAppearanceLoaded:Connect(function(Character)
Character.Archivable = true
local clone = Character:clone()
Character.Archivable = false
for i,v in pairs(player.Character:GetChildren()) do
if v:IsA("Part") and v.CanCollide then
PhysicsService:SetPartCollisionGroup(v,"Character")
end
end
for i,v in pairs(clone:GetDescendants()) do
local successCollide = pcall(function() local t = v.CanCollide end)
if successCollide and v.CanCollide then
PhysicsService:SetPartCollisionGroup(v,"Statue")
end
end
end)
end)
I’m having a problem with the Physics Service, eventhough i set the collisions to be false and the parts to the collision groups they still collide.