RayCast is not a valid member of Workspace?

Don’t know what this is about, but its stopping me from raycasting.

Anyone know the issue?

Help will be greatly appreciated!

local Params = RaycastParams.new()
Params.FilterType = Enum.RaycastFilterType.Whitelist
Params.FilterDescendantsInstances = LevelWorkspace:GetChildren()
			
local ViewRay = workspace:RayCast(CameraPart.CFrame * CFrame.new(Count, 0, 0), CFrame.new(RenderDistance, 0, 0), Params)

Lowercase c, that is all to it.

2 Likes

whoops, thank you for point out that error!