Idk what is happening here, this code worked before. It jsut now broke? This is on line 5 of this code.
event.OnServerEvent:Connect(function()
print(cash.Value)
print(rebirthcost.Value)
if cash.Value >= rebirthcost.Value then
rebirthcost.Value *= 2
rebirth.Value += 0.1
math.ceil(rebirth.Value)
math.ceil(rebirthcost.Value)
cash.Value = 0
wood.Value = 0
print(rebirth.Value)
else
print("not enough money")
end
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.