CanCollide Issue

Alright so basically yesterday I set up physics doors using hinge constraint in which I use the player’s physics to push the door so I setup this in a testing environment before putting it on the real game everything was working fine with the testing environment but when I put that on the real game my player could go past the doors and it’s a really annoying issue so this is the video clip of the ingame

Testing environment :

In-Game :

Collision Group In-Game :


Collision Group In-Test :

Nevermind I added this script seems like the script I needed to solve my problem

local PlayerService = game:GetService("Players")
local PhysicsService = game:GetService("PhysicsService")

PlayerService.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(Character)
		for _, objects in ipairs(Character:GetChildren()) do
			if objects:IsA("BasePart") then
				PhysicsService:SetPartCollisionGroup(objects, "Player")
				
			end
		end
	end)
end)```

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.