Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Infinite Yield on something that exist?

events = game.ServerStorage:WaitForChild('devEVENTS')

This is in a Local Script in a GUI

Why does it Infinite yield to something that exist in the ServerStorage

Picture of it in Server Storage : https://gyazo.com/186b59e05879ca48e7bfdecf04d9716c

Error Output is giving: 18:21:59.390 - Infinite yield possible on 'ServerStorage:WaitForChild("devEVENTS")' 18:21:59.391 - Stack Begin 18:21:59.391 - Script 'Players.DevsAtWork.PlayerGui.devARREST.LocalScript', Line 2 18:21:59.392 - Stack End

6 comments

0

Check the name, this happened to me, I acidentally put a space at the end

0

That is not the issue

0

LocalScripts can't access ServerStorage's contents

0

so how would I go about doing this?

0

use a server script

0

Lol, right, jeez i'm tired

1 answer

✓ Accepted answer

ServerStorage cannot be accessed by LocalScripts, it's meant for Server access only. Consider changing the storage of 'devEVENTS' to ReplicatedStorage as it can be accessed by both Server and Local scripts!

local object = game:GetService('ReplicatedStorage'):WaitForChild('ITEMNAMEHERE')

print(object.Name)

This discussion is preserved as it was. New answers, comments, and votes are closed.