I have this bit of code, i'm trying to find the child of a part with the same name as a string value. How do I fix this?
local gui = LocalPlayer.PlayerGui:FindFirstChild('UI2')
local ArmorName = gui.Frame.Armors.EquipScript.armorname.Value
local armors = game.ServerStorage.Armors:GetChildren()
for i = 1, #armors do
if armors[i].Name == ArmorName then
--do stuff
end

4 comments
is this a server script or local script
if it's a local script,you cant access the ServerStorage
if it's a server script, you can't access a localplayer
It's a server script in server storage, and don't worry, the localplayer is called from a remote event so that definitely is not a problem.