Thunder_beast

Stonk

May 11th, 2026 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.47 KB | None | 0 0
  1. -- Xeno Executor - Working Custom UI (No Library)
  2.  
  3. local player = game.Players.LocalPlayer
  4. local RS = game:GetService("ReplicatedStorage")
  5.  
  6. local currentPlaceId = game.PlaceId
  7.  
  8. local buyRunning = false
  9. local sellRunning = false
  10. local farmRunning = false
  11.  
  12. local buyId = 18955353889
  13. local sellId = 5969077970
  14. local sellAmt = 50
  15.  
  16. local farmBuyId = 18955353889
  17. local farmSellId = 5969077970
  18. local farmSellAmt = 50
  19.  
  20. -- GUI
  21. local ScreenGui = Instance.new("ScreenGui")
  22. ScreenGui.ResetOnSpawn = false
  23. ScreenGui.Parent = player:WaitForChild("PlayerGui")
  24.  
  25. local Main = Instance.new("Frame")
  26. Main.Size = UDim2.new(0, 360, 0, 520)
  27. Main.Position = UDim2.new(0.5, -180, 0.3, 0)
  28. Main.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  29. Main.BorderSizePixel = 0
  30. Main.Active = true
  31. Main.Draggable = true
  32. Main.Parent = ScreenGui
  33.  
  34. local Corner = Instance.new("UICorner")
  35. Corner.CornerRadius = UDim.new(0, 10)
  36. Corner.Parent = Main
  37.  
  38. local Title = Instance.new("TextLabel")
  39. Title.Size = UDim2.new(1, 0, 0, 50)
  40. Title.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  41. Title.Text = "⚡ Stocks Auto Trader"
  42. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. Title.TextSize = 18
  44. Title.Font = Enum.Font.GothamBold
  45. Title.Parent = Main
  46.  
  47. -- Place ID (Shared)
  48. local function addLabel(text, y)
  49. local l = Instance.new("TextLabel")
  50. l.Size = UDim2.new(0.9,0,0,20)
  51. l.Position = UDim2.new(0.05,0,0,y)
  52. l.BackgroundTransparency = 1
  53. l.Text = text
  54. l.TextColor3 = Color3.fromRGB(180,180,180)
  55. l.TextXAlignment = Enum.TextXAlignment.Left
  56. l.Font = Enum.Font.Gotham
  57. l.TextSize = 14
  58. l.Parent = Main
  59. return l
  60. end
  61.  
  62. addLabel("Place ID (Shared for all functions)", 60)
  63.  
  64. local placeBox = Instance.new("TextBox")
  65. placeBox.Size = UDim2.new(0.9,0,0,35)
  66. placeBox.Position = UDim2.new(0.05,0,0,85)
  67. placeBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
  68. placeBox.Text = tostring(game.PlaceId)
  69. placeBox.TextColor3 = Color3.new(1,1,1)
  70. placeBox.Font = Enum.Font.Gotham
  71. placeBox.TextSize = 15
  72. placeBox.Parent = Main
  73. local c1 = Instance.new("UICorner"); c1.CornerRadius = UDim.new(0,8); c1.Parent = placeBox
  74.  
  75. placeBox.FocusLost:Connect(function()
  76. currentPlaceId = tonumber(placeBox.Text) or game.PlaceId
  77. end)
  78.  
  79. -- Auto Buy Section
  80. addLabel("Auto Buy", 135)
  81. local buyBox = Instance.new("TextBox")
  82. buyBox.Size = UDim2.new(0.9,0,0,35)
  83. buyBox.Position = UDim2.new(0.05,0,0,155)
  84. buyBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
  85. buyBox.Text = "18955353889"
  86. buyBox.TextColor3 = Color3.new(1,1,1)
  87. buyBox.Parent = Main
  88. local c2 = Instance.new("UICorner"); c2.CornerRadius = UDim.new(0,8); c2.Parent = buyBox
  89.  
  90. buyBox.FocusLost:Connect(function() buyId = tonumber(buyBox.Text) or 18955353889 end)
  91.  
  92. local buyBtn = Instance.new("TextButton")
  93. buyBtn.Size = UDim2.new(0.9,0,0,40)
  94. buyBtn.Position = UDim2.new(0.05,0,0,195)
  95. buyBtn.BackgroundColor3 = Color3.fromRGB(220,50,50)
  96. buyBtn.Text = "ENABLE AUTO BUY"
  97. buyBtn.TextColor3 = Color3.new(1,1,1)
  98. buyBtn.Font = Enum.Font.GothamBold
  99. buyBtn.TextSize = 15
  100. buyBtn.Parent = Main
  101. local bc = Instance.new("UICorner"); bc.CornerRadius = UDim.new(0,8); bc.Parent = buyBtn
  102.  
  103. -- Auto Sell Section
  104. addLabel("Auto Sell", 245)
  105. local sellBox = Instance.new("TextBox")
  106. sellBox.Size = UDim2.new(0.9,0,0,35)
  107. sellBox.Position = UDim2.new(0.05,0,0,265)
  108. sellBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
  109. sellBox.Text = "5969077970"
  110. sellBox.TextColor3 = Color3.new(1,1,1)
  111. sellBox.Parent = Main
  112. local c3 = Instance.new("UICorner"); c3.CornerRadius = UDim.new(0,8); c3.Parent = sellBox
  113.  
  114. local amtBox = Instance.new("TextBox")
  115. amtBox.Size = UDim2.new(0.9,0,0,35)
  116. amtBox.Position = UDim2.new(0.05,0,0,305)
  117. amtBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
  118. amtBox.Text = "50"
  119. amtBox.TextColor3 = Color3.new(1,1,1)
  120. amtBox.Parent = Main
  121. local c4 = Instance.new("UICorner"); c4.CornerRadius = UDim.new(0,8); c4.Parent = amtBox
  122.  
  123. sellBox.FocusLost:Connect(function() sellId = tonumber(sellBox.Text) or 5969077970 end)
  124. amtBox.FocusLost:Connect(function() sellAmt = tonumber(amtBox.Text) or 50 end)
  125.  
  126. local sellBtn = buyBtn:Clone()
  127. sellBtn.Position = UDim2.new(0.05,0,0,345)
  128. sellBtn.Text = "ENABLE AUTO SELL"
  129. sellBtn.Parent = Main
  130.  
  131. -- Auto Farm Section
  132. addLabel("Auto Farm (Buy First → Sell)", 395)
  133. local farmBtn = buyBtn:Clone()
  134. farmBtn.Position = UDim2.new(0.05,0,0,420)
  135. farmBtn.Text = "ENABLE AUTO FARM"
  136. farmBtn.Parent = Main
  137.  
  138. -- Button Functions
  139. buyBtn.MouseButton1Click:Connect(function()
  140. buyRunning = not buyRunning
  141. if buyRunning then
  142. buyBtn.Text = "DISABLE AUTO BUY"
  143. buyBtn.BackgroundColor3 = Color3.fromRGB(50,180,50)
  144. spawn(function()
  145. while buyRunning do
  146. pcall(function()
  147. RS.Packages._Index["[email protected]"].knit.Services.Stocks.RF.MarketBuyPoints:InvokeServer(buyId, 1)
  148. end)
  149. task.wait()
  150. end
  151. end)
  152. else
  153. buyBtn.Text = "ENABLE AUTO BUY"
  154. buyBtn.BackgroundColor3 = Color3.fromRGB(220,50,50)
  155. end
  156. end)
  157.  
  158. sellBtn.MouseButton1Click:Connect(function()
  159. sellRunning = not sellRunning
  160. if sellRunning then
  161. sellBtn.Text = "DISABLE AUTO SELL"
  162. sellBtn.BackgroundColor3 = Color3.fromRGB(50,180,50)
  163. spawn(function()
  164. while sellRunning do
  165. pcall(function()
  166. RS.Packages._Index["[email protected]"].knit.Services.Stocks.RF.MarketSellPoints:InvokeServer(sellId, sellAmt)
  167. end)
  168. task.wait()
  169. end
  170. end)
  171. else
  172. sellBtn.Text = "ENABLE AUTO SELL"
  173. sellBtn.BackgroundColor3 = Color3.fromRGB(220,50,50)
  174. end
  175. end)
  176.  
  177. farmBtn.MouseButton1Click:Connect(function()
  178. farmRunning = not farmRunning
  179. if farmRunning then
  180. farmBtn.Text = "DISABLE AUTO FARM"
  181. farmBtn.BackgroundColor3 = Color3.fromRGB(50,180,50)
  182. spawn(function()
  183. while farmRunning do
  184. pcall(function()
  185. RS.Packages._Index["[email protected]"].knit.Services.Stocks.RF.MarketBuyPoints:InvokeServer(farmBuyId, 1)
  186. task.wait(0.1)
  187. RS.Packages._Index["[email protected]"].knit.Services.Stocks.RF.MarketSellPoints:InvokeServer(farmSellId, farmSellAmt)
  188. end)
  189. task.wait()
  190. end
  191. end)
  192. else
  193. farmBtn.Text = "ENABLE AUTO FARM"
  194. farmBtn.BackgroundColor3 = Color3.fromRGB(220,50,50)
  195. end
  196. end)
  197.  
  198. print("✅ Fixed Custom UI Loaded for Xeno")
Advertisement
Add Comment
Please, Sign In to add comment