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

How would i change the Grip inside a script?

Asked by 8 years ago

I was wondering but how would i change the Values of GripRight inside a script? What i'm trying to do is change the Values of GripRight so that when my character aims my gun it changes the GripRight's Value to " 1,0,0". I tried this by doing

Tool.GripRight = Vector3.new(1,0,0)

But nothing happens. I have checked the wiki for Grip, but there doesn't seem to be anything on changing the Grip inside a script. Can someone please help me?

1 answer

Log in to vote
1
Answered by 8 years ago

Inside of Tool objects, there is a CFrame named Grip. It can be used to easily change the grip without much coding.

local Tool = workspace.Tool
Tool.Grip = CFrame.new(0,0.5,1.2) * CFrame.Angles(math.rad(45),0,0)
0
I had some trouble with my internet, I got it back online and i tested it, But when i did the animation nothing happened. Can you tell me what went wrong? purplemetro3421 5 — 8y
Ad

Answer this question