--BROUGHT TO YOU BY RobloxScripter.com!--
-- Auto Tix
spawn(function()
while wait() do
if y.flags.AutoTixStock then
-- GUI (Stock Price)
local curr_stock_price = PlrGui.Gui.Frames.Games.Stock.Body.Placeholder.StockPrice.Inner.Price.Text
-- GUI (Local Plr Tixs)
local curr_tix_amt = PlrGui.Gui.Hotbar.Container.Stats.Tix.Main.Amount.Text
-- Check current price and buy/sell
if tonumber(curr_stock_price) = 45 then
-- Calculate amt we can buy
local amt_count = (tonumber(curr_tix_amt) / tonumber(curr_stock_price))
Amt_Bought = math.floor(amt_count - 0.5) -- Round Down
-- Amt Cap
if Amt_Bought > 50 then
Amt_Bought = 50;
end
-- Less then or equal to 35 (Buy)
GameActions:InvokeServer("Stock", "Buy", Amt_Bought )
Bought = 1; -- Set flag
end
elseif tonumber(curr_stock_price) >= 70 and Bought == 1 then
GameActions:InvokeServer("Stock", "Sell", Amt_Bought ) -- Equal to or more than 70 (Sell)
Bought = 0;
end
end
end
end)
-- [[ Case Opener Window ]] --
local Selected_Case = "Starter";
-- Case Selection
local Cases = x:Dropdown("Select Case", {flag = "casenums"; list = {"Starter"; "Noobie"; "Stepping"; "Learning"; "Funding"; "Business"; "Legendary"; "Marcellus"; "Famous"; "Mythic"; "Eirene"; "Aeschylus"; "Olysseus";}}, function(v)
Selected_Case = v;
end)
-- Toggle Auto Case Open
spawn(function()
while wait(1) do
if x.flags.AutoCase then
game:GetService("ReplicatedStorage").Events.OpenCase:InvokeServer(Selected_Case)
end
end
end)