You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Hello developers! I have a project where I want to get a camera from ReplicatedStorage and use it for my local script located in StarterGui. -
What is the issue? Include screenshots / videos if possible!
I keep get an error saying ‘infinite yield possible on ReplicatedStorage.Cameras:WaitForChild(“preservedCamera”)’ -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried using :FindFirstChild() or :WaitForChild(), but those have not worked, at least to my knowledge.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RemoteEvents = ReplicatedStorage:FindFirstChild("RemoteEvents")
local HatchPet = RemoteEvents:WaitForChild("HatchPet")
local Cameras = ReplicatedStorage:FindFirstChild("Cameras")
local preservedCamera = Cameras:WaitForChild("preservedCamera")
