I want to animate a gun but
in animation editor the animation plays as it should and gun is the way it should but
in game the gun position and orientation gets messed up
Heres what it looks in the animator editor https://i.gyazo.com/3a52c70c128ef6ae78b16b2c5b16dc79.png
If you have an extra 15 Robux you could try and get CloneTrooper’s tool grip editor plugin which will help A LOT with grips. Even if it doesn’t solve this problem is is a very useful tool.
It should be in a Local Script, and should look like something like this:
local Character = game.Players.LocalPlayer.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/asset/?id=507771019"
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()