#Betting

13 messages · Page 1 of 1 (latest)

remote cloud
#

that's because you do the player's money * 0.5/2, not the bet * 0.5/2

#

(/ means or in that sentence)

#

To be frank, you already have the variable Money, which is the amount you bet, just do
Player.leaderstats...Value += (Money * luck)

nova valley
#

also do u think there is a easy way to add a "max bet" and "min bet" so the player can only enter a number between min bet-max bet

remote cloud
#

you're using a textbox right?

nova valley
#

yes

remote cloud
#

if you then use the FocusLost even to detect when the player is no longer inside the textbox

#

then just check if the number is above/below the max/min, and if it is then change it to the max/min

nova valley
#

ik but idk waht to start wrting

remote cloud
#

Then just
if n> Max then n=max
elseif n < min then n = min

nova valley
#

ohhh alralr