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

How to make the drops be mesh?

Asked by 8 years ago

So basically I'm working on a tycon so I used Zed's tycoon kit and I need help. Basically I want the dropper of the tycoon to instead of dropping normal bricks, to drop a specific Icecream mesh I have. How do I do this? This is so far the dropping script, and so I want not bricks t o drop but a specific icecream mesh.

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

while true do wait(2.5) -- How long in between drops 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 = 10 -- How much the drops are worth part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.6,0) part.FormFactor = "Custom" part.Size=Vector3.new(1.4, 1.4, 1.4) -- Size of the drops part.TopSurface = "Smooth" part.BottomSurface = "Smooth" game.Debris:AddItem(part,20) -- How long until the drops expire end

1 answer

Log in to vote
0
Answered by 8 years ago

I hope it will work good.

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

while true do
wait(1) 
local part = Instance.new("Part",workspace.PartStorage)
part.BrickColor = script.Parent.Parent.Parent.DropColor.Value
local cash = Instance.new("IntValue",part)
cash.Name = "Cash"
cash.Value = 500000 
part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0)
local mesh = Instance.new("SpecialMesh", part)
mesh.MeshType = "FileMesh"
mesh.MeshId = "rbxassetid://57718450"
mesh.TextureId = "rbxassetid://139677274"
part.TopSurface = "Smooth"
part.Size = Vector3.new(1,1,1)
part.Rotation = Vector3.new(-0,-0,0)
game.Debris:AddItem(part,20) 
end
Ad

Answer this question