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
