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

How do I add a mesh to my tycoon dropper?

Asked by 8 years ago

Trying to learn how to script better, I'm making a very random and weird tycoon. Idk what its gonna be yet. Idk how to add a mesh to the things that are being dropped by the dropper my current script is

function fire() local p = Instance.new("Part") p.Position = script.Parent.Position p.Size = Vector3.new( 1 , 1 , 1 ) p.BrickColor = BrickColor.new(26) p.BottomSurface = 0 p.TopSurface = 0 p.Name = "TycoonBrick" p.Parent = script.Parent end

while true do wait(2) fire() end

I have no idea what to add now.

2 answers

Log in to vote
0
Answered by 8 years ago

easy

local mesh = Instance.new("SpecialMesh")
mesh.Parent = p

you can make it more specific later

Ad
Log in to vote
0
Answered by 8 years ago

local mesh = Instance.new("SpecialMesh") i think

0
Code doesn't run. Error: 'i think' nil value Im_Kritz 334 — 8y

Answer this question