Roblox Script Emita City RP

while wait() do
for _,v in ipairs(game.Workspace.Mines:GetChildren()) do
   if v.Name == "Iron" and v.Ores.Value > 0 then  --replace iron b y what you want
       game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Stone.CFrame*CFrame.new(0,-5,0)
   end
end
end