of     1   

Unbunn_makes
#224091021Tuesday, August 22, 2017 9:09 PM GMT

what's an infinite yield? When I test out my script it gets really laggy and the output says infinite yield possible. script: game:GetService('ReplicatedStorage').hair1.OnServerEvent:connect(function(player) local c = script:WaitForChild'Hat':clone() wait() c.Parent = player.Character end)
Voidage
#224091044Tuesday, August 22, 2017 9:10 PM GMT

that means "Hat" isn't being found
Unbunn_makes
#224091465Tuesday, August 22, 2017 9:19 PM GMT

If the hat isn't found then why does it clone onto the player?
Voidage
#224091507Tuesday, August 22, 2017 9:20 PM GMT

that makes no sense. if there is an infinite yield on "Hat" then it cant be cloned
Mouse_Potatoe
#224091638Tuesday, August 22, 2017 9:23 PM GMT

I am cringing so hard at this code. Like its so depreciated(literally) game:GetService('ReplicatedStorage'):FindFirstChild("hair1").OnServerEvent:connect(function(player) local hat = script:FindFirstChild("Hat") if hat then hat:Clone().Parent = player.Character end end) getfield(lua_State, -1, "MemeService")
Unbunn_makes
#224093193Tuesday, August 22, 2017 9:57 PM GMT

Do I have to put a function before hand? error: Attempt to connect failed: Passed value is not a function
graveyardposse
#224093731Tuesday, August 22, 2017 10:09 PM GMT

keep your syntax proportionate throughout the entire script, don't just go from using WaitForChild'' to game:GetService('ReplicatedStorage')
StormN10
#228168020Tuesday, November 28, 2017 12:22 AM GMT

I ama also having problem with an infinite yield and iv read is because of :WaitForChild() but honestly I don’t know what else to do or if there is a substitute for it. Can you all please help? Here is my code, Local torso = player.Character:WaitForChild(‘Torso’)

    of     1