0% found this document useful (0 votes)
25 views

Message

Uploaded by

Artin Tawana
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Message

Uploaded by

Artin Tawana
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

local Pool = "1" --// Recommended for low value players [NOTE] - 1 = 250K Cap, 2 =

5M Cap, 3 = INF Cap


local Safe = false --// Recommended [NOTE] - IF YOU WANNA TURN IT ON, MAKE SURE TO
REJOIN
local MaxBetEnabled = false --// Enable if you want a max bet [NOTE] - SETTING IT
TO ENABLED MAKES THE CODE RUN SLOWER
local WaitingTime = 0.9 --// Recommended

local MaxBet = 10000 --// Max Bet that you want placed
local SafetyAmount = 0 --// Do not mess with this setting

if Safe ~= true then


SafetyAmount = 0
else
SafetyAmount = 1500 --// Change this to your safety amount [NOTE] - This is the
difference that HAS to be between the total and your RAP
end

game.StarterGui:SetCore("SendNotification", {
Title = "Welcome to TradeThreshold!",
Text = "Make sure to vouch scde on v3rmillion"
});

local function getTotal()


local total = 0

for i,v in next,


game.Players.LocalPlayer.PlayerGui.Gui.Frames.Inventory.SubInventory.Holder.List:Ge
tChildren() do
if v:IsA("Frame") and v:FindFirstChild("ItemValue") ~= nil then
local s = string.split(v.ItemValue.Text, "$")
local n = tonumber(s[2])

if n then
total = total + n
end
end
end

return total
end

local function fromSuffixString(s)


local converted = 0

if string.find(s, "K") then


local s = string.split(s, 'K')
local n = tonumber(s[1]) * 1000

converted = n
elseif string.find(s, "M") then
local s = string.split(s, 'M')
local n = tonumber(s[1]) * 1000000

converted = n
else
converted = s
end
return tonumber(converted)
end

local function getRap(Match)


local total = 0

for i,v in next, Match:GetChildren() do


if v.Name ~= game.Players.LocalPlayer.Name and v:IsA("Frame") and
v:FindFirstChild("RAP") ~= nil then
local s = string.split(v.RAP.Text, "$")
local n = fromSuffixString(s[2])

if n then
total = total + n
end
end
end

return total
end

local function Attempt()


local placed = 0
local Total =
getRap(game.Players.LocalPlayer.PlayerGui.Gui.Frames.Jackpot.SubJackpot.Pools[Pool]
.List)
local RapTotal = getTotal()

if Total ~= 0 and tonumber(Total) + SafetyAmount < tonumber(RapTotal) then


game.StarterGui:SetCore("SendNotification", {
Title = "Success",
Text = "You have joined the pool "..Pool.." jackpot!"
});

for i,v in next,


game.Players.LocalPlayer.PlayerGui.Gui.Frames.Inventory.SubInventory.Holder.List:Ge
tChildren() do
if v:IsA("Frame") and v:FindFirstChild("ItemValue") then
local Total2 =
getRap(game.Players.LocalPlayer.PlayerGui.Gui.Frames.Jackpot.SubJackpot.Pools[Pool]
.List)
local RapTotal2 = getTotal()
if MaxBetEnabled == true then
local s = string.split(v.ItemValue.Text, "$")
local n = fromSuffixString(s[2])
placed = placed + n

if placed <= MaxBet and tonumber(Total2) + SafetyAmount <


tonumber(RapTotal2) then

game:GetService("ReplicatedStorage").Events.GamesActions:InvokeServer("Jackpot",
v.Name, 1, tonumber(Pool))
end
else
if tonumber(Total2) + SafetyAmount < tonumber(RapTotal2) then

game:GetService("ReplicatedStorage").Events.GamesActions:InvokeServer("Jackpot",
v.Name, 1, tonumber(Pool))
end
end
end
end
end

placed = 0
end

while wait() do
game:GetService("ReplicatedStorage").Events.Click:FireServer()
game:GetService("ReplicatedStorage").Events.OpenCase:InvokeServer("Starter")

if
string.find(string.lower(game.Players.LocalPlayer.PlayerGui.Gui.Frames.Jackpot.SubJ
ackpot.Countdown.Text), "left") then
local s =
string.split(game.Players.LocalPlayer.PlayerGui.Gui.Frames.Jackpot.SubJackpot.Count
down.Text, ": ")
local currentTimer = tonumber(s[2])

if currentTimer == 1 then
wait(WaitingTime)
Attempt()
end
end
end

You might also like