RightVector not working with RayCast

This is what I got when I tried the script I had myself (remember my script isn’t the full)

1 Like

looking at this kinda got a revalation instead of doing this i could add in another for i like so voiding the needance for RightVector

for i2 = 1,100 do
	wait()
	for i = 1,100 do
		wait()
		local ray = Ray.new(Part.Position,Part.CFrame.RightVector * 50)
		if not workspace:FindPartOnRay(ray,Table[i]) then
			local Par = Instance.new("Part",workspace)
			local Par2 = Instance.new("Part",workspace)
			table.insert(Table,Par)
			table.insert(Table,Par2)
			Par.Name = "Fart1"
			Par2.Name = "Fart"
			setParams(Par)
			setParams(Par2)
			Par.CFrame = Part.CFrame * CFrame.new(i2*25,0,i*25)
			Par2.CFrame = Part.CFrame * CFrame.new(i2*25,0,i*-25)
		end
	end
end

Thanks for all the help man

You’re welcome :slight_smile: aa(chatlimit)