Changing Walk Animation To Custom Then Back Normal

So I made a script that changes to a custom walk animation but then my issue is I cant set it back to the players chosen roblox animations. Im assuming this issue is maybe because it doesnt load roblox animations since there not mine so how can I work around this issue?

	if toggle == 'On' then
		char.allValues.Pvp.Value = true
		if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 852397729) then
			char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://18373604770"
			char.Animate.run.RunAnim.AnimationId = "rbxassetid://18373604770"
		end
	end
	if toggle == 'Off' then
		char.allValues.Pvp.Value = false
		if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 852397729) then
			local walk = char.Humanoid.HumanoidDescription.WalkAnimation
			local run = char.Humanoid.HumanoidDescription.RunAnimation
			char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://"..walk
			char.Animate.run.RunAnim.AnimationId = 	"rbxassetid://"..run
		end
	end

After its toggled off when I walk no animation plays and the output sends this

1 Like