Tool grip not setting right

The title basically is the problem:
my tools grip isnt being set properly even though i have the correct cframe in place

regularGrip = CFrame.new(Vector3.new(0.1, 0, -0.25)) * CFrame.Angles(math.rad(15), math.rad(60), 0),
self["weapon"].Grip = self["regularGrip"]

1 Like

I think you don’t use CFrame.new when multiplying a Vector3 and a CFrame, just directly multiply the Vector3 and the CFrame without any CFrame.new, then store it in a variable.

Doesn’t CFrame.new(Vector3) convert it a cframe that can be multipled to a cframe.angle
the grips position is set perfectly its just the orientation that is messed up

Oh wait, oops
Didn’t see your formatting clear enough, looks like you just wrapped the Vector3 in the CFrame.new, not the CFrame.Angles as well.
Anyway, did you get any errors?
(Oh and by the way, there is the potential that Roblox is just changing the angles to an equivalent angle, like how Vector3.new(0, -270, 0) is equivalent to Vector3.new(0, 90, 0))

I dont that is the case as it does not do that to the vector, also you cant wrap a vector in cframe.angles

Wait what do you mean?
(By the first part, not about the unable to wrap a vector3 in cframe.angles)

Hi. How come you’re not using the plugin Tool Grip Editor? You can visually edit the grip there.

Because i am using a script to set them, and im going to have multiple different grips

Okay, but you can set grip in the grip editor, and copy the properties into your script, when you’re satisfied with the reault.

  • self.Parent:GetModelCFrame():ToObjectSpace(self.Parent.HumanoidRootPart.CFrame)

(i know it isnt in place of the code but i thought this would be the most efficient way of showing what the problem is)