remote.OnServerEvent:Connect(function(player)
print("remote was fired")
if player.Currency.farthings.Value >= 4 then
print("seen if player has enough")
player.Currency.farthings.Value -= 4
player.Currency.pennies.Value += 1
end
end)
The “remote was fired” is printing in the output but not the “seen if player has enough”, why is this?
And yes, everything is spelt correctly and there are no errors in the output.
I think the problem is this line "if player.Currency.farthings.Value >= 4 then".
remote.OnServerEvent:Connect(function(player)
print(player.Currency.farthings.Value)
if player.Currency.farthings.Value >= 4 then
print("seen if player has enough")
player.Currency.farthings.Value -= 4
player.Currency.pennies.Value += 1
end
end)
This way, you will print player.Currency.farthings.Value and see what its value is. Maybe it’s not bigger or equal to 4, therefore it doesn’t go inside the if block.