Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with making gun animations?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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

0
the positive 1's are the new position and the negative is to set it back to origin WeBuiltOurOwnWorld 6 — 9y
Ad

Answer this question