So, I'm making a tycoon (with this furnace of course), but when I tested it, I joined the green team, then make a mine go into the furnace. The problem is I won't get the money from it. Any help?
script.Parent.Touched:connect(function(hit)
if hit.Name == "Ore" then
for i,v in pairs(game.Players:GetChildren())do
if v.TeamColor == "Lime green" then
v.leaderstats.Money.Value = v.leaderstats.Money.Value + hit.OreValue.Value
hit:Destroy()
end
end
end
end)
