Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Xeno Executor - Working Custom UI (No Library)
- local player = game.Players.LocalPlayer
- local RS = game:GetService("ReplicatedStorage")
- local currentPlaceId = game.PlaceId
- local buyRunning = false
- local sellRunning = false
- local farmRunning = false
- local buyId = 18955353889
- local sellId = 5969077970
- local sellAmt = 50
- local farmBuyId = 18955353889
- local farmSellId = 5969077970
- local farmSellAmt = 50
- -- GUI
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.ResetOnSpawn = false
- ScreenGui.Parent = player:WaitForChild("PlayerGui")
- local Main = Instance.new("Frame")
- Main.Size = UDim2.new(0, 360, 0, 520)
- Main.Position = UDim2.new(0.5, -180, 0.3, 0)
- Main.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- Main.BorderSizePixel = 0
- Main.Active = true
- Main.Draggable = true
- Main.Parent = ScreenGui
- local Corner = Instance.new("UICorner")
- Corner.CornerRadius = UDim.new(0, 10)
- Corner.Parent = Main
- local Title = Instance.new("TextLabel")
- Title.Size = UDim2.new(1, 0, 0, 50)
- Title.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
- Title.Text = "⚡ Stocks Auto Trader"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 18
- Title.Font = Enum.Font.GothamBold
- Title.Parent = Main
- -- Place ID (Shared)
- local function addLabel(text, y)
- local l = Instance.new("TextLabel")
- l.Size = UDim2.new(0.9,0,0,20)
- l.Position = UDim2.new(0.05,0,0,y)
- l.BackgroundTransparency = 1
- l.Text = text
- l.TextColor3 = Color3.fromRGB(180,180,180)
- l.TextXAlignment = Enum.TextXAlignment.Left
- l.Font = Enum.Font.Gotham
- l.TextSize = 14
- l.Parent = Main
- return l
- end
- addLabel("Place ID (Shared for all functions)", 60)
- local placeBox = Instance.new("TextBox")
- placeBox.Size = UDim2.new(0.9,0,0,35)
- placeBox.Position = UDim2.new(0.05,0,0,85)
- placeBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
- placeBox.Text = tostring(game.PlaceId)
- placeBox.TextColor3 = Color3.new(1,1,1)
- placeBox.Font = Enum.Font.Gotham
- placeBox.TextSize = 15
- placeBox.Parent = Main
- local c1 = Instance.new("UICorner"); c1.CornerRadius = UDim.new(0,8); c1.Parent = placeBox
- placeBox.FocusLost:Connect(function()
- currentPlaceId = tonumber(placeBox.Text) or game.PlaceId
- end)
- -- Auto Buy Section
- addLabel("Auto Buy", 135)
- local buyBox = Instance.new("TextBox")
- buyBox.Size = UDim2.new(0.9,0,0,35)
- buyBox.Position = UDim2.new(0.05,0,0,155)
- buyBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
- buyBox.Text = "18955353889"
- buyBox.TextColor3 = Color3.new(1,1,1)
- buyBox.Parent = Main
- local c2 = Instance.new("UICorner"); c2.CornerRadius = UDim.new(0,8); c2.Parent = buyBox
- buyBox.FocusLost:Connect(function() buyId = tonumber(buyBox.Text) or 18955353889 end)
- local buyBtn = Instance.new("TextButton")
- buyBtn.Size = UDim2.new(0.9,0,0,40)
- buyBtn.Position = UDim2.new(0.05,0,0,195)
- buyBtn.BackgroundColor3 = Color3.fromRGB(220,50,50)
- buyBtn.Text = "ENABLE AUTO BUY"
- buyBtn.TextColor3 = Color3.new(1,1,1)
- buyBtn.Font = Enum.Font.GothamBold
- buyBtn.TextSize = 15
- buyBtn.Parent = Main
- local bc = Instance.new("UICorner"); bc.CornerRadius = UDim.new(0,8); bc.Parent = buyBtn
- -- Auto Sell Section
- addLabel("Auto Sell", 245)
- local sellBox = Instance.new("TextBox")
- sellBox.Size = UDim2.new(0.9,0,0,35)
- sellBox.Position = UDim2.new(0.05,0,0,265)
- sellBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
- sellBox.Text = "5969077970"
- sellBox.TextColor3 = Color3.new(1,1,1)
- sellBox.Parent = Main
- local c3 = Instance.new("UICorner"); c3.CornerRadius = UDim.new(0,8); c3.Parent = sellBox
- local amtBox = Instance.new("TextBox")
- amtBox.Size = UDim2.new(0.9,0,0,35)
- amtBox.Position = UDim2.new(0.05,0,0,305)
- amtBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
- amtBox.Text = "50"
- amtBox.TextColor3 = Color3.new(1,1,1)
- amtBox.Parent = Main
- local c4 = Instance.new("UICorner"); c4.CornerRadius = UDim.new(0,8); c4.Parent = amtBox
- sellBox.FocusLost:Connect(function() sellId = tonumber(sellBox.Text) or 5969077970 end)
- amtBox.FocusLost:Connect(function() sellAmt = tonumber(amtBox.Text) or 50 end)
- local sellBtn = buyBtn:Clone()
- sellBtn.Position = UDim2.new(0.05,0,0,345)
- sellBtn.Text = "ENABLE AUTO SELL"
- sellBtn.Parent = Main
- -- Auto Farm Section
- addLabel("Auto Farm (Buy First → Sell)", 395)
- local farmBtn = buyBtn:Clone()
- farmBtn.Position = UDim2.new(0.05,0,0,420)
- farmBtn.Text = "ENABLE AUTO FARM"
- farmBtn.Parent = Main
- -- Button Functions
- buyBtn.MouseButton1Click:Connect(function()
- buyRunning = not buyRunning
- if buyRunning then
- buyBtn.Text = "DISABLE AUTO BUY"
- buyBtn.BackgroundColor3 = Color3.fromRGB(50,180,50)
- spawn(function()
- while buyRunning do
- pcall(function()
- RS.Packages._Index["[email protected]"].knit.Services.Stocks.RF.MarketBuyPoints:InvokeServer(buyId, 1)
- end)
- task.wait()
- end
- end)
- else
- buyBtn.Text = "ENABLE AUTO BUY"
- buyBtn.BackgroundColor3 = Color3.fromRGB(220,50,50)
- end
- end)
- sellBtn.MouseButton1Click:Connect(function()
- sellRunning = not sellRunning
- if sellRunning then
- sellBtn.Text = "DISABLE AUTO SELL"
- sellBtn.BackgroundColor3 = Color3.fromRGB(50,180,50)
- spawn(function()
- while sellRunning do
- pcall(function()
- RS.Packages._Index["[email protected]"].knit.Services.Stocks.RF.MarketSellPoints:InvokeServer(sellId, sellAmt)
- end)
- task.wait()
- end
- end)
- else
- sellBtn.Text = "ENABLE AUTO SELL"
- sellBtn.BackgroundColor3 = Color3.fromRGB(220,50,50)
- end
- end)
- farmBtn.MouseButton1Click:Connect(function()
- farmRunning = not farmRunning
- if farmRunning then
- farmBtn.Text = "DISABLE AUTO FARM"
- farmBtn.BackgroundColor3 = Color3.fromRGB(50,180,50)
- spawn(function()
- while farmRunning do
- pcall(function()
- RS.Packages._Index["[email protected]"].knit.Services.Stocks.RF.MarketBuyPoints:InvokeServer(farmBuyId, 1)
- task.wait(0.1)
- RS.Packages._Index["[email protected]"].knit.Services.Stocks.RF.MarketSellPoints:InvokeServer(farmSellId, farmSellAmt)
- end)
- task.wait()
- end
- end)
- else
- farmBtn.Text = "ENABLE AUTO FARM"
- farmBtn.BackgroundColor3 = Color3.fromRGB(220,50,50)
- end
- end)
- print("✅ Fixed Custom UI Loaded for Xeno")
Advertisement
Add Comment
Please, Sign In to add comment