How would I make a coins per hit system?

yea and then do an if has gamepass then coinsperhit.Value x2 right?

If you would give him 3 coins, just give him 6 coins instead as he owns the gamepass.

local doesOwn = game:GetService("MarketPlaceService"):UserOwnsGamepassAsync(userId, gamePassId)
if doesOwn then
     player.leaderstats.Cash.Value += 6
else
--he doesn't own it
 player.leaderstats.Cash.Value += 3
end

yea i get it :slight_smile: (30 chars)

its kind of tricky cause in the image on top:

the hits are only 6 but the coins are 1.2M. I think its because of rebriths right? or maybe x5 strength + crowns. I just want to find a good balence so that my players dont think its unfair.

Probably multipliers. You can do stuff like

local cashPerHit = 3

if player.leaderstats.Rebirths.Value > 0 then
player.leaderstats.Cash.Value += (cashPerHit * player.leaderstats.Rebirths.Value)
end

This would multiply the cashPerHit with the player’s rebirths.
You can just mess around with the multiplication etc.

1 Like

alr I will try my best. I will tell you if I need any further help :slight_smile:

1 Like

Well, it might be all of the features the developer included, so he might be multiplying using rebirths and things, but the main concept would be to just take all the multipliers the player has and multiply/add them together.

2 Likes

ok i will try my best.thank you guys for trying to help me :slight_smile:

1 Like

I have a question should i make an int/number value on the player and then overwrite it after the boss died?

You can.

30chars

1 Like