There may be an obvious error but I cannot find it. What I did first was build a model normally as anyone would for a game. Then I created a script and put together the properties as appears in the model I built. The properties are exactly identical to the model I built yet the positions and colors are off. I attempted to put a :wait() thinking that would solve the problem with positions being off. However, still the problem persists.
local prisonModel = Instance.new("Model", workspace)
wait()
local head = Instance.new("Part", prisonModel)
head.Name = "Head"
head.Anchored = true
head.Transparency = 0.99
wait()
head.Position = Vector3.new(84, 13, 18)
wait()
local humanoid = Instance.new("Humanoid", prisonModel)
humanoid.MaxHealth = 0
wait()
local p1 = Instance.new("Part", prisonModel)
p1.Name = "p1"
p1.Anchored = true
p1.Color = Color3.new(27, 42, 53)
p1.Material = "DiamondPlate"
p1.Size = Vector3.new(49, 1, 0.5)
wait()
p1.Position = Vector3.new(82.5, 12, 35.25)
wait()
local p2 = Instance.new("Part", prisonModel)
p2.Name = "p2"
p2.Anchored = true
p2.Color = Color3.new(27, 42, 53)
p2.Material = "DiamondPlate"
p2.Size = Vector3.new(0.5, 21.5, 0.5)
wait()
p2.Position = Vector3.new(107.25, 23.25, 35.25)
wait()
local p3 = Instance.new("Part", prisonModel)
p3.Name = "p3"
p3.Anchored = true
p3.Color = Color3.new(27, 42, 53)
p3.Material = "DiamondPlate"
p3.Size = Vector3.new(0.5, 21.5, 0.5)
wait()
p3.Position = Vector3.new(57.75, 23.25, -13.25)
wait()
local p4 = Instance.new("Part", prisonModel)
p4.Name = "p4"
p4.Anchored = true
p4.Color = Color3.new(27, 42, 53)
p4.Material = "DiamondPlate"
p4.Size = Vector3.new(0.5, 21.5, 0.5)
wait()
p4.Position = Vector3.new(57.75, 23.25, 35.25)
wait()
local p5 = Instance.new("Part", prisonModel)
p5.Name = "p5"
p5.Anchored = true
p5.Color = Color3.new(27, 42, 53)
p5.Material = "DiamondPlate"
p5.Size = Vector3.new(49, 1, 0.5)
wait()
p5.Position = Vector3.new(82.5, 34.5, 35.25)
wait()
local p6 = Instance.new("Part", prisonModel)
p6.Name = "p6"
p6.Anchored = true
p6.Color = Color3.new(27, 42, 53)
p6.Material = "DiamondPlate"
p6.Size = Vector3.new(49, 1, 0.5)
wait()
p6.Position = Vector3.new(82.5, 34.5, -13.25)
wait()
local p7 = Instance.new("Part", prisonModel)
p7.Name = "p7"
p7.Anchored = true
p7.Color = Color3.new(27, 42, 53)
p7.Material = "DiamondPlate"
p7.Size = Vector3.new(49, 1, 0.5)
p7.Orientation = Vector3.new(0, 90, 0)
wait()
p7.Position = Vector3.new(57.75, 34.5, 11)
wait()
local p8 = Instance.new("Part", prisonModel)
p8.Name = "p8"
p8.Anchored = true
p8.Color = Color3.new(27, 42, 53)
p8.Material = "DiamondPlate"
p8.Size = Vector3.new(49, 1, 0.5)
p8.Orientation = Vector3.new(0, 90, 0)
wait()
p8.Position = Vector3.new(107.25, 34.5, 11)
wait()
local p9 = Instance.new("Part", prisonModel)
p9.Name = "p9"
p9.Anchored = true
p9.Color = Color3.new(0, 32, 96)
p9.Material = "Plastic"
p9.Reflectance = 0.41
p9.Transparency = 0.9
p9.Size = Vector3.new(49, 1, 48)
p9.Orientation = Vector3.new(0, 0, 0)
wait()
p9.Position = Vector3.new(82.5, 34.5, 11)
wait()
local p10 = Instance.new("Part", prisonModel)
p10.Name = "p10"
p10.Anchored = true
p10.Color = Color3.new(27, 42, 53)
p10.Material = "DiamondPlate"
p10.Size = Vector3.new(0.5, 21.5, 0.5)
p10.Orientation = Vector3.new(0, 0, 0)
wait()
p10.Position = Vector3.new(107.25, 23.25, -13.25)
wait()
local p11 = Instance.new("Part", prisonModel)
p11.Name = "p11"
p11.Anchored = true
p11.Color = Color3.new(0, 32, 96)
p11.Material = "Plastic"
p11.Reflectance = 0.41
p11.Transparency = 0.9
p11.Size = Vector3.new(49, 1, 48)
p11.Orientation = Vector3.new(0, 0, 0)
wait()
p11.Position = Vector3.new(82.5, 12, 11)
wait()
local p12 = Instance.new("Part", prisonModel)
p12.Name = "p12"
p12.Anchored = true
p12.Color = Color3.new(0, 32, 96)
p12.Material = "Plastic"
p12.Reflectance = 0.41
p12.Transparency = 0.9
p12.Size = Vector3.new(49, 21.5, 0.5)
p12.Orientation = Vector3.new(0, 0, 0)
wait()
p12.Position = Vector3.new(82.5, 23.25, 35.25)
wait()
local p13 = Instance.new("Part", prisonModel)
p13.Name = "p13"
p13.Anchored = true
p13.Color = Color3.new(0, 32, 96)
p13.Material = "Plastic"
p13.Reflectance = 0.41
p13.Transparency = 0.9
p13.Size = Vector3.new(49, 21.5, 0.5)
p13.Orientation = Vector3.new(0, 0, 0)
wait()
p13.Position = Vector3.new(82.5, 23.25, -13.25)
wait()
local p14 = Instance.new("Part", prisonModel)
p14.Name = "p14"
p14.Anchored = true
p14.Color = Color3.new(0, 32, 96)
p14.Material = "Plastic"
p14.Reflectance = 0.41
p14.Transparency = 0.9
p14.Size = Vector3.new(48, 21.5, 0.5)
p14.Orientation = Vector3.new(0, 90, 0)
wait()
p14.Position = Vector3.new(107.25, 23.25, 11)
wait()
local p15 = Instance.new("Part", prisonModel)
p15.Name = "p15"
p15.Anchored = true
p15.Color = Color3.new(0, 32, 96)
p15.Material = "Plastic"
p15.Reflectance = 0.41
p15.Transparency = 0.9
p15.Size = Vector3.new(48, 21.5, 0.5)
p15.Orientation = Vector3.new(0, 90, 0)
wait()
p15.Position = Vector3.new(57.75, 23.25, 11)
wait()
local p16 = Instance.new("Part", prisonModel)
p16.Name = "p16"
p16.Anchored = true
p16.Color = Color3.new(27, 42, 53)
p16.Material = "DiamondPlate"
p16.Size = Vector3.new(49, 1, 0.5)
p16.Orientation = Vector3.new(0, 0, 0)
wait()
p16.Position = Vector3.new(82.5, 12, -13.25)
wait()
local p17 = Instance.new("Part", prisonModel)
p17.Name = "p17"
p17.Anchored = true
p17.Color = Color3.new(27, 42, 53)
p17.Material = "DiamondPlate"
p17.Size = Vector3.new(49, 1, 0.5)
p17.Orientation = Vector3.new(0, 90, 0)
wait()
p17.Position = Vector3.new(57.75, 12, 11)
wait()
local p18 = Instance.new("Part", prisonModel)
p18.Name = "p18"
p18.Anchored = true
p18.Color = Color3.new(27, 42, 53)
p18.Material = "DiamondPlate"
p18.Size = Vector3.new(49, 1, 0.5)
p18.Orientation = Vector3.new(0, 90, 0)
wait()
p18.Position = Vector3.new(107.25, 12, 11)
