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 the parts that the dropper drops in a tycoon be something else (e.x.A sword)?

Ok so i searched everywhere and i want to add a mesh so the droppers of my tycoon drop the thing i want but i am using berezaa's tycoon kit and i cant do it,can someone help me out?This is the script of the dropper:

wait(2)
workspace:WaitForChild("PartStorage")
while true do
	wait(0.5) -- How long in between drops
	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 = 1 -- How much the drops are worth
	part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0)
	part.Size=Vector3.new(1,1,1) -- Size of the drops
	game.Debris:AddItem(part,20) -- How long until the drops expire
 end

2 answers

I writed this and it didnt work:

wait(2)
workspace:WaitForChild("PartStorage")
while true do
    wait(0.5) -- How long in between drops
    local part = Instance.new("Part",workspace.PartStorage)
    local mesh = Instance.new('"SpecialMesh", part) 
    mesh.[Property].Value = [http://www.roblox.com/asset/?id=72012794] --I don't know the properties for getting the actual mesh but you may know. I am at school, sorry.
    part.BrickColor=script.Parent.Parent.Parent.DropColor.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,0)
    part.Size=Vector3.new(1,1,1) -- Size of the drops
    game.Debris:AddItem(part,20) -- How long until the drops expire
 end

1 comment

0

I am assuming you don't know how to script. Do you have skype by any chance, I could help you when I get home. If you do have skype, PM me on Roblox. My Username is FiredDusk.

I don't fully understand what you mean but what I am thinking is, you would want all the parts that drop down to have a mesh. So to do this you do:

wait(2)
workspace:WaitForChild("PartStorage")
while true do
    wait(0.5) -- How long in between drops
    local part = Instance.new("Part",workspace.PartStorage)
    local mesh = Instance.new('"SpecialMesh", part) --So here we make the SpecialMesh inside of the part.
    mesh.[Property].Value = [ID] --I don't know the properties for getting the actual mesh but you may know. I am at school, sorry.
    part.BrickColor=script.Parent.Parent.Parent.DropColor.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,0)
    part.Size=Vector3.new(1,1,1) -- Size of the drops
    game.Debris:AddItem(part,20) -- How long until the drops expire
 end

I would know how to do this but I am at school so it is kinda hard to explain and all.

3 comments

0

I writed it and it didnt works

0

I wrote some comments letting you know what to do. I am expecting you to know how to script, that's why I answered. But on line 7, that's what you should edit and read.

0

I wrote the id of the mesh in the [ID]

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