Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago
Edited 8 years ago

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

Log in to vote
1
Answered by 8 years ago
local m = Instance.new("SpecialMesh", x) -- creates special mesh inside the part
m.MeshId = ""
m.TextureId = ""
0
Thanks! potato12344 10 — 8y
0
Mark this post as answered, please. fIash_drive 45 — 8y
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 potato12344 10 — 8y
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! potato12344 10 — 8y
View all comments (2 more)
0
Sorry, I've never posted a question so I wouldn't know. fIash_drive 45 — 8y
0
Potato, under flash_drives name should be a Report button, and an accept answer button. :) FrostTaco 90 — 8y
Ad

Answer this question