Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I was wondering how to make a raffle system, can someone help?

If you dont get what im saying I want a raffle system like this game: https://www.roblox.com/games/3057425443/afk-and-wait-till-its-your-magic-number-simulator?refPageId=dbc691fd-0436-4a02-9143-83f160fa61c1

like if you get a card with a number on it like 364 for example then there a Number gui part and if your number gets picked you get +1 to your leaderstats

2 comments

0

Try looking into math.random math.random is like random number generator if you were to do: math.random (6,9) it would do something random between 6-9 (nice)

0

that does somethinf random, I'm not sure what your trying to do and im too lazy to go into a roblox game

1 answer

You will want to use math.random

If you want to total 1000 different numbers to draw from, you can draw one like so:

local winner = math.random(0, 1000)

From there, you can check for the "winner" number in each player, possibly storing their raffle ticket in a IntValue inside the character and checking that, and awarding the winners +1 leaderstat point.

This discussion is preserved as it was. New answers, comments, and votes are closed.