I am having problems with this line of code. In the output, it is giving me the error: Unable to cast Dictionary to RaycastParams

local raycastResult = workspace:Raycast(script.Parent.Handle.Position,(mousePos - script.Parent.Handle.Position)*300,RaycastParams) 

1 comment

0

You need to instantiate a RaycastParams Object, not title a Dictionary "RaycastParams".