Hello! I have this plushie tool that you’re able to hug for a few seconds upon clicking while holding it by changing the tool’s Grip position through a script. The hug animation looks like this right now:
This is my script:
local Tool = script.Parent;
enabled = true
function onActivated()
if not enabled then
return
end
enabled = false
Tool.GripPos = Vector3.new(1.5,0,-0.5)
wait(2)
Tool.GripPos = Vector3.new(0,0,-0.5)
enabled = true
end
script.Parent.Activated:connect(onActivated)
With GripPos, I managed to relatively get it into the position I wanted during and after being hugged, even though I barely understand Vector3 and just punched in numbers until it looked right.
However, I don’t know how to change the tool’s orientation through the script. I know I would have to use GripForward, GripRight and GripUp for that, and I’ve already tried them, but like I said, I don’t understand how Vector3 works and wasn’t able to get the results I wanted by just trying random numbers. Is there any easier way to do this?