How would I make a dropper that drops a MeshPart? (Just so i'm clear, not "mesh" a "MeshPart")
Asked by
5 years ago Edited 5 years ago
02 | workspace:WaitForChild( "PartStorage" ) |
15 | ** local part = Instance.new( "MeshPart" ,workspace.PartStorage)** |
18 | local cash = Instance.new( "IntValue" ,part) |
21 | part.CFrame = script.Parent.Drop.CFrame - Vector 3. new( 0 , 2 , 0 ) |
22 | part.BrickColor = BrickColor.new( "Navy blue" ) |
23 | part.Material = Enum.Material.Glass |
24 | part.Size = Vector 3. new(- 271.365 , 60.291 , - 237.789 ) |
25 | if meshDrop = = true then |
27 | part.TextureId = textureID |
29 | part.TopSurface = "Smooth" |
30 | part.BottomSurface = "Smooth" |
31 | game.Debris:AddItem(part, 20 ) |
tried using a meshID, but is just gives me this error 19:57:09.955 - Unable to assign property MeshId. Script write access is restricted
tried putting Mesh Part into workspace and changing this: local part = Instance.new("MeshPart",workspace.PartStorage)
to this:~~~~~~~~~~~~~~~~~
local part = game.workspace.Gem:Clone()
~~~~~~~~~~~~~~~~~
but nothing comes out of the dropper.
So can someone please help? Thanks in Advance