Alright so I want x to still be in p when I change the parent of p. I've tried this but it doesn't work:
function fire() local p = Instance.new("Part") p.Name = "Something" p.Position = script.Parent.Position x = Instance.new("FileMesh", p) x.MeshId = "http://www.roblox.com/asset/?id=1286103" x.Parent = p p.Parent = script.Parent end
Please explain how I would keep the mesh with it's parent.
Want to know something interesting? A filemesh isn't an object. What you want is a special mesh with the MeshType set as a FileMesh
function fire() local p = Instance.new("Part") p.Name = "Something" p.Position = script.Parent.Position x = Instance.new("SpecialMesh") x.MeshType="FileMesh" x.MeshId = "http://www.roblox.com/asset/?id=1286103" x.Parent = p p.Parent = script.Parent end fire()