#How can you simply multiply your luck?

1 messages · Page 1 of 1 (latest)

brave spoke
#

Lets say i have a roll button that generates a number (i use math.random but ik ppl use other stuff ig) and i want to multiply the luck by for example pressing another button (the entire system is client sided) i dont know scripting so i dont have any example right now...

native vigil
#

show me the script

brave spoke
#

Thats the thing uhh

#

Im not rly on pc rn

lyric fractal
#

they literally just said they dont have a script

lyric fractal
brave spoke
#

I dont even know why i made this post rn

#

Rip

#

Also i forgot to mention that

native vigil
brave spoke
#

Well

#

I do have the script but

#

I cant show it rn lol

#

I could tmmrw

#

Bro im dumb

#

Just nwm now

native vigil
#

nah you good

lyric fractal
#

no offense couldve phrased the sentences better but doesnt matter

sacred marlin
brave spoke
#

Yeah i didnt get that

frail musk
#

Let’s say common is the interval 1-50, epic is the interval 51-90 and legendary is the interval 91-100 and you have a random number that can roll 1-100, if you want to increase the luck you simply decrease the common interval and increase the legendary and epic intervals. You can set up an equation to make this work fluidly without having to manually increase and decrease the various intervals

amber nest
#

Thats the first step wrong. you never wanna make a rarity chooser on client it should all be effects on client or anything with ui server should handle the actual stuff

brave spoke
#

script.Parent.MouseButton1Click:Connect(function()
rng = math.random(1,1000000)
RollValue.Value = rng
RollsLeaderstat.Value = RollsLeaderstat.Value +1
end)
This is the script under the button

#

local*

#

HighestValue.Value = 1000000

RollValue.Changed:Connect(function()
if RollValue.Value < HighestValue.Value then
HighestValue.Value = RollValue.Value
end
end)

HighestValue.Changed:Connect(function()
if HighestValue.Value <= 100000 then
Equip:FireServer("Rare")
elseif HighestValue.Value <= 500000 then
Equip:FireServer("Uncommon")
elseif HighestValue.Value <= 1000000 then
Equip:FireServer("Common")
end
end)
This is a local script that recieves the rolled number and based on it fires remote function

#

i want to create something that can change your luck when generating new number

lyric fractal
#

ehh

#

math.random isnt really efficient and it doesnt really "random"

#

use Random.new()

brave spoke