when the player equips a tool i want the animation to play. this script works however im trying to get the part to slide in this gif. i have no idea what to do tho.
animation currently:
https://gyazo.com/1ce8e88eb958cda12f6d2c1c4036f70e
this is the gif of how it should look like:
https://gyazo.com/ac528dc3224e517f47a4ab00f591148a
3 Likes
you would have to utilize Motor6Ds to make the slide animatable. luckily, there are many resources that you can find relating to Motor6Ds.
2 Likes
yes! i have motor6ds there. thats the problem. i have the motor6ds but i dont know how to connect it to make the gun part slide yk? ty btw
1 Like
you would have Part1 connect to the slide, and Part0 connect to the PrimaryPart of the gun (you might be able to connect it to any part, im not sure). ensure this setup is the same in your animation, and when the animation is played, it should work without issue
2 Likes
yes! i found a model which was really helpful. basically all he did was was that he made a motor6d in the right arm. part0 = rightarm, part1 = handle of gun. so tysm!
1 Like
this would allow you to animate the handle of the gun, AKA position/rotation of it, but it wouldnt allow you to animate the slide
1 Like