Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to change old style tycoon brick droppers?

Asked by 6 years ago
Edited 6 years ago

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)

0
If you want the new 'part' to be a mesh, just add a line of code underneath p=Instance.new... which changes the mesh. shadow7692 69 — 6y
0
Format your code in Lua Code block mate Goulstem 8144 — 6y
0
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 trollingyou666 2 — 6y
0
shadow7692 thx that helped trollingyou666 2 — 6y

2 answers

Log in to vote
1
Answered by 6 years ago
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

0
this also worked so thank you as well trollingyou666 2 — 6y
Ad
Log in to vote
1
Answered by
Bellyrium 310 Moderation Voter
6 years ago

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

Answer this question