Issue:
Calling BasePart:CanCollideWith
with invalid arguments causes the Roblox instance to crash (Whether in Roblox Studio, Roblox Client or in a Roblox server.)
Expected Behavior:
This shouldn’t crash the instance and instead error saying the provided argument must be a part.
Reproduction:
local Pa:Part = Instance.new'Part'
Pa.Parent = workspace
Pa:CanCollideWith(game)
Run this in Roblox Studio or in a Roblox developer console in a live/test game.
Attached Picture: