Why they are like this

why one local script on ReplicatedStorage, making character animation look weird and clapping their hands

External Media

local Characters = workspace.Characters

local Players = Characters.Players
local NPCs = Characters.NPCs

local Animations = {
	Sprint = "rbxassetid://119254390264746"
}

function onCharacterAdded(child)
	local Humanoid = child:FindFirstChild("Humanoid")
	local Animator = Humanoid:FindFirstChild("Animator")
	
	local Sprint = Instance.new("Animation")
	Sprint.AnimationId = Animations.Sprint
	local SprintTrack = Animator:LoadAnimation(Sprint)
	
	Humanoid.Died:Connect(function()
		print(child)
	end)
	
	Humanoid.Running:Connect(function(speed)
		if speed > 0.1 then
			if not SprintTrack.IsPlaying then
				SprintTrack:Play()
			end
		else
			if SprintTrack.IsPlaying then
				SprintTrack:Stop()
			end
		end
	end)
end

Players.ChildAdded:Connect(onCharacterAdded)
NPCs.ChildAdded:Connect(onCharacterAdded)

for _, characters in pairs(Characters:GetDescendants()) do
	if characters:IsA("Model") and characters:FindFirstChild("Humanoid") then
		onCharacterAdded(characters)
	end
end

Hello, can you please give us more context? We can’t help you if you just tell us “why is there a LocalScript in ReplicatedStorage that makes people’s hands have a glitchy animation”.

However, I think I can understand what you are saying. I will just say that this may not be the answer you are looking for.

Set the animation priority to Action1-4.

2 Likes

2 Roblox animations that I fixed and add Animation marker called foot for player to make sound while running, and 2 of these animations are set to core instead of action
that’s what roblox was using it in many games