Hi,
I have a script which is turning off player collisions but it’s working only for blocky characters I don’t know
why because there’s a statement v:IsA("BasePart") not v:IsA("Part"). Can someone help?
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PhysicsService = game:GetService("PhysicsService")
local Players = game:GetService("Players")
local REGISTRY = ReplicatedStorage.REGISTRY
local PLAYERS_CAN_COLLIDE = REGISTRY.PLAYERS.PLAYERS_CAN_COLLIDE.Value
if not PLAYERS_CAN_COLLIDE then
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
for _, v in ipairs(character:GetChildren()) do
if v:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(v, "Players")
end
end
end)
end)
end