Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Tycoon: How to resize a mesh for a block in a dropper?

I was able to get the mesh substituting for a block from a tycoon dropper. I am now trying to figure out how to resize the mesh, so when it spawns it is much smaller. I am currently using this script~

wait(2)
workspace:WaitForChild("PartStorage")


deb = true 
script.Parent.Clicker.ClickDetector.MouseClick:connect(function(wat)
	if deb == true then
		deb = false
			local part = Instance.new("Part",workspace.PartStorage)
			part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
			part.Material=script.Parent.Parent.Parent.MaterialValue.Value
			local cash = Instance.new("IntValue",part)
			cash.Name = "Cash"
			cash.Value = 1 -- How much the drops are worth
			part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.3,0)
			part.FormFactor = "Custom"
			part.Size=Vector3.new(1, 1, 1) -- Size of the drops
			local mesh = Instance.new("SpecialMesh", part)
			mesh.MeshType = "FileMesh"
			mesh.MeshId = "rbxassetid://507468593"
			mesh.TextureId = "rbxassetid://507468594"
			part.TopSurface = "Smooth"
			part.BottomSurface = "Smooth"
			game.Debris:AddItem(part,20) -- How long until the drops expire
			wait(.15)
			deb = true
	end
end)

I tried adding this piece of code, but it did not work.

m.Scale = Vector3.new(2,2,2)

Does anyone know how to do this, or have a link on how to do it? Thank you!

~Roxy

1 answer

The answer is "Scale" but if it is a costum mesh you better should work with smaller values example:

mesh.Scale = Vector3.new (0.2,0.2,0.2)

smallest you can go is 0,01 I thought. I hope this helped your problem also if you did used "m" it wouldn't worked because your local is mesh.

This discussion is preserved as it was. New answers, comments, and votes are closed.