Why Nostr? What is Njump?
2023-02-10 16:34:26

TZH on Nostr: local playerCurrency = 0 local handSize = 1 function IncreaseCurrency(amount) ...

local playerCurrency = 0

local handSize = 1

function IncreaseCurrency(amount)
playerCurrency = playerCurrency + amount
end

function IncreaseHandSize(amount)
handSize = handSize + amount
end

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
player.OnCurrencyEarned:Connect(function(amount)
IncreaseCurrency(amount)
IncreaseHandSize(amount * 0.01)
end)
end)
end)
Author Public Key
npub1e3axwaz52trqqftmxg2v0r24n400vudfkf6gylztm84aw5ut3agsydvk4e