Rotate a tool part while equipped?

A simple but hard question…How rotate a tool part when equipped it?
like every click it rotate 90° ,not like that:
6xgZT8pvrg

3 Likes

Already used it for edit the key grip

2 Likes

Edit the tool grip to rotate the handle

1 Like
local handle = script.Parent.Handle
local tool = script.Parent
tool.Activated:Connect(function()
handle.Orientation = Vector3.new(-- whatever you want --)
end)
2 Likes

thats exaclty the same script i showed in the gif

1 Like

You didn’t show any scripts in the gif, I didn’t see one. Apologies for the inconvenience.

2 Likes


forget the vector3.new(posicaox,posicaoy,posicaoz) part

1 Like

Try make the arm holding the tool rotate 90° in the animation

1 Like

Nope, tried change to exactly 90° still not working

1 Like

Try do what @TheSenorDuck suggested.

1 Like

nope,still bugging , no ideia what to do

1 Like

What do you mean by bugging if possible please show a photo or a video of it

1 Like

i found another way to fix it,just placing copys of it (only the rotate part) and turning them visible when i click

3 Likes

You can also place a motor6d in the tool and animate it in the animation editor. and when the tool is equipped, make a motor6d and connect part1 to the right arm and part1 to the model (this is done via script). if the tool is unequipped, remove the motor6d!

1 Like