This way certainly doesn't work:
wait(0.1)
local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
local Anim = script.Animation
Mouse.KeyDown:connect(function(key)
if key == "r" then
local s = player.Character.Humanoid:LoadAnimation(Anim)
s:Play()
local fc = Instance.new("Part")
fc.Shape = "Block"
fc.Size = Vector3.new(10 , 10 , 1)
fc.Parent = player.Character
fc.CanCollide = false
local weld = Instance.new("Weld")
weld.Part0 = fc
weld.Part1 = player.Character:FindFirstChild("RightGripAttachment")
weld.C0 = weld.C0*CFrame.new(0, 0, 2)
weld.Parent = fc
end
end)

1 comment
KeyDown is deprecated...