Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with making gun animations?

Hi!

I have been trying, unsuccessfully, to make an animated gun. I have read every wiki article, every forum post, and searched this site to the best extent I can, yet I can't figure out how to animate guns? I'd like to be able to play animations on a player without the tool cancelling the animation. E.g. something like turbofusions guns.

I apologise for the lack of code, but I don't think that I could show any anyway!

Cheers,

Max

1 answer

set it as a key pressed function and use the parts C0 property both the new position and then back to the origin point also remember to put anything to do with movement in a local script(specifically the players movement.

Player = game.Players.LocalPlayer
Character = Player.Character
function arm(key)
key = key:lower()
if key == "choose a keyboardkey" then
--find the part you wanna move from player(dont know about moving weapon i think it might move with arm
RS = Character.Torso:FindFirstChild("Right Shoulder")
RS.C0 = RS.C0 *CFrame.Angles(1, 1, 1)
wait()
RS.C0 = RS.C) *CFrame.Angles(-1, -1, -1)
end

1 comment

0

the positive 1's are the new position and the negative is to set it back to origin

This discussion is preserved as it was. New answers, comments, and votes are closed.