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)
function fire() local p = Instance.new("Part") p.Position = script.Parent.Position p.Size = Vector3.new(2,2,2) p.BrickColor = BrickColor.new(26) p.BottomSurface = 0 p.TopSurface = 0 p.Material = "CorrodedMaterial" --CHOOSE WHAT KIND OF MATERIAL , IT WOULD LOOK -- -- DIFFERENT p.Name = "TycoonBrick" p.Parent = script.Parent end while true do wait(6) fire() end
It could be something else , but we have no idea . Tell us
Easiest way would be to make the ore, and save it somewhere like replicated storage.
function fire() local p = game.ReplicatedStroage.CoolDropperOre:Clone() p.Position = script.Parent.Position p.Name = "TycoonBrick" p.Parent = script.Parent end while true do wait(6) --Alter Rate Of Drop fire() end