Mobile version and app version of roblox animation not loaded properly, only the web version works

Roblox fails to load the animation for mobile device and app version, but only the web version works… i don’t have any clue how to fix this, I tried use pcalls and other stuff… Seems it’s not working.
I’m gladly happy if someone has a simple fix to this.

The Web version works perfectly fine, but app version doesn’t load the animation and mobile too.

Module :

local module = {}

local rp = game:GetService("ReplicatedStorage")
local weaponsConfig = require(rp.AnimationModule:WaitForChild("CharacterWalkAnimConfig"))
local idleConfig = require(rp.AnimationModule:WaitForChild("CharacterIdleAnimConfig"))
local HitConfig = require(rp.AnimationModule:WaitForChild("CharacterHitAnimConfig"))

function module.Animation(char, nameType)
	local hum = char:WaitForChild("Humanoid")
	local animator = hum:WaitForChild("Animator")
	
	local WalkName = weaponsConfig[nameType]
	local IdleName = idleConfig[nameType]
	
	hum.WalkSpeed = 9
	
	local animationWalk = Instance.new("Animation")
	animationWalk.AnimationId = "rbxassetid://"..tostring(WalkName)
	animationWalk.Parent = char
	animationWalk.Name = "Walk"
	
	local animationIdle = Instance.new("Animation")
	animationIdle.AnimationId = "rbxassetid://"..tostring(IdleName)
	animationIdle.Parent = char
	animationIdle.Name = "Idle"
	
	local WalkAT = animator:LoadAnimation(animationWalk)
	WalkAT:Play()
	
	local IdleAT = animator:LoadAnimation(animationIdle)
	IdleAT:Play()
	
	hum.Running:Connect(function(speed)
		if speed > 0 then
			if not WalkAT.IsPlaying then
				WalkAT:Play()
				IdleAT:Stop()
			end
		else
			if WalkAT.IsPlaying then
				WalkAT:Stop()
				IdleAT:Play()
			end
		end
	end)
end

function module.HitAnimation(char, nameType)
	local hum = char:WaitForChild("Humanoid")
	local animator = hum:WaitForChild("Animator")

	local HitName = HitConfig[nameType]

	local animationHit = Instance.new("Animation")
	animationHit.AnimationId = "rbxassetid://"..tostring(HitName)

	local HitAT = animator:LoadAnimation(animationHit)
	HitAT:Play()
end

return module

App :

Web :

Is this a roblox problem or just my scripts?