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?
01 | function 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 |
10 | end |
11 |
12 |
13 | while true do |
14 | wait( 1 ) --Alter Rate Of Drop |
15 | fire() |
16 | end |
01 | function 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" |
12 | end |
I believe this will work.
The hat is the "Le Tigre Fedora"
Edit this and put it in a Code Block so it's easier to read.