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 7 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 7 years ago

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

01local tool = script.Parent
02local Forward = tool.GripForward
03local right = tool.GripRight
04local up = tool.GripUp
05 
06while wait(1) do
07tool.GripForward = Forward
08tool.GripRight = right
09tool.GripUp = up
10end

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

Ad

Answer this question