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

How to make ZedNov's Tycoon KIt Dropper Drop Meshes (hats,items ect.)?

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 = 4 -- How much the drops are worth
	part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.4,0)
	part.FormFactor = "Custom"
	part.Size=Vector3.new(0.25,0.25,0.25) -- Size of the drops
	part.TopSurface = "Smooth"
	part.BottomSurface = "Smooth"
	game.Debris:AddItem(part,200) -- How long until the drops expire
end

Hey guys thats my dropper script and i want it to drop certain meshes (hats, items ect.) I am using ZedNov's tycoon kit!

Anyone gonna help?

3 comments

0

Could you please place your code in a code block? Just click the blue Lua button and place your code in there. It's very hard to help you without seeing the code properly formatted.

0

There!

0

still have the same problem did you find out how to do it?

1 answer

change local part = Instance.new("Part", PartStorage) to:

while true do
wait(2.5)
local part = Instance.new("MeshPart", workspace.PartStorage)
part.Name = "Part"
part.MeshID = --Your Meshid here
part.TextureID = -- Your Textureid here
local cash = Instance.new("IntValue",part)
    cash.Name = "Cash"
    cash.Value = 4 -- How much the drops are worth
    part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.4,0)
    part.FormFactor = "Custom"
    part.Size=Vector3.new(0.25,0.25,0.25) -- Size of the drops
    part.TopSurface = "Smooth"
    part.BottomSurface = "Smooth"
    game.Debris:AddItem(part,200) -- How long until the drops expire
end

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