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.