PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GripPos

Tool

Vector3

The GripPos property controls the positional offset of a Tool weld matrix. It is one of several properties used to position how the player holds the tool.

Other tool properties that control how a player holds a tool include: Grip/GripUp|Up, Grip/GripRight|Right, and Grip/GripForward|Forward properties. All of these properties are stored in a single CFrame in the Tool/Grip property.

In order to change a tool’s grip properties, you must either use a Script or LocalScript or a plugin such as this one.


Code Samples


Grip Stick

The code below insert’s a Tool named “Stick” into the Players/LocalPlayer|LocalPlayer's BackPack. When the player pressed their left mouse button and activates the tool, the code prints the values of the tool’s grip properties.

local tool = Instance.new("Tool")
tool.Name = "Stick"
tool.Parent = game.Players.LocalPlayer.Backpack

local handle = Instance.new("Part")
handle.Name = "Handle"
handle.Parent = tool
handle.Size = Vector3.new(.1,3,.1)
handle.Color = Color3.new(108, 88, 75) -- Brown

tool.Activated:Connect(function()
	print(tool.Grip)
	print(tool.GripUp)
	print(tool.GripRight)
	print(tool.GripForward)
	print(tool.GripPos)
end)