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

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

Asked by 8 years ago
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?

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. User#11440 120 — 8y
0
There! TheUniPiggy 77 — 8y
0
still have the same problem did you find out how to do it? techan0 -12 — 6y

1 answer

Log in to vote
0
Answered by
RFL890 4
3 years ago

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
Ad

Answer this question