Play players running animation when platformstanding [Solved]

image
I want to make something like this.

Is there any good way to play players running animation when platformstanding. That is compatible for both R6 and R15 characters?

I have tried editing the animate script in players character but that didnt work as i expected.

i figured out that i can just get the players running animation id and then play it on loop when the player is platformstanding

--works on r6 and on r15

local hum = script.Parent.Humanoid
local anim = hum:LoadAnimation(script.Parent.Animate.run.RunAnim)

anim.Priority = Enum.AnimationPriority.Action3
anim.Looped = true

hum:GetPropertyChangedSignal("PlatformStand"):Connect(function()
	
	if hum.PlatformStand == true then
		anim:Play()
	else
		anim:Stop()
	end

end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.