
▲ 1 r/robloxgamedev
I need help with a button dependency system for my tycoon
I've watched every tutorial I can, and the dependency scripts just don't work... what is wrong with it? I want the dropper dependent on the belt! My dependency script is:
if v:FindFirstChild("Dependency") then
v.Button.Transparency = 1
v.Button.CanCollide = false
v.Button.BillboardGui.Enabled = false
coroutine.resume(coroutine.create(function()
if purchasedItems:WaitForChild(v.Dependency.Value, math.huge) then
v.Button.Transparency = 0
v.Button.CanCollide = true
v.Button.BillboardGui.Enabled = true
end
end))
end
u/Aggravating-Bass8920 — 6 days ago