Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

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) Script_Summary 13 — 3y
0
that does somethinf random, I'm not sure what your trying to do and im too lazy to go into a roblox game Script_Summary 13 — 3y

1 answer

Log in to vote
0
Answered by
Sparks 534 Moderation Voter
3 years ago
Edited 3 years ago

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.

Ad

Answer this question