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
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)