Im new to this and I found a crawl script and the output says: Infinite yield possible on 'ServerScriptService.CrawlServer:WaitForChild("CrawlMove")' How can I fix this?
local rStorage = game:GetService("ReplicatedStorage") local rEvents = rStorage:WaitForChild("RemoteEvents")
game.Players.PlayerAdded:Connect(function(plr) local crawlValue = Instance.new("BoolValue",plr) crawlValue.Value = false crawlValue.Name = "CrawlEnabled"
local char = workspace:WaitForChild(plr.Name)
local human = char:WaitForChild("Humanoid")
local idleLoaded = human:LoadAnimation(script:WaitForChild("CrawlIdle"))
local moveLoaded = human:LoadAnimation(script:WaitForChild("CrawlMove"))
human.Running:Connect(function(speed)
if speed > 0 and crawlValue.Value == true then
moveLoaded:Play()
else
moveLoaded:Stop()
end
end)
crawlValue:GetPropertyChangedSignal("Value"):Connect(function()
if crawlValue.Value == true then
human.WalkSpeed = 8
idleLoaded:Play()
else
human.WalkSpeed = 16
idleLoaded:Stop()
moveLoaded:Stop()
end
end)
end)
rEvents.CrawlEvent.OnServerEvent:Connect(function(plr,enabled) local crawlValue = plr:WaitForChild("CrawlEnabled")
crawlValue.Value = enabled
end)

2 comments
An infinite yield denotes that the child it's searching for was not found and has taken an unreasonable amount of time to locate; the Script will warn you of a potential scenario where it may hang forever. Check the Instance Name if it is a child of the Script, and make sure there aren't any accidental trailing whitespace characters
please accept his answer so it isnt on the front page anymore