Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer
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"

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

1 comment

0

i did better now?

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