I am working on a devil fruit loader. And I keep getting this Infinite Yield. It's messing up the whole loader. So it doesn't work.
Error: 14:44:25.012 - Infinite yield possible on ReplicatedStorage.DevilFruits:WaitForChild("_Fruit")'
script:
local dfmoves = game:GetService("ReplicatedStorage").DevilFruits:WaitForChild(data:WaitForChild("DevilFruit").Value.."_Fruit")
local dfgui = game:GetService("ReplicatedStorage").DevilFruits.GUIs:WaitForChild(data:WaitForChild("DevilFruit").Value.."_GUI")
for i, v in pairs(dfgui:GetChildren()) do
v.Disabled = false
v:Clone().Parent = player.Backpack
end
-- Give Moveset
for i, v in pairs(dfgui:GetChildren()) do
wait(1)
v.Enabled = true
v:Clone().Parent = player.PlayerGui
end
end

1 comment
Thats why I make my own custom functions -.-