what am trying to do is change the plain brick into something else i am using the sweetlakecity's Tycoon Kit to make my tycoon (link to the model https://www.roblox.com/library/80367042/Sweetlakecitys-WORKING-tycoon-kit)
and this is the script for the dropper
function fire() local p = Instance.new("Part") p.Position = script.Parent.Position --p.Size = Vector3.new(2,2,2) --size if u know how this works then delete the --'s at the start --p.BrickColor = BrickColor.new(26) --color, see the roblox lua documentation if u know how this works then delete the --'s p.BottomSurface = 0 p.TopSurface = 0 p.Name = "TycoonBrick" --If you change this, make sure you change the name in the get script too (in the collect profits model) p.Parent = script.Parent end
while true do wait(6) --Alter Rate Of Drop fire() end
so someone please help me out
just in case i also have to change the collector here is the script for that as well
function onTouched(hit) if hit.Name == "TycoonBrick" then hit:remove() money.Value = money.Value + 15 elseif hit.Name == "UpgradedTycoonBrick" then hit:remove() money.Value = money.Value + 30 end end
script.Parent.Touched:connect(onTouched)

4 comments
If you want the new 'part' to be a mesh, just add a line of code underneath p=Instance.new... which changes the mesh.
Format your code in Lua Code block mate
goulstem ummm i did when i go to edit to change this its all set out nice and how you see it in the script but the site has messed it up so idk how to fix it am new to this site as you can tell lol so yeah idk how
shadow7692 thx that helped