How do i check the speed of an animationtrack?

I asked ChatGPT cuz i couldnt find anything else and thier solution didnt work

	if WalkTrack.IsPlaying == true then
		task.spawn(function()
			task.wait(WalkTrack.PlaybackSpeed/2)
			FootStepNoise:Play()
			task.wait(WalkTrack.PlaybackSpeed/2)
		end)
	end

You should not use ChatGPT for scripting things like that.

PlaybackSpeed is not a property of an AnimationTrack, but Speed is.

if WalkTrack.IsPlaying == true then
		task.spawn(function()
			task.wait(WalkTrack.Speed/2)
			FootStepNoise:Play()
			task.wait(WalkTrack.Speed/2)
		end)
	end
2 Likes

Oh thanks, yeah i usually just use chatgpt as a back up in case i cant find any info

1 Like

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