Using Shapecast via the client does not correctly validate if the first provided argument is a BasePart which can cause crashes

If the first provided argument in workspace:Shapecast (Worldroot::Shapecast) is nil then it instant crashes Roblox Player/Roblox Studio, this only affects the client.

A very easy way to fix this is via checking if the first argument is a BasePart in the client instead of only the Server.

Example code:

workspace:Shapecast(nil,Vector3.one)--it does not have to be Vector.one, it can be any Vector3/vector

I read Argument 1 on WorldRoot:Shapecast() can be called with invalid arguments, causing crash which basically is the same issue im having however it was marked as “fixed” but it wasn’t fully fixed as it was only fixed for servers running such code.

Expected behavior

Make the client have the same error like the server if the first argument in Shapecast is invaild.

1 Like

Thank you, we have a fix going out this week.

3 Likes