#Betting
13 messages · Page 1 of 1 (latest)
(/ 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)
Yoooo tyy
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
you're using a textbox right?
yes
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
ik but idk waht to start wrting
Just a function connected to the focuslost event
Then just
if n> Max then n=max
elseif n < min then n = min
ohhh alralr