Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i add mesh to a brick using a script?

So I've wanted to know how to add special mesh to a brick using a script for a weapon i've been making, Thats about it xD

To give you an example of what i want, here's the script i used: (Or at least part of it)

x = Instance.new("Part")
		x.BrickColor = BrickColor.new("Really Red")
		x.Size = Vector3.new(8, 8, 8)
		x.TopSurface = "Smooth"
		x.BottomSurface = "Smooth"
		x.Shape = "Brick"
		x. -- I want to add the special mesh line(s) here.
		x.Name = Player.Name
		x.CanCollide = false
		x.Transparency = 0.2

Thanks!

1 answer

✓ Accepted answer
local m = Instance.new("SpecialMesh", x) -- creates special mesh inside the part
m.MeshId = ""
m.TextureId = ""

6 comments

0

Thanks!

0

Mark this post as answered, please.

0

I'd gladly, but i also have another problem now xD (2 actually) It now says that it cant fetch the mesh id.. Could you help me out with that? Also I'd gladly approve the answer if i knew how to xD

0

Oop no worries, I figured out i had to type m.MeshType, But if you could tell me how to make it answered i would definitely do it! Thanks for the help!

0

Sorry, I've never posted a question so I wouldn't know.

0

Potato, under flash_drives name should be a Report button, and an accept answer button. :)

This discussion is preserved as it was. New answers, comments, and votes are closed.