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)
Published at
2023-02-10 16:34:26Event JSON
{
"id": "8e3f8e5f635fa099d5773d7abcf6b829020d98d329c6924cb7d721caf751f5b0",
"pubkey": "cc7a67745452c600257b3214c78d559d5ef671a9b274827c4bd9ebd7538b8f51",
"created_at": 1676046866,
"kind": 1,
"tags": [],
"content": "local playerCurrency = 0\n\nlocal handSize = 1\n\nfunction IncreaseCurrency(amount)\n playerCurrency = playerCurrency + amount\nend\n\nfunction IncreaseHandSize(amount)\n handSize = handSize + amount\nend\n\ngame.Players.PlayerAdded:Connect(function(player)\n player.CharacterAdded:Connect(function(character)\n player.OnCurrencyEarned:Connect(function(amount)\n IncreaseCurrency(amount)\n IncreaseHandSize(amount * 0.01)\n end)\n end)\nend)",
"sig": "f6b8f1e187c1c7b3830eef79c2721bb6afa91d27f0b5793441138be4362e4d0274ea720c2315b7f68671a2542b969ae017fc611d4e2eac38a0e78ceeeb6bb64d"
}