Here we go. I'm creating a Menu GUI and I used the TweenService(?). More of that whenever I use WaitForChild or FindFirstChild on Line 2, both would, regardless, give me a warning and error, respectively. Help would be appreciated.
local btn = script.Parent
local service = game:GetService("ServerStorage")
local gui = service:WaitForChild("Gui") --Infinite Yield Warning
local guion = false
function TweenGui()
guion = true
local newgui = gui:Clone() --Error for FindFirstChild
newgui.Parent = script.Parent.Parent.Parent
local frame = newgui:WaitForChild("Frame")
frame.Position = UDim2.new(-5,0,.5,0)
frame:TweenPosition(UDim2.new(0.5,0,0.5,0), "In", "Linear" , 2)
end
function TweenBackGui()
guion = false
local newgui = script.Parent.Parent.Parent.Parent.PlayerGui.Gui
local frame = newgui:WaitForChild("Frame")
frame:TweenPosition(UDim2.new(-5,0,0.5,0), "In", "Linear" , 2)
wait(5)
frame.Parent:Destroy()
end
function GetStatus()
if guion == false then
TweenGui()
else
TweenBackGui()
end
end
script.Parent.MouseButton1Click:Connect(GetStatus)
Thanks!

5 comments
Is Gui a child of ServerStorage?
Yes.
Make sure the gui is correctly named "Gui" or try naming it something else.
Will try when I get home
After doing some research I noticed that LocalScripts can't access ServerStorage. Problem Solved.