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?

01function fire()
02     local p = Instance.new("Part")
03     p.Position = script.Parent.Position
04--   p.Size = Vector3.new(2,3,2)
05--   p.BrickColor = BrickColor.new(26)
06     p.BottomSurface = 0
07     p.TopSurface = 0
08     p.Name = "TycoonBrick"
09     p.Parent = script.Parent
10end
11 
12 
13while true do
14     wait(1) --Alter Rate Of Drop
15     fire()
16end

2 answers

Log in to vote
0
Answered by 10 years ago
01function fire()
02    local p = Instance.new("Part")
03    p.CFrame = script.Parent.CFrame -- Use CFrame, it works better than position.
04    p.BottomSurface = 0
05    p.TopSurface = 0
06    p.Name = "TycoonBrick"
07    p.Parent = script.Parent
08    local PM = Instance.new("SpecialMesh")
09    PM.MeshType = "FileMesh"
10    PM.MeshID = "rbxassetid://241544038"
11    PM.MeshTexture = "rbxassetid://241544038"
12end

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