So I am working with raycasting and this line errors when I changed from 1 model to a table, even if the only item in the table is the same model
Below is an example of what works
local __, wrongPos = workspace:FindPartOnRay(Ray.new(hidepart.Position, (coverpart.Position - hidepart.Position).unit), charmodel, false, true)
Below are 2 examples of what don't work
local ignoretable2 = {charmodel}
local __, wrongPos = workspace:FindPartOnRay(Ray.new(hidepart.Position, (coverpart.Position - hidepart.Position).unit), ignoretable2 , false, true)
local ignoretable2 = {charmodel, game.Workspace.Scary}
local __, wrongPos = workspace:FindPartOnRay(Ray.new(hidepart.Position, (coverpart.Position - hidepart.Position).unit), ignoretable2 , false, true)
Output returns with this error "20:19:08.722 - Unable to cast value to Object"
Where did I mess up?
