I want to change the size of a Part that spawns at a certain position upon a mouse click. Example: Manual ore spawners at tycoons, I want to change the size of the part that spawns. Please help.
Button = script.Parent
local part = Instance.new("Part", workspace)
part.Size = Vector3.new(1,1,1)
part.Position = script.Parent.Position + Vector3.new(0,5,0)
function makepart()
Instance.new("Part", workspace)
end
Button.ClickDetector.MouseClick:connect(makepart)

2 comments
I can't seem to get it working, I re-edited my question's code.
No, you put that code in the function, in place of the Instance.new in the modified code.