I've made a script where it's supposed to display an NPC swinging a hammer. For some reason, it's not syncing up. EDIT: It works properly in studio, but not in online mode.
-- Variables --
local hum = script.Parent:WaitForChild("Humanoid")
animation = hum:LoadAnimation(script.Animation)
Balthushammer = script.Parent:WaitForChild("BalthusHammer")
-- Variables --
-- Hammer Swing Animation --
while wait(1) do
if script.Parent ~= nil then
Balthushammer.Hammer.Sound.TimePosition = 0.4
Balthushammer.Hammer.Sound.Playing = true
animation:Play()
end
end
-- Hammer Swing Animation --
######Edited ~ Format your links correctly

2 comments
Is the hammer welded to the hand?
Yes