Meshpart doesn't change color

  1. What do you want to achieve? I wanna change the color of the meshpart

  2. What is the issue? It stays on gray/white color but in game it says that it’s persimmon

  3. What solutions have you tried so far? i looked in dev forum but i found none that could help me

btw it’s not transparency because i handle that in a different script, forgot to say doing this on BasePart it works well but i really wanna do it on mesh part
(MODULE SCRIPT)

local function towerBoundary(towerToUse)
	local height = (towerToUse.PrimaryPart.Size.Y / 2) + towerToUse["Left Leg"].Size.Y
	local offset = CFrame.new(0, -height, 0)

	local p = Instance.new("MeshPart")
	p.Name = "Border"
	p.BrickColor = BrickColor.new("Persimmon")
	p.Transparency = 1
	p.Size = Vector3.new(5, 0.35, 5)
	p.Orientation = Vector3.new(0, 0, 0)
	p.Material = Enum.Material.Neon
	p.CastShadow = false
	p.TopSurface = Enum.SurfaceType.Smooth
	p.BottomSurface = Enum.SurfaceType.Smooth
	p.CFrame = towerToUse.PrimaryPart.CFrame * offset
	p.Anchored = true
	p.CanTouch = false
	p.CanCollide = false
	p.Parent = towerToUse
end
3 Likes

why do you want to use a meshpart?

1 Like

I heard that meshpart causes less lag that’s why

1 Like

unless you are making thousands of parts the lag wont be noticeable whatsoever just use regular parts

2 Likes

Alright, ill use a basepart then, thanks

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.