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

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
01wait(2)
02workspace:WaitForChild("PartStorage")
03 
04 
05 
06meshDrop = true
07--------------------
08meshID = "rbxassetid://547028155" 
09textureID = ""
10--------------------
11 
12 
13while true do
14    wait(1.5) -- How long in between drops
15**  local part = Instance.new("MeshPart",workspace.PartStorage)**
View all 32 lines...

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

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

sry for bad english btw

You cannot set the MeshId

There is one way :

You could add a MeshPart to (example : ReplicatedFirst or wherever you want) And clone it

01wait(2)
02workspace:WaitForChild("PartStorage")
03 
04 
05 
06meshDrop = true
07--------------------
08--meshID = "rbxassetid://547028155
09--textureID = ""
10--------------------
11 
12 
13while true do
14    wait(1.5) -- How long in between drops
15 local part = game.ReplicatedStorage.MeshPart:Clone() --Where you added the MeshPart
View all 33 lines...
0
I edited line 15 : Replace it where u stored the part , and i added a new line : line 21 : I set the parent of the cloned part to workspace so you can see it, if its not in the workspace you cant see it! :D itz_rennox 412 — 5y
0
Thanks, it worked ShineBright2775 30 — 5y
0
no problem :D itz_rennox 412 — 5y
Ad

Answer this question