How to modify a tools "GripPos" ingame by script?
Alright, I'm trying to make a spear which will jab from scratch, but have encountered a bit of an issue -- how do I deal with "animating" a tool through the GripPos rotation options?
I'm currently using this as my script --
01 | local debouncea = false |
02 | local gripos = script.Parent.GripPos |
06 | script.Parent.Activated:connect( function () |
12 | gripos = CFrame.new(gripos.X, gripos.Y, (script.Parent.GripPos.Z + -. 2 )) |
19 | gripos = CFrame.new(gripos.X, gripos.Y, (script.Parent.GripPos.Z - -. 2 )) |
I'm not very good with tools, and the wiki lacked in-depth documentation on this subject. Chances are, I'm just approaching this the wrong way. This isn't doing anything (except the prints are just fine).
Thanks for reading, and I hope to find a solution!