I’ve made a simple line of code to shoot a ray to the right of the player:
local result = workspace:Raycast(Char.HumanoidRootPart.Position, (Char.HumanoidRootPart.CFrame.RightVector * 5, MyParams)
what i’m trying to do here is figure out how to make the ray shoot to the left, instead of to the right
i’ve tried many times to learn stuff relating to cframe directions and i haven’t gotten very far
If you have a vector (points in some directions with some magnitude), then the negative of that vector points in the opposite direction. So the “leftVector” should just be -RightVector. In your example above, multiplying the RightVector by -5 instead of 5 should give a ray going in the other direction.