Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Im getting infinite yield possible on my tool even though it should exist?

Asked by 5 years ago

This is causing issues with my weapon. It makes it so it doesn't work and can't give out the effect and damage the enemy. But Handle is apart of the tool in explorer. Yet this always appears no matter what 21:19:54.909 - Infinite yield possible on 'Linked_Sword:WaitForChild("Handle")'

local Tool = script.Parent

local Handle = Tool:WaitForChild("Handle")

https://gyazo.com/903a93325a270625e7d4e6b14bcb46f6

2 answers

Log in to vote
1
Answered by 5 years ago

it says in ur error 'Linked_Sword:WaitForChild("Handle") but in the explorer picture we can see that the tool ur is Ice Staff and not Linked_Sword, i believe thats the issue, i think ur getting an error from another script that waits for the "Handle" inside linked sword and "handle" doesnt exist in there, so find the linked sword script and try disabling it and see what happens

0
You were right it was a complete seperate issue thank you :) AnonymousDeveloper13 22 — 5y
1
np :) lol Gameplayer365247v2 1055 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

this warning usually appears no matter what, it simply means that it is possible to wait for something non existent, putting the script on pause forever. Luckily its not too important, if its not working anyways try checking spelling for stuff in the tool, the script, or if it is working, add a second parameter after "Handle" which will specify a maximum wait time so if the script takes too long it will return nil

0
its not working thats the thing, and if you check the image, the name matches the script AnonymousDeveloper13 22 — 5y
0
Timing it out wont work because it is necessary for a script to work AnonymousDeveloper13 22 — 5y

Answer this question