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

How Do I Edit ToolGrips Inside Scripts?

Asked by 6 years ago

I made a gun inside ROBLOX studio and changed the grip position using CloneTrooper1019's ToolGrip Editor. It works inside studio but in game it rotates to a different position. I was wondering how would I set the grip inside a code so hopefully its fixed or someone could tell me a different solution to the problem. Thank you.

1 answer

Log in to vote
2
Answered by 6 years ago

As seen here the properties GripForward GripRight GripUp They all determine rotation So you could so something like this

local tool = script.Parent
local Forward = tool.GripForward
local right = tool.GripRight
local up = tool.GripUp

while wait(1) do
tool.GripForward = Forward
tool.GripRight = right
tool.GripUp = up
end

Consider accepting this answer if it helped you as it will give us both reputation.

Ad

Answer this question