I have a script below, declaring my gui variables:
local gui=player:WaitForChild("PlayerGui")
local ui=gui:WaitForChild("ui")
but whenever I run my game, this message appears:
Infinite yield possible on 'Players.RosyCatCLash.PlayerGui:WaitForChild("ui")'
How do I stop that message from appearing?
Thank you

2 comments
You're wrong. WaitForChild with a timeout has no implicit performance stunts. It just waits until
namount of seconds after yielding. You're just giving him the same code that he posted. Stop being bad.ok