Did you follow it exactly or did you modify it somehow?
Do you get any errors in the output window?
Did you use LocalScripts instead of Scripts? Use the kind the tutorial uses.
Also did you just copy/paste the script(s), which would mean your items (gun magazine, gun and other stuff) probably don’t have the same names or locations as the items in the script(s).
i followed it to a tee, also i didnt modify it, only the severscript i did it like this:
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local M6D = Instance.new("Motor6D", char.Torso)
M6D.Name = "ToolGrip"
char.ChildAdded:Connect(function(child)
if child:IsA("Tool") and child:FindFirstChild("BodyAttach") then
M6D.Part0 = char.Torso
M6D.Part1 = child.BodyAttach
end
end)
end)
end)
Also here is the local script in the tool:
local animidle = script.Parent:WaitForChild("Idle")
local player = game.Players.LocalPlayer
local tool = script.Parent -- use a direct path to the tool
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local animtrackidle = hum:LoadAnimation(animidle)
tool.Equipped:Connect(function()
animtrackidle:Play()
end)
tool.Unequipped:Connect(function()
animtrackidle:Stop()
end)