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

Making a Tycoon Dropper Drop certain mesh(hats,gear etc) [UNSOLVED] ?

Asked by 10 years ago

I'm making a tycoon and I need the Dropper (Part) 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 hats :D?

function fire()
     local p = Instance.new("Part")
     p.Position = script.Parent.Position
--   p.Size = Vector3.new(2,3,2)
--   p.BrickColor = BrickColor.new(26)
     p.BottomSurface = 0
     p.TopSurface = 0
     p.Name = "TycoonBrick" 
     p.Parent = script.Parent
end 


while true do
     wait(1) --Alter Rate Of Drop
     fire()
end

2 answers

Log in to vote
0
Answered by 9 years ago
function fire()
    local p = Instance.new("Part")
    p.CFrame = script.Parent.CFrame -- Use CFrame, it works better than position.
    p.BottomSurface = 0
    p.TopSurface = 0
    p.Name = "TycoonBrick"
    p.Parent = script.Parent
    local PM = Instance.new("SpecialMesh")
    PM.MeshType = "FileMesh"
    PM.MeshID = "rbxassetid://241544038"
    PM.MeshTexture = "rbxassetid://241544038"
end

I believe this will work.

The hat is the "Le Tigre Fedora"

Ad
Log in to vote
0
Answered by
DevWork 80
10 years ago

Edit this and put it in a Code Block so it's easier to read.

0
i did better now? Blitz12234 10 — 10y

Answer this question