Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Raycasting from left and right on character?

Asked by 2 years ago

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

Log in to vote
0
Answered by
Puppynniko 1059 Moderation Voter
2 years ago

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
0
Haha, thanks that does the trick. Though I do have one question. Why do you need the parenthesis around the Vectors? ragdollkiiing2 19 — 2y
0
you dont it just looks better Puppynniko 1059 — 2y
Ad

Answer this question