-
What do you want to achieve? I wanna change the color of the meshpart
-
What is the issue? It stays on gray/white color but in game it says that it’s persimmon
-
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