I want to use a file mesh and load and asset Id. Here is my current script:
local p = Instance.new("Part") p.Position = script.Parent.Position Instance.new("SpecialMesh", p)
I want to change this to FileMesh and then load an asset Id. Could someone explain?
Change the "SpecialMesh"
to "FileMesh"
and then for the mesh and texture ID, just set it as an asset.
local p = Instance.new("Part", game.Workspace) -- You didn't parent it, just a little tip. p.Position = script.Parent.Position x = Instance.new("FileMesh", p) x.MeshId = "SOMEROBLOXASSET" x.TextureId = "SOMEROBLOXASSET"