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

How do I correctly use Tool Grip?

Asked by
popeeyy 493 Moderation Voter
3 years ago

I'm aware there are similar posts to this, but trust me, I have tried all of them and none of them seem to work.

I'm trying to modify the grip of a tool to go to a certain part in Workspace. I cannot find the correct way to do so as I've looked for hours and none of the methods will put my tool inside the part. I believe everything is offset by the different rotations, but I'm unaware how to calculate them. Sometimes the script will put it really close and sometimes it sends the tool into another dimension. What method should I be using to calculate the tool grip correctly?

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Tool = Player.Character.Tool
local Character = Player.Character
local Target = workspace.Part
local Diff = Character.RightHand.CFrame:toObjectSpace(Target.CFrame)

warn(Diff)
Tool.Grip = Diff

https://cdn.bloxynet.xyz/GtYT4P0UMalKJHqToDjn6uKzFm97vo5O.png

0
There are plugins to modify tool grip easily like "Tool Grip Editor" by EgoMoose. braydon12737 24 — 3y
0
Perhaps use CFrame:Inverse()? It creates a offset(?). RAFA1608 543 — 3y
0
Perhaps, do you have CloneTrooper1019's tool grip editor? https://web.roblox.com/library/174577307/Tool-Grip-Editor This one does cost 25 robux though. NintendoSwitchRyan 2 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Perhaps, do you have CloneTrooper1019's tool grip editor? https://web.roblox.com/library/174577307/Tool-Grip-Editor This one does cost 25 robux though.

Ad

Answer this question