I'm making a tycoon and I need the Dropper (Part) to drop a Certain hat other than any type of regular brick here is the script im using can you please add the part with the mesh :D? (So I just need it to added where I want to put a mesh here opposed to the block and I don't know how) Code:
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
part.TopSurface = "Smooth"
part.BottomSurface = "Smooth"
game.Debris:AddItem(part,20) -- How long until the drops expire
wait(.15)
deb = true
end
end)

1 comment
Put your code in a code block. It's the blue button while editing your question. You have to or the odds are no one will be able to help you.