Hi, I'm trying to edit a script to fit my thing and so far the only thing that comes up is Global 'child' is only used in the enclosing function; consider changing it to local
and then I get a Unknown global 'mesh'
CHILD SCRIPT
script.Parent.MouseButton1Down:connect(function() local gui = script.Parent.Parent local base = gui:FindFirstChild("Page2_Slot1_TextBox") if gui and base then if base.Visible == true then Child = gui:GetChildren() for i = 1,#child do if child[i].Name:sub(1,6) == "Page2_" then child[i].Visible = false child[i].Active = false script.Parent.Text = "Save Slots" script.Parent.BackgroundColor3 = Color3.new(162/255, 171/255, 255/255) end end
UNKNOWN SCRIPT
--Setting sizes for the mesh xsize.Value = xsize.Parent.Text ysize.Value = ysize.Parent.Text
if ysize.Value > 10 then
ysize.Value = 10
elseif ysize.Value <= 0 then
ysize.Value = 3
end
if xsize.Value > 10 then
xsize.Value = 10
elseif xsize.Value <= 0 then
xsize.Value = 3
end
mesh.Scale = Vector3.new(xsize.Value,ysize.Value,0.7)
mesh.Offset = Vector3.new(0,ysize.Value - 3,0)
end
end)
Honestly, I've tried doing as the Script Analysis says, but I just don't know. What am I supposed to do?! D:

2 comments
It seems like you are getting a couple of variables out of thin air: xsize, ysize, and mesh (there's another but I'll mention it later). You need to define these variables in your script. "global" means something that is not defined inside the script or the function.
They should have been underlined in blue.