TintinDevs
(TintinDevs)
December 7, 2021, 11:18pm
#1
I don’t have the slightest idea on how to do this. Any hints/suggestions would be helpful! I need this effect to be done with a script .
I don’t need the color to be as shown, if you know that there isn’t an
easy way to create this effect, please message me and I might commission you for it.
make your script put an checkerboard pattern texture on the part (on all sides) with the StudsPerTileU and StudsPerTileV on 1 stud
TintinDevs
(TintinDevs)
December 8, 2021, 12:04am
#3
The problem is I need the color to be random for each part, and the part must be split up in 3D
then I suggest you use 3 for loops which simulate each single vector, per 1 stud
Forummer
(Forummer)
December 8, 2021, 1:02pm
#5
local part = Instance.new("Part")
part.Parent = workspace
part.Anchored = true
part.Position = Vector3.new(0, 50, 0)
part.Size = Vector3.new(4, 4, 4)
for i = part.Position.X-part.Size.X/2, part.Position.X+part.Size.X/2 - 1 do
for i2 = part.Position.Y-part.Size.Y/2, part.Position.Y+part.Size.Y/2 - 1 do
for i3 = part.Position.Z-part.Size.Z/2, part.Position.Z+part.Size.Z/2 - 1 do
local part = Instance.new("Part")
part.Parent = workspace
part.Size = Vector3.new(1, 1, 1)
part.Anchored = true
part.Position = Vector3.new(i, i2, i3)
part.Color = Color3.new(math.random(), math.random(), math.random())
end
end
end
part:Destroy()
2 Likes