Raycast not accepting lookvector?

this is likely my fault somehow but this is the gist. I am plugging in the camera’s lookvector into a raycast however it doesn’t like it. The vector changes hands a few times however is never modified.

start:

replicatedstorage.RemoteEvents.Throwable:FireServer(child, workspace.CurrentCamera.CFrame.LookVector)

in a modulescript:

local cast = workspace:Raycast(model.PrimaryPart, vector * 1000, params)

error:

First argument of workspace:Raycast() is a Vector3. You provided model.PrimaryPart, which is an instance. Use Model.PrimaryPart.Position.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.