D00bleHaxx

Executor

May 10th, 2024
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.40 KB | None | 0 0
  1. -- Importation de HttpService
  2. local HttpService = game:GetService("HttpService")
  3.  
  4. -- Création de l'interface utilisateur
  5. local D00bleExecGui = Instance.new("ScreenGui")
  6. local MainFrame = Instance.new("Frame")
  7. local WelcomeFrame = Instance.new("Frame")
  8. local WelcomeText = Instance.new("TextLabel")
  9. local HomeButton = Instance.new("TextButton")
  10. local DocumentButton = Instance.new("TextButton")
  11. local SearchButton = Instance.new("TextButton")
  12. local SettingsButton = Instance.new("TextButton")
  13. local CloseButton = Instance.new("TextButton")
  14. local SearchPageFrame = Instance.new("Frame")
  15. local ScriptsHubText = Instance.new("TextLabel")
  16. local ScriptFrame = Instance.new("Frame")
  17. local TextBoxContainer1 = Instance.new("Frame")
  18. local TextBoxContainer2 = Instance.new("Frame")
  19. local TextBoxContainer3 = Instance.new("Frame")
  20. local ScriptTextBox1 = Instance.new("TextBox")
  21. local ScriptTextBox2 = Instance.new("TextBox")
  22. local ScriptTextBox3 = Instance.new("TextBox")
  23. local ExecuteButton = Instance.new("TextButton")
  24. local BottomText = Instance.new("TextLabel")
  25. local SpeedPageFrame = Instance.new("Frame")
  26. local SpeedTextBox = Instance.new("TextBox")
  27. local SetSpeedButton = Instance.new("TextButton")
  28. local Tab1Button = Instance.new("TextButton")
  29. local Tab2Button = Instance.new("TextButton")
  30. local Tab3Button = Instance.new("TextButton")
  31.  
  32. -- Propriétés de l'interface utilisateur
  33. D00bleExecGui.Name = "D00bleExecGui"
  34. D00bleExecGui.Parent = game.CoreGui
  35. D00bleExecGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  36.  
  37. -- MainFrame
  38. MainFrame.Name = "MainFrame"
  39. MainFrame.Parent = D00bleExecGui
  40. MainFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) -- Gris foncé
  41. MainFrame.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  42. MainFrame.BorderSizePixel = 5
  43. MainFrame.Position = UDim2.new(0.15, 0, 0.15, 0)
  44. MainFrame.Size = UDim2.new(0.7, 0, 0.7, 0)
  45. MainFrame.Active = true
  46. MainFrame.Draggable = true -- Rend le GUI déplaçable
  47.  
  48. -- Page d'accueil (WelcomeFrame)
  49. WelcomeFrame.Name = "WelcomeFrame"
  50. WelcomeFrame.Parent = MainFrame
  51. WelcomeFrame.Size = UDim2.new(1, 0, 1, 0)
  52. WelcomeFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) -- Gris foncé
  53.  
  54. WelcomeText.Name = "WelcomeText"
  55. WelcomeText.Parent = WelcomeFrame
  56. WelcomeText.BackgroundTransparency = 1
  57. WelcomeText.Size = UDim2.new(1, 0, 0.8, 0)
  58. WelcomeText.Position = UDim2.new(0, 0, 0.1, 0)
  59. WelcomeText.Font = Enum.Font.Gotham
  60. WelcomeText.Text = "WELCOME: Thank you for using our D00ble executor"
  61. WelcomeText.TextColor3 = Color3.new(1, 1, 1)
  62. WelcomeText.TextSize = 18
  63. WelcomeText.TextWrapped = true
  64.  
  65. -- Boutons de navigation
  66. HomeButton.Name = "HomeButton"
  67. HomeButton.Parent = MainFrame
  68. HomeButton.BackgroundColor3 = Color3.new(0, 0, 0) -- Noir
  69. HomeButton.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  70. HomeButton.BorderSizePixel = 5
  71. HomeButton.Position = UDim2.new(0, 0, 0, 0)
  72. HomeButton.Size = UDim2.new(0.1, 0, 0.1, 0)
  73. HomeButton.Font = Enum.Font.Gotham
  74. HomeButton.Text = "🏠"
  75. HomeButton.TextColor3 = Color3.new(1, 1, 1)
  76. HomeButton.TextSize = 24
  77.  
  78. DocumentButton.Name = "DocumentButton"
  79. DocumentButton.Parent = MainFrame
  80. DocumentButton.BackgroundColor3 = Color3.new(0, 0, 0) -- Noir
  81. DocumentButton.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  82. DocumentButton.BorderSizePixel = 5
  83. DocumentButton.Position = UDim2.new(0, 0, 0.1, 0)
  84. DocumentButton.Size = UDim2.new(0.1, 0, 0.1, 0)
  85. DocumentButton.Font = Enum.Font.Gotham
  86. DocumentButton.Text = "📜"
  87. DocumentButton.TextColor3 = Color3.new(1, 1, 1)
  88. DocumentButton.TextSize = 24
  89.  
  90. SearchButton.Name = "SearchButton"
  91. SearchButton.Parent = MainFrame
  92. SearchButton.BackgroundColor3 = Color3.new(0, 0, 0) -- Noir
  93. SearchButton.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  94. SearchButton.BorderSizePixel = 5
  95. SearchButton.Position = UDim2.new(0, 0, 0.2, 0)
  96. SearchButton.Size = UDim2.new(0.1, 0, 0.1, 0)
  97. SearchButton.Font = Enum.Font.Gotham
  98. SearchButton.Text = "🔎"
  99. SearchButton.TextColor3 = Color3.new(1, 1, 1)
  100. SearchButton.TextSize = 24
  101.  
  102. SettingsButton.Name = "SettingsButton"
  103. SettingsButton.Parent = MainFrame
  104. SettingsButton.BackgroundColor3 = Color3.new(0, 0, 0) -- Noir
  105. SettingsButton.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  106. SettingsButton.BorderSizePixel = 5
  107. SettingsButton.Position = UDim2.new(0, 0, 0.3, 0)
  108. SettingsButton.Size = UDim2.new(0.1, 0, 0.1, 0)
  109. SettingsButton.Font = Enum.Font.Gotham
  110. SettingsButton.Text = "⚙"
  111. SettingsButton.TextColor3 = Color3.new(1, 1, 1)
  112. SettingsButton.TextSize = 24
  113.  
  114. CloseButton.Name = "CloseButton"
  115. CloseButton.Parent = MainFrame
  116. CloseButton.BackgroundColor3 = Color3.new(0, 0, 0)
  117. CloseButton.BorderColor3 = Color3.new(1, 0, 0)
  118. CloseButton.BorderSizePixel = 5
  119. CloseButton.Position = UDim2.new(0.9, 0, 0, 0)
  120. CloseButton.Size = UDim2.new(0.1, 0, 0.1, 0)
  121. CloseButton.Font = Enum.Font.Gotham
  122. CloseButton.Text = "✖"
  123. CloseButton.TextColor3 = Color3.new(1, 1, 1)
  124. CloseButton.TextSize = 24
  125.  
  126. -- Page Scripts Hub
  127. SearchPageFrame.Name = "SearchPageFrame"
  128. SearchPageFrame.Parent = MainFrame
  129. SearchPageFrame.Size = UDim2.new(1, 0, 1, 0)
  130. SearchPageFrame.BackgroundTransparency = 1
  131. SearchPageFrame.Visible = false
  132.  
  133. ScriptsHubText.Name = "ScriptsHubText"
  134. ScriptsHubText.Parent = SearchPageFrame
  135. ScriptsHubText.BackgroundTransparency = 1
  136. ScriptsHubText.Size = UDim2.new(1, 0, 0.1, 0)
  137. ScriptsHubText.Font = Enum.Font.Gotham
  138. ScriptsHubText.Text = "Scripts Hub"
  139. ScriptsHubText.TextColor3 = Color3.new(1, 1, 1)
  140. ScriptsHubText.TextSize = 18
  141. ScriptsHubText.TextWrapped = true
  142.  
  143. -- Fonction pour créer un bouton de script
  144. local function createScriptButton(name, position, script)
  145. local button = Instance.new("TextButton")
  146. button.Name = name
  147. button.Parent = SearchPageFrame
  148. button.BackgroundColor3 = Color3.new(0, 0, 0) -- Noir
  149. button.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  150. button.BorderSizePixel = 5
  151. button.Size = UDim2.new(0.8, 0, 0.1, 0)
  152. button.Position = position
  153. button.Font = Enum.Font.Gotham
  154. button.Text = name
  155. button.TextColor3 = Color3.new(1, 1, 1)
  156. button.TextSize = 14
  157.  
  158. button.MouseButton1Click:Connect(function()
  159. ScriptTextBox.Text = script
  160. showScriptPage()
  161. end)
  162.  
  163. return button
  164. end
  165.  
  166. -- Création des boutons de script
  167. createScriptButton("Ghost Hub", UDim2.new(0.1, 0, 0.3, 0), [[
  168. loadstring(game:HttpGet('https://raw.githubusercontent.com/GhostPlayer352/Test4/main/GhostHub'))()
  169. ]])
  170. createScriptButton("Fly v3", UDim2.new(0.1, 0, 0.45, 0), [[
  171. loadstring(game:HttpGet("https://raw.githubusercontent.com/XNEOFF/FlyGuiV3/main/FlyGuiV3.txt"))()
  172. ]])
  173. createScriptButton("IY", UDim2.new(0.1, 0, 0.6, 0), [[
  174. loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
  175. ]])
  176. createScriptButton("Remote Spy", UDim2.new(0.1, 0, 0.75, 0), [[
  177. loadstring(game:HttpGet("https://pastebin.com/raw/BDhSQqUU", true))()
  178. ]])
  179.  
  180. -- Page d'exécution du script (ScriptFrame)
  181. ScriptFrame.Name = "ScriptFrame"
  182. ScriptFrame.Parent = MainFrame
  183. ScriptFrame.Size = UDim2.new(1, 0, 1, 0)
  184. ScriptFrame.BackgroundTransparency = 1
  185. ScriptFrame.Visible = false
  186.  
  187. -- Création des `TextBox` et `TextBoxContainer` pour les onglets Tab1, Tab2, Tab3
  188. TextBoxContainer1.Name = "TextBoxContainer1"
  189. TextBoxContainer1.Parent = ScriptFrame
  190. TextBoxContainer1.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) -- Gris
  191. TextBoxContainer1.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  192. TextBoxContainer1.BorderSizePixel = 5
  193. TextBoxContainer1.Position = UDim2.new(0.1, 0, 0.2, 0)
  194. TextBoxContainer1.Size = UDim2.new(0.8, 0, 0.5, 0)
  195.  
  196. ScriptTextBox1.Name = "ScriptTextBox1"
  197. ScriptTextBox1.Parent = TextBoxContainer1
  198. ScriptTextBox1.BackgroundColor3 = Color3.new(1, 1, 1)
  199. ScriptTextBox1.BackgroundTransparency = 0.5
  200. ScriptTextBox1.Position = UDim2.new(0, 5, 0, 5)
  201. ScriptTextBox1.Size = UDim2.new(1, -10, 1, -10)
  202. ScriptTextBox1.Font = Enum.Font.Code
  203. ScriptTextBox1.MultiLine = true
  204. ScriptTextBox1.PlaceholderText = "--Enter your script here--"
  205. ScriptTextBox1.TextColor3 = Color3.new(0, 0, 0)
  206. ScriptTextBox1.TextSize = 14
  207. ScriptTextBox1.TextWrapped = true
  208. ScriptTextBox1.TextXAlignment = Enum.TextXAlignment.Left
  209.  
  210. TextBoxContainer2.Name = "TextBoxContainer2"
  211. TextBoxContainer2.Parent = ScriptFrame
  212. TextBoxContainer2.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) -- Gris
  213. TextBoxContainer2.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  214. TextBoxContainer2.BorderSizePixel = 5
  215. TextBoxContainer2.Position = UDim2.new(0.1, 0, 0.2, 0)
  216. TextBoxContainer2.Size = UDim2.new(0.8, 0, 0.5, 0)
  217.  
  218. ScriptTextBox2.Name = "ScriptTextBox2"
  219. ScriptTextBox2.Parent = TextBoxContainer2
  220. ScriptTextBox2.BackgroundColor3 = Color3.new(1, 1, 1)
  221. ScriptTextBox2.BackgroundTransparency = 0.5
  222. ScriptTextBox2.Position = UDim2.new(0, 5, 0, 5)
  223. ScriptTextBox2.Size = UDim2.new(1, -10, 1, -10)
  224. ScriptTextBox2.Font = Enum.Font.Code
  225. ScriptTextBox2.MultiLine = true
  226. ScriptTextBox2.PlaceholderText = "--Enter your script here--"
  227. ScriptTextBox2.TextColor3 = Color3.new(0, 0, 0)
  228. ScriptTextBox2.TextSize = 14
  229. ScriptTextBox2.TextWrapped = true
  230. ScriptTextBox2.TextXAlignment = Enum.TextXAlignment.Left
  231.  
  232. TextBoxContainer3.Name = "TextBoxContainer3"
  233. TextBoxContainer3.Parent = ScriptFrame
  234. TextBoxContainer3.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) -- Gris
  235. TextBoxContainer3.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  236. TextBoxContainer3.BorderSizePixel = 5
  237. TextBoxContainer3.Position = UDim2.new(0.1, 0, 0.2, 0)
  238. TextBoxContainer3.Size = UDim2.new(0.8, 0, 0.5, 0)
  239.  
  240. ScriptTextBox3.Name = "ScriptTextBox3"
  241. ScriptTextBox3.Parent = TextBoxContainer3
  242. ScriptTextBox3.BackgroundColor3 = Color3.new(1, 1, 1)
  243. ScriptTextBox3.BackgroundTransparency = 0.5
  244. ScriptTextBox3.Position = UDim2.new(0, 5, 0, 5)
  245. ScriptTextBox3.Size = UDim2.new(1, -10, 1, -10)
  246. ScriptTextBox3.Font = Enum.Font.Code
  247. ScriptTextBox3.MultiLine = true
  248. ScriptTextBox3.PlaceholderText = "--Enter your script here--"
  249. ScriptTextBox3.TextColor3 = Color3.new(0, 0, 0)
  250. ScriptTextBox3.TextSize = 14
  251. ScriptTextBox3.TextWrapped = true
  252. ScriptTextBox3.TextXAlignment = Enum.TextXAlignment.Left
  253.  
  254. -- Cache les TextBoxContainer pour commencer
  255. TextBoxContainer2.Visible = false
  256. TextBoxContainer3.Visible = false
  257.  
  258. -- Boutons Tab 1, Tab 2, Tab 3
  259. Tab1Button.Name = "Tab1Button"
  260. Tab1Button.Parent = ScriptFrame
  261. Tab1Button.BackgroundColor3 = Color3.new(0, 0, 0) -- Noir
  262. Tab1Button.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  263. Tab1Button.BorderSizePixel = 5
  264. Tab1Button.Size = UDim2.new(0.15, 0, 0.05, 0)
  265. Tab1Button.Position = UDim2.new(0.1, 0, 0.1, 0)
  266. Tab1Button.Font = Enum.Font.Gotham
  267. Tab1Button.Text = "Tab 1"
  268. Tab1Button.TextColor3 = Color3.new(1, 1, 1)
  269. Tab1Button.TextSize = 14
  270.  
  271. Tab2Button.Name = "Tab2Button"
  272. Tab2Button.Parent = ScriptFrame
  273. Tab2Button.BackgroundColor3 = Color3.new(0, 0, 0) -- Noir
  274. Tab2Button.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  275. Tab2Button.BorderSizePixel = 5
  276. Tab2Button.Size = UDim2.new(0.15, 0, 0.05, 0)
  277. Tab2Button.Position = UDim2.new(0.425, 0, 0.1, 0)
  278. Tab2Button.Font = Enum.Font.Gotham
  279. Tab2Button.Text = "Tab 2"
  280. Tab2Button.TextColor3 = Color3.new(1, 1, 1)
  281. Tab2Button.TextSize = 14
  282.  
  283. Tab3Button.Name = "Tab3Button"
  284. Tab3Button.Parent = ScriptFrame
  285. Tab3Button.BackgroundColor3 = Color3.new(0, 0, 0) -- Noir
  286. Tab3Button.BorderColor3 = Color3.new(1, 0, 0) -- Rouge
  287. Tab3Button.BorderSizePixel = 5
  288. Tab3Button.Size = UDim2.new(0.15, 0, 0.05, 0)
  289. Tab3Button.Position = UDim2.new(0.75, 0, 0.1, 0)
  290. Tab3Button.Font = Enum.Font.Gotham
  291. Tab3Button.Text = "Tab 3"
  292. Tab3Button.TextColor3 = Color3.new(1, 1, 1)
  293. Tab3Button.TextSize = 14
  294.  
  295. -- Gestionnaires d'événements pour les boutons Tab 1, Tab 2, Tab 3
  296. Tab1Button.MouseButton1Click:Connect(function()
  297. TextBoxContainer1.Visible = true
  298. TextBoxContainer2.Visible = false
  299. TextBoxContainer3.Visible = false
  300. end)
  301.  
  302. Tab2Button.MouseButton1Click:Connect(function()
  303. TextBoxContainer1.Visible = false
  304. TextBoxContainer2.Visible = true
  305. TextBoxContainer3.Visible = false
  306. end)
  307.  
  308. Tab3Button.MouseButton1Click:Connect(function()
  309. TextBoxContainer1.Visible = false
  310. TextBoxContainer2.Visible = false
  311. TextBoxContainer3.Visible = true
  312. end)
  313.  
  314. ExecuteButton.Name = "ExecuteButton"
  315. ExecuteButton.Parent = ScriptFrame
  316. ExecuteButton.BackgroundColor3 = Color3.new(0, 0, 0)
  317. ExecuteButton.BorderColor3 = Color3.new(1, 0, 0)
  318. ExecuteButton.BorderSizePixel = 5
  319. ExecuteButton.Position = UDim2.new(0.1, 0, 0.8, 0)
  320. ExecuteButton.Size = UDim2.new(0.2, 0, 0.1, 0)
  321. ExecuteButton.Font = Enum.Font.Gotham
  322. ExecuteButton.Text = "Exe"
  323. ExecuteButton.TextColor3 = Color3.new(1, 1, 1)
  324. ExecuteButton.TextSize = 14
  325.  
  326. -- Gestionnaire d'événements pour l'exécution du script
  327. ExecuteButton.MouseButton1Click:Connect(function()
  328. local scriptToExecute = ""
  329. if TextBoxContainer1.Visible then
  330. scriptToExecute = ScriptTextBox1.Text
  331. elseif TextBoxContainer2.Visible then
  332. scriptToExecute = ScriptTextBox2.Text
  333. elseif TextBoxContainer3.Visible then
  334. scriptToExecute = ScriptTextBox3.Text
  335. end
  336.  
  337. if scriptToExecute ~= "" then
  338. local success, errorMessage = pcall(function()
  339. loadstring(scriptToExecute)()
  340. end)
  341. if not success then
  342. warn("Erreur d'exécution du script: " .. errorMessage)
  343. end
  344. end
  345. end)
  346.  
  347. BottomText.Name = "BottomText"
  348. BottomText.Parent = ScriptFrame
  349. BottomText.BackgroundTransparency = 1
  350. BottomText.Position = UDim2.new(0.7, 0, 0.9, 0)
  351. BottomText.Size = UDim2.new(0.3, 0, 0.1, 0)
  352. BottomText.Font = Enum.Font.Gotham
  353. BottomText.Text = "By D00bleHaxx"
  354. BottomText.TextColor3 = Color3.new(1, 1, 1)
  355. BottomText.TextSize = 14
  356. BottomText.TextWrapped = true
  357. BottomText.TextXAlignment = Enum.TextXAlignment.Right
  358. BottomText.TextYAlignment = Enum.TextYAlignment.Bottom
  359.  
  360. -- Page de réglage de vitesse (SpeedPageFrame)
  361. SpeedPageFrame.Name = "SpeedPageFrame"
  362. SpeedPageFrame.Parent = MainFrame
  363. SpeedPageFrame.Size = UDim2.new(1, 0, 1, 0)
  364. SpeedPageFrame.BackgroundTransparency = 1
  365. SpeedPageFrame.Visible = false
  366.  
  367. SpeedTextBox.Name = "SpeedTextBox"
  368. SpeedTextBox.Parent = SpeedPageFrame
  369. SpeedTextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  370. SpeedTextBox.Position = UDim2.new(0.1, 0, 0.2, 0)
  371. SpeedTextBox.Size = UDim2.new(0.8, 0, 0.1, 0)
  372. SpeedTextBox.Font = Enum.Font.Gotham
  373. SpeedTextBox.PlaceholderText = "Enter speed"
  374. SpeedTextBox.TextColor3 = Color3.new(0, 0, 0)
  375. SpeedTextBox.TextSize = 14
  376.  
  377. SetSpeedButton.Name = "SetSpeedButton"
  378. SetSpeedButton.Parent = SpeedPageFrame
  379. SetSpeedButton.BackgroundColor3 = Color3.new(0, 0, 0)
  380. SetSpeedButton.BorderColor3 = Color3.new(1, 0, 0)
  381. SetSpeedButton.BorderSizePixel = 5
  382. SetSpeedButton.Position = UDim2.new(0.1, 0, 0.4, 0)
  383. SetSpeedButton.Size = UDim2.new(0.2, 0, 0.1, 0)
  384. SetSpeedButton.Font = Enum.Font.Gotham
  385. SetSpeedButton.Text = "Set Speed"
  386. SetSpeedButton.TextColor3 = Color3.new(1, 1, 1)
  387. SetSpeedButton.TextSize = 14
  388.  
  389. -- Gestionnaire d'événement pour le bouton Set Speed
  390. SetSpeedButton.MouseButton1Click:Connect(function()
  391. local speed = tonumber(SpeedTextBox.Text)
  392. if speed then
  393. local player = game.Players.LocalPlayer
  394. local character = player.Character
  395. if character then
  396. local humanoid = character:FindFirstChildOfClass("Humanoid")
  397. if humanoid then
  398. humanoid.WalkSpeed = speed
  399. print("Vitesse réglée à", speed)
  400. else
  401. warn("Le joueur n'a pas de personnage ou d'humanoïde")
  402. end
  403. end
  404. else
  405. warn("Veuillez entrer une valeur numérique valide")
  406. end
  407. end)
  408.  
  409. -- Fonction pour gérer la visibilité du GUI
  410. local function toggleGui()
  411. MainFrame.Visible = not MainFrame.Visible
  412. if MainFrame.Visible then
  413. CloseButton.Text = "✖"
  414. else
  415. CloseButton.Text = "+"
  416. end
  417. end
  418.  
  419. -- Gestionnaire d'événements pour le bouton CloseButton
  420. CloseButton.MouseButton1Click:Connect(toggleGui)
  421.  
  422. -- Fonctions de navigation entre les pages
  423. local function showWelcomePage()
  424. WelcomeFrame.Visible = true
  425. ScriptFrame.Visible = false
  426. SearchPageFrame.Visible = false
  427. SpeedPageFrame.Visible = false
  428. end
  429.  
  430. local function showScriptPage()
  431. WelcomeFrame.Visible = false
  432. ScriptFrame.Visible = true
  433. SearchPageFrame.Visible = false
  434. SpeedPageFrame.Visible = false
  435. end
  436.  
  437. local function showSearchPage()
  438. WelcomeFrame.Visible = false
  439. ScriptFrame.Visible = false
  440. SearchPageFrame.Visible = true
  441. SpeedPageFrame.Visible = false
  442. end
  443.  
  444. local function showSpeedPage()
  445. WelcomeFrame.Visible = false
  446. ScriptFrame.Visible = false
  447. SearchPageFrame.Visible = false
  448. SpeedPageFrame.Visible = true
  449. end
  450.  
  451. -- Gestionnaires d'événements pour les boutons de navigation
  452. HomeButton.MouseButton1Click:Connect(showWelcomePage)
  453. DocumentButton.MouseButton1Click:Connect(showScriptPage)
  454. SearchButton.MouseButton1Click:Connect(showSearchPage)
  455. SettingsButton.MouseButton1Click:Connect(showSpeedPage)
  456.  
  457. -- Gestionnaire d'événements pour l'exécution du script
  458. ExecuteButton.MouseButton1Click:Connect(function()
  459. local scriptToExecute = ""
  460. if TextBoxContainer1.Visible then
  461. scriptToExecute = ScriptTextBox1.Text
  462. elseif TextBoxContainer2.Visible then
  463. scriptToExecute = ScriptTextBox2.Text
  464. elseif TextBoxContainer3.Visible then
  465. scriptToExecute = ScriptTextBox3.Text
  466. end
  467.  
  468. if scriptToExecute ~= "" then
  469. local success, errorMessage = pcall(function()
  470. loadstring(scriptToExecute)()
  471. end)
  472. if not success then
  473. warn("Erreur d'exécution du script: " .. errorMessage)
  474. end
  475. end
  476. end)
  477.  
  478. -- Initialement, affiche la page d'accueil
  479. showWelcomePage()
Advertisement
Add Comment
Please, Sign In to add comment