Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Raycasting from left and right on character?

I thought that maybe I could get the forward vector of the character some how and then add a vector to that but I'm not sure how I would go about that. Anyone up to help me?

1 answer

✓ Accepted answer

CFrames has RightVector just negative it and you get The LeftVector

local Range = 1000
local LeftVectorForRayCast = -(HumanoidRootPart.CFrame.RightVector)*1000 --Vector3
local RightVectorForRayCast = (HumanoidRootPart.CFrame.RightVector)*1000 --Vector3

2 comments

0

Haha, thanks that does the trick. Though I do have one question. Why do you need the parenthesis around the Vectors?

0

you dont it just looks better

This discussion is preserved as it was. New answers, comments, and votes are closed.