Problem it is going to the first land and not the one that has the players name. I need it to pull the Value from "ColorValue" and "MaterialValue" that's inside that players land. So when I wright "= land.ColorValue.Value" its going to the first child not the one by name so I get an error saying that = ColorValue isn't there.
local player = game.Players.LocalPlayer B2b = require(game.ServerScriptService.Blocks.B2B) Block = {} Block.__index = Block setmetatable(Block, B2b) function Block.new(...) local newblock = B2b.new(...) setmetatable(newblock, Block) for _, land in pairs(workspace.Buildings:GetChildren()) do if land.Name.Value == player then newblock.blockColor = land.ColorValue.Value newblock.blockMaterial = land.MaterialValue.Value end end return newblock end return Block