When I try to cast a ray using this script, an error saying Unable to cast value to Objects keeps on coming up. Here's the code
local Rae1 = Ray.new(M8.Union.Position + Vector3.new(3,5 ,0), M8.Union.Position + Vector3.new(-3,5 ,0))
local hit, pos1 = game.Workspace:FindPartOnRayWithIgnoreList(Rae1, (Floor))
what am I doing wrong?

4 comments
oh wait a minute
I think it's because my variable is called M8
nope
well, this question hasn't been answered in 2 hours. I doubt it will be answered.