MaxproGlitcher

Version Test 1

May 18th, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.15 KB | None | 0 0
  1. --[[By MaxproGlitcher Discord:maxproglitcher
  2.  
  3.  
  4. _____ ________.__ .__ __ .__
  5. / \ _____ ___ ________________ ____ / _____/| | |__|/ |_ ____ | |__ ___________
  6. / \ / \\__ \ \ \/ /\____ \_ __ \/ _ \/ \ ___| | | \ __\/ ___\| | \_/ __ \_ __ \
  7. / Y \/ __ \_> < | |_> > | \( <_> ) \_\ \ |_| || | \ \___| Y \ ___/| | \/
  8. \____|__ (____ /__/\_ \| __/|__| \____/ \______ /____/__||__| \___ >___| /\___ >__|
  9. \/ \/ \/|__| \/ \/ \/ \/
  10.  
  11. ]]
  12.  
  13.  
  14. -- chargement du Gui
  15. local gui = Instance.new("ScreenGui", game.CoreGui)
  16. gui.IgnoreGuiInset = true
  17. gui.ResetOnSpawn = false
  18.  
  19. local background = Instance.new("Frame", gui)
  20. background.Size = UDim2.new(1, 0, 1, 0)
  21. background.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  22. background.BackgroundTransparency = 0.2
  23.  
  24. local label = Instance.new("TextLabel", background)
  25. label.Size = UDim2.new(0, 250, 0, 50)
  26. label.Position = UDim2.new(0.5, -125, 0.5, -80)
  27. label.BackgroundTransparency = 1
  28. label.Text = "Loading..."
  29. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. label.Font = Enum.Font.GothamBold
  31. label.TextSize = 26
  32.  
  33. local barFrame = Instance.new("Frame", background)
  34. barFrame.Size = UDim2.new(0, 300, 0, 14)
  35. barFrame.Position = UDim2.new(0.5, -150, 0.5, -20)
  36. barFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  37. barFrame.BorderSizePixel = 0
  38.  
  39. Instance.new("UICorner", barFrame).CornerRadius = UDim.new(0, 8)
  40. Instance.new("UIStroke", barFrame).Color = Color3.fromRGB(80, 80, 80)
  41.  
  42. local bar = Instance.new("Frame", barFrame)
  43. bar.Size = UDim2.new(0, 0, 1, 0)
  44. bar.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
  45. bar.BorderSizePixel = 0
  46.  
  47. Instance.new("UICorner", bar).CornerRadius = UDim.new(0, 8)
  48.  
  49. bar:TweenSize(UDim2.new(1, 0, 1, 0), "Out", "Quad", 2, true)
  50. task.wait(2.2)
  51.  
  52. label.Text = "Server Finder Deluxe!!!"
  53.  
  54. task.wait(2.2)
  55.  
  56. label.Text = "Success!!!"
  57. label.TextColor3 = Color3.fromRGB(200, 200, 200)
  58. task.wait(1.2)
  59.  
  60. gui:Destroy()
  61.  
  62.  
  63. local IsOnMobile = table.find({Enum.Platform.IOS, Enum.Platform.Android}, game:GetService("UserInputService"):GetPlatform())
  64.  
  65. getgenv().NextServer = nil
  66. getgenv().HasScannedAll = false
  67.  
  68.  
  69. local HttpService = game:GetService("HttpService")
  70. local TeleportService = game:GetService("TeleportService")
  71. local Players = game:GetService("Players")
  72. local LocalPlayer = Players.LocalPlayer
  73. local UserInputService = game:GetService("UserInputService")
  74.  
  75. local screenGui = Instance.new("ScreenGui", game:GetService("CoreGui"))
  76. local mainFrame = Instance.new("Frame", screenGui)
  77. mainFrame.Size = UDim2.new(0, 650, 0, 500)
  78. mainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  79. mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  80. mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  81. mainFrame.BorderSizePixel = 0
  82. mainFrame.Active = true
  83. mainFrame.Draggable = true
  84.  
  85. local title = Instance.new("TextLabel", mainFrame)
  86. title.Size = UDim2.new(1, 0, 0, 40)
  87. title.Position = UDim2.new(0, 0, 0, 0)
  88. title.BackgroundTransparency = 1
  89. title.Text = "Server Finder Deluxe"
  90. title.Font = Enum.Font.Ubuntu
  91. title.TextSize = 30
  92. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  93.  
  94. local versionLabel = Instance.new("TextLabel", mainFrame)
  95. versionLabel.Size = UDim2.new(0, 150, 0, 25)
  96. versionLabel.Position = UDim2.new(0, 10, 0, 10)
  97. versionLabel.BackgroundTransparency = 1
  98. versionLabel.Text = "v2.8"
  99. versionLabel.Font = Enum.Font.Ubuntu
  100. versionLabel.TextSize = 16
  101. versionLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  102. versionLabel.TextXAlignment = Enum.TextXAlignment.Left
  103.  
  104. -- Détection des périodes spéciales
  105. local isXmas = false
  106. local isHalloween = false
  107. local isNewYear = false
  108. local isEaster = false
  109.  
  110. pcall(function()
  111. local date = os.date("*t")
  112. isXmas = date.month == 12 and date.day >= 20 and date.day <= 26
  113. isHalloween = (date.month == 10 and date.day >= 31) or (date.month == 11 and date.day <= 2)
  114. isNewYear = (date.month == 12 and date.day >= 31) or (date.month == 1 and date.day <= 2)
  115. isEaster = (date.month == 3 and date.day >= 31) or (date.month == 4 and date.day <= 15)
  116. end)
  117.  
  118. -- Fonction pour appliquer les effets de texte
  119. local function decorateTitle(startEmoji, endEmoji)
  120. title.Text = startEmoji .. " Server Finder Deluxe " .. endEmoji
  121. title.Position = UDim2.new(0, -28, 0, 0)
  122. end
  123.  
  124. -- Effet Noël
  125. if isXmas then
  126. decorateTitle("🎄", "🎄")
  127. local cycleColors = {
  128. Color3.fromRGB(0, 255, 0),
  129. Color3.fromRGB(255, 0, 0),
  130. Color3.fromRGB(255, 255, 255)
  131. }
  132. local index = 1
  133. task.spawn(function()
  134. while true do
  135. title.TextColor3 = cycleColors[index]
  136. versionLabel.TextColor3 = cycleColors[index]
  137. index = index % #cycleColors + 1
  138. task.wait(0.5)
  139. end
  140. end)
  141. end
  142.  
  143. -- Effet Halloween
  144. if isHalloween then
  145. decorateTitle("🎃", "🎃")
  146. local cycleColors = {
  147. Color3.fromRGB(0, 0, 0),
  148. Color3.fromRGB(255, 165, 0)
  149. }
  150. local index = 1
  151. task.spawn(function()
  152. while true do
  153. title.TextColor3 = cycleColors[index]
  154. versionLabel.TextColor3 = cycleColors[index]
  155. index = index % #cycleColors + 1
  156. task.wait(0.5)
  157. end
  158. end)
  159. end
  160.  
  161. -- Effet Nouvel An
  162. if isNewYear then
  163. decorateTitle("🎉", "🎉")
  164. local cycleColors = {
  165. Color3.fromRGB(255, 255, 0),
  166. Color3.fromRGB(0, 0, 0)
  167. }
  168. local index = 1
  169. task.spawn(function()
  170. while true do
  171. title.TextColor3 = cycleColors[index]
  172. versionLabel.TextColor3 = cycleColors[index]
  173. index = index % #cycleColors + 1
  174. task.wait(0.5)
  175. end
  176. end)
  177. end
  178.  
  179. -- Effet Pâques
  180. if isEaster then
  181. decorateTitle("🐰", "🐰")
  182. local cycleColors = {
  183. Color3.fromRGB(216, 191, 216),
  184. Color3.fromRGB(255, 182, 193),
  185. Color3.fromRGB(193, 225, 193),
  186. Color3.fromRGB(173, 216, 230)
  187. }
  188. local index = 1
  189. task.spawn(function()
  190. while true do
  191. title.TextColor3 = cycleColors[index]
  192. versionLabel.TextColor3 = cycleColors[index]
  193. index = index % #cycleColors + 1
  194. task.wait(0.5)
  195. end
  196. end)
  197. end
  198.  
  199. -- Si aucune fête, retour à la normale
  200. if not isXmas and not isHalloween and not isNewYear and not isEaster then
  201. title.Text = "Server Finder Deluxe"
  202. title.Position = UDim2.new(0, 0, 0, 0)
  203. end
  204.  
  205.  
  206. local scrollFrame = Instance.new("ScrollingFrame", mainFrame)
  207. scrollFrame.Size = UDim2.new(1, -20, 1, -60)
  208. scrollFrame.Position = UDim2.new(0, 10, 0, 50)
  209. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  210. scrollFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  211. scrollFrame.ScrollBarThickness = 6
  212. scrollFrame.BackgroundTransparency = 1
  213.  
  214. local layout = Instance.new("UIListLayout", scrollFrame)
  215. layout.Padding = UDim.new(0, 10)
  216.  
  217. local posChange = 8
  218. local serverFrames = {}
  219.  
  220. -- Le code qui scann tout les servers publics
  221.  
  222. local function GetAllServers(PlaceID)
  223. getgenv().NextServer = nil
  224. getgenv().HasScannedAll = false
  225. local T = {}
  226. local Site = HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Desc&limit=100'))
  227. if Site.nextPageCursor and Site.nextPageCursor ~= "null" then
  228. getgenv().NextServer = HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Desc&limit=100&cursor=' .. Site.nextPageCursor))
  229. table.insert(T, (getgenv().NextServer).data)
  230. while not getgenv().HasScannedAll do
  231. task.wait()
  232. if (getgenv().NextServer).nextPageCursor and (getgenv().NextServer).nextPageCursor ~= "null" then
  233. getgenv().NextServer = HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Desc&limit=100&cursor=' .. (getgenv().NextServer).nextPageCursor))
  234. table.insert(T, (getgenv().NextServer).data)
  235. else
  236. getgenv().HasScannedAll = true
  237. end
  238. end
  239. else
  240. table.insert(T, Site.data)
  241. end
  242. return T
  243. end
  244.  
  245. local function CreateServerFrame(server)
  246. local serverFrame = Instance.new("Frame", scrollFrame)
  247. serverFrame.Size = UDim2.new(1, 0, 0, 120)
  248. serverFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  249. serverFrame.BorderSizePixel = 0
  250.  
  251. -- Textlabel Pour le nombre de joueurs, ping du servers , et le nombre Maximal du servers public.
  252.  
  253. local infoLabel = Instance.new("TextLabel", serverFrame)
  254. infoLabel.Size = UDim2.new(0, 300, 0, 60)
  255. infoLabel.Position = UDim2.new(0, 10, 0, 10)
  256. infoLabel.BackgroundTransparency = 1
  257. infoLabel.TextWrapped = true
  258. infoLabel.TextXAlignment = Enum.TextXAlignment.Left
  259. infoLabel.TextYAlignment = Enum.TextYAlignment.Top
  260. infoLabel.Font = Enum.Font.Ubuntu
  261. infoLabel.TextSize = 16
  262. infoLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  263. infoLabel.Text = "Ping : " .. (server.ping or "N/A") .. "\nPlayers : " .. server.playing .. "/" .. server.maxPlayers
  264.  
  265. -- ID des Servers Publics
  266.  
  267. local idLabel = Instance.new("TextLabel", serverFrame)
  268. idLabel.Size = UDim2.new(0, 300, 0, 20)
  269. idLabel.Position = UDim2.new(0, 10, 0, 80)
  270. idLabel.BackgroundTransparency = 1
  271. idLabel.TextWrapped = true
  272. idLabel.TextXAlignment = Enum.TextXAlignment.Left
  273. idLabel.TextYAlignment = Enum.TextYAlignment.Top
  274. idLabel.Font = Enum.Font.Ubuntu
  275. idLabel.TextSize = 14
  276. idLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  277. idLabel.Text = "ID : " .. server.id
  278.  
  279. -- Les buttons rejoint pour tout les Servers public obtenu
  280.  
  281. local joinButton = Instance.new("TextButton", serverFrame)
  282. joinButton.Size = UDim2.new(0, 100, 0, 40)
  283. joinButton.Position = UDim2.new(1, -110, 0.5, -20)
  284. joinButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  285. joinButton.Text = "Join"
  286. joinButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  287. joinButton.Font = Enum.Font.Ubuntu
  288. joinButton.TextSize = 18
  289.  
  290. joinButton.MouseButton1Click:Connect(function()
  291. TeleportService:TeleportToPlaceInstance(game.PlaceId, server.id, LocalPlayer)
  292. end)
  293.  
  294. table.insert(serverFrames, serverFrame)
  295. end
  296.  
  297. -- Global
  298.  
  299.  
  300. local allServers = {}
  301.  
  302. function updateServerList(servers)
  303. for _, v in pairs(serverFrames) do
  304. v:Destroy()
  305. end
  306. posChange = 8
  307. table.clear(serverFrames)
  308.  
  309. for _, server in ipairs(servers) do
  310. CreateServerFrame(server)
  311. posChange += 154
  312. end
  313. end
  314.  
  315. function refreshServers()
  316. local servers = GetAllServers(game.PlaceId)
  317. if servers then
  318. allServers = servers[1]
  319. updateServerList(allServers)
  320. end
  321. end
  322.  
  323.  
  324. refreshServers()
  325.  
  326. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  327. if gameProcessed then return end
  328. if input.KeyCode == Enum.KeyCode.RightControl then
  329. screenGui:Destroy()
  330. end
  331. end)
  332.  
  333. -- Fonction de notification d'erreur
  334. local function showError(message)
  335. local notif = Instance.new("TextLabel", screenGui)
  336. notif.Size = UDim2.new(0, 300, 0, 40)
  337. notif.Position = UDim2.new(1, -310, 1, -50)
  338. notif.AnchorPoint = Vector2.new(0, 1)
  339. notif.BackgroundColor3 = Color3.fromRGB(180, 50, 50)
  340. notif.Text = message
  341. notif.TextColor3 = Color3.new(1,1,1)
  342. notif.Font = Enum.Font.Ubuntu
  343. notif.TextSize = 16
  344. notif.BackgroundTransparency = 0.2
  345. notif.TextXAlignment = Enum.TextXAlignment.Left
  346. notif.TextYAlignment = Enum.TextYAlignment.Center
  347.  
  348. Instance.new("UICorner", notif).CornerRadius = UDim.new(0, 8)
  349.  
  350. task.delay(4, function()
  351. if notif then
  352. notif:Destroy()
  353. end
  354. end)
  355. end
  356.  
  357. local LocalizationService = game:GetService("LocalizationService")
  358. local TweenService = game:GetService("TweenService")
  359.  
  360. -- Bouton Refresh avec gestion d'erreur
  361. local refreshBtn = Instance.new("ImageButton", mainFrame)
  362. refreshBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  363. refreshBtn.Size = UDim2.new(0, 50, 0, 50)
  364. refreshBtn.Position = UDim2.new(0.5, 250, 0.5, -220)
  365. refreshBtn.Image = "http://www.roblox.com/asset/?id=126446661859683"
  366. refreshBtn.BackgroundTransparency = 1
  367. refreshBtn.ZIndex = 2
  368.  
  369. -- Traductions du message d'erreur
  370. local translations = {
  371. ["fr"] = "Erreur de chargement. Réessaie.",
  372. ["en"] = "Error loading. Please try again.",
  373. ["es"] = "Error al cargar. Inténtalo de nuevo.",
  374. ["pt"] = "Erro ao carregar. Por favor, tente novamente.",
  375. ["tr"] = "Yükleme hatası. Lütfen tekrar deneyin.",
  376. ["it"] = "Errore nel caricamento. Riprova.",
  377. ["de"] = "Fehler beim Laden. Bitte versuche es erneut.",
  378. ["ar"] = "حدث خطأ أثناء التحميل. الرجاء المحاولة مرة أخرى.",
  379. ["ja"] = "読み込みエラーが発生しました。もう一度お試しください。",
  380. ["tr"] = "Sunucuya yeniden bağlanılıyor...",
  381. ["ru"] = "Ошибка загрузки. Пожалуйста, попробуйте еще раз.",
  382. ["zh"] = "加载错误。请重试。",
  383. }
  384.  
  385.  
  386. local function getTranslatedMessage()
  387. local langCode = LocalizationService.RobloxLocaleId:sub(1, 2)
  388. return translations[langCode] or translations["en"]
  389. end
  390.  
  391. -- Notification moderne traduite
  392. local function showError()
  393. local message = getTranslatedMessage()
  394. local screenGui = mainFrame:FindFirstAncestorOfClass("ScreenGui")
  395. if not screenGui then return end
  396.  
  397. local notif = Instance.new("Frame")
  398. notif.Size = UDim2.new(0, 320, 0, 60)
  399. notif.Position = UDim2.new(1, 340, 1, -20)
  400. notif.AnchorPoint = Vector2.new(1, 1)
  401. notif.BackgroundColor3 = Color3.fromRGB(200, 40, 40)
  402. notif.BorderSizePixel = 0
  403. notif.ZIndex = 10
  404. notif.Parent = screenGui
  405.  
  406. Instance.new("UICorner", notif).CornerRadius = UDim.new(0, 10)
  407.  
  408. local stroke = Instance.new("UIStroke", notif)
  409. stroke.Color = Color3.fromRGB(0, 0, 0)
  410. stroke.Thickness = 1
  411.  
  412. local label = Instance.new("TextLabel", notif)
  413. label.Size = UDim2.new(1, -30, 1, 0)
  414. label.Position = UDim2.new(0, 15, 0, 0)
  415. label.Text = message
  416. label.TextColor3 = Color3.fromRGB(0, 0, 0)
  417. label.BackgroundTransparency = 1
  418. label.TextSize = 16
  419. label.Font = Enum.Font.GothamMedium
  420. label.TextXAlignment = Enum.TextXAlignment.Left
  421. label.ZIndex = 11
  422. label.Parent = notif
  423.  
  424. TweenService:Create(notif, TweenInfo.new(0.3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
  425. Position = UDim2.new(1, -20, 1, -20)
  426. }):Play()
  427.  
  428. task.delay(3, function()
  429. local tween = TweenService:Create(notif, TweenInfo.new(0.3), {
  430. BackgroundTransparency = 1,
  431. Position = UDim2.new(1, 340, 1, -20)
  432. })
  433. tween:Play()
  434. tween.Completed:Wait()
  435. notif:Destroy()
  436. end)
  437. end
  438.  
  439. refreshBtn.MouseButton1Click:Connect(function()
  440. for _, v in pairs(serverFrames) do
  441. v:Destroy()
  442. end
  443. posChange = 8
  444. table.clear(serverFrames)
  445.  
  446. local success, err = pcall(refreshServers)
  447. if not success then
  448. showError()
  449. end
  450. end)
  451.  
  452.  
  453. local function sortServers(servers, currentSort)
  454. if currentSort == "fastest" then
  455. table.sort(servers, function(a, b)
  456. return (a.ping or 9999) < (b.ping or 9999)
  457. end)
  458. elseif currentSort == "lowPlayers" then
  459. table.sort(servers, function(a, b)
  460. return a.playing < b.playing
  461. end)
  462. elseif currentSort == "maxPlayers" then
  463. table.sort(servers, function(a, b)
  464. return a.playing > b.playing
  465. end)
  466. end
  467. return servers
  468. end
  469.  
  470. local lowPlayersBtn = Instance.new("ImageButton", mainFrame)
  471. lowPlayersBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  472. lowPlayersBtn.Size = UDim2.new(0, 40, 0, 40)
  473. lowPlayersBtn.Position = UDim2.new(0.5, 250, 0.5, -220)
  474. lowPlayersBtn.Image = "http://www.roblox.com/asset/?id=138896199949173"
  475. lowPlayersBtn.BackgroundTransparency = 1
  476. lowPlayersBtn.ZIndex = 2
  477.  
  478. local maxPlayersBtn = Instance.new("ImageButton", mainFrame)
  479. maxPlayersBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  480. maxPlayersBtn.Size = UDim2.new(0, 40, 0, 40)
  481. maxPlayersBtn.Position = UDim2.new(0.5, 346, 0.5, -220)
  482. maxPlayersBtn.Image = "http://www.roblox.com/asset/?id=138896199949173"
  483. maxPlayersBtn.BackgroundTransparency = 1
  484. maxPlayersBtn.ZIndex = 2
  485.  
  486. lowPlayersBtn.MouseButton1Click:Connect(function()
  487. local sorted = sortServers(allServers, "lowPlayers")
  488. updateServerList(sorted)
  489. end)
  490.  
  491. maxPlayersBtn.MouseButton1Click:Connect(function()
  492. local sorted = sortServers(allServers, "maxPlayers")
  493. updateServerList(sorted)
  494. end)
  495.  
  496.  
  497. -- Le button Close pour fermer le Gui Server Finder Deluxe
  498.  
  499. local closeBtn = Instance.new("ImageButton", mainFrame)
  500. closeBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  501. closeBtn.Size = UDim2.new(0, 40, 0, 40)
  502. closeBtn.Position = UDim2.new(0.5, 298, 0.5, -220)
  503. closeBtn.Image = "http://www.roblox.com/asset/?id=138896199949173"
  504. closeBtn.BackgroundTransparency = 1
  505. closeBtn.ZIndex = 2
  506.  
  507. closeBtn.MouseButton1Click:Connect(function()
  508. screenGui:Destroy()
  509. end)
  510.  
  511.  
  512.  
  513. -- Le button Close pour fermer le Gui Server Finder Deluxe
  514.  
  515. local closeBtn = Instance.new("ImageButton", mainFrame)
  516. closeBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  517. closeBtn.Size = UDim2.new(0, 40, 0, 40)
  518. closeBtn.Position = UDim2.new(0.5, 298, 0.5, -220)
  519. closeBtn.Image = "http://www.roblox.com/asset/?id=138896199949173"
  520. closeBtn.BackgroundTransparency = 1
  521. closeBtn.ZIndex = 2
  522.  
  523. closeBtn.MouseButton1Click:Connect(function()
  524. screenGui:Destroy()
  525. end)
  526.  
  527. -- Le Code du button Rejoin pour relancer le jeux dans le même servers publics
  528.  
  529. local TweenService = game:GetService("TweenService")
  530. local TeleportService = game:GetService("TeleportService")
  531. local Players = game:GetService("Players")
  532. local LocalizationService = game:GetService("LocalizationService")
  533. local LocalPlayer = Players.LocalPlayer
  534.  
  535. local langText = {
  536. ["fr"] = "Reconnexion au serveur...",
  537. ["en"] = "Reconnecting to server...",
  538. ["es"] = "Reconectando al servidor...",
  539. ["de"] = "Wiederverbindung zum Server...",
  540. ["it"] = "Riconnessione al server...",
  541. ["pt"] = "Reconectando ao servidor...",
  542. ["ru"] = "Переподключение к серверу...",
  543. ["zh"] = "正在重新连接服务器...",
  544. ["tr"] = "Sunucuya yeniden bağlanılıyor...",
  545. ["ja"] = "サーバーに再接続中...",
  546. ["ar"] = "إعادة الاتصال بالخادم...",
  547. }
  548.  
  549. local function getTranslatedMessage()
  550. local langCode = LocalizationService.RobloxLocaleId:sub(1, 2)
  551. return langText[langCode] or langText["en"]
  552. end
  553.  
  554. local function Translated(mainFrame)
  555. if not mainFrame then return end
  556.  
  557. local screenGui = mainFrame:FindFirstAncestorOfClass("ScreenGui")
  558. if not screenGui then return end
  559.  
  560. local notifFrame = Instance.new("Frame")
  561. notifFrame.Size = UDim2.new(0, 320, 0, 60)
  562. notifFrame.Position = UDim2.new(1, 300, 1, -20)
  563. notifFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  564. notifFrame.BackgroundTransparency = 0.2
  565. notifFrame.BorderSizePixel = 0
  566. notifFrame.AnchorPoint = Vector2.new(1, 1)
  567. notifFrame.Visible = false
  568. notifFrame.ZIndex = 5
  569. notifFrame.Parent = screenGui
  570.  
  571. Instance.new("UICorner", notifFrame).CornerRadius = UDim.new(0, 10)
  572. local stroke = Instance.new("UIStroke", notifFrame)
  573. stroke.Color = Color3.fromRGB(0, 0, 0)
  574. stroke.Thickness = 1
  575.  
  576. local notifText = Instance.new("TextLabel", notifFrame)
  577. notifText.Size = UDim2.new(1, -30, 1, 0)
  578. notifText.Position = UDim2.new(0, 15, 0, 0)
  579. notifText.BackgroundTransparency = 1
  580. notifText.TextColor3 = Color3.fromRGB(255, 255, 255)
  581. notifText.Font = Enum.Font.GothamMedium
  582. notifText.TextSize = 16
  583. notifText.TextXAlignment = Enum.TextXAlignment.Left
  584. notifText.ZIndex = 6
  585. notifText.Text = getTranslatedMessage()
  586.  
  587. local RejoinButton = Instance.new("ImageButton", mainFrame)
  588. RejoinButton.AnchorPoint = Vector2.new(0.5, 0.5)
  589. RejoinButton.Size = UDim2.new(0, 40, 0, 40)
  590. RejoinButton.Position = UDim2.new(0.5, 204, 0.5, -220)
  591. RejoinButton.Image = "http://www.roblox.com/asset/?id=103864549538113"
  592. RejoinButton.BackgroundTransparency = 1
  593. RejoinButton.ZIndex = 10
  594.  
  595. RejoinButton.MouseButton1Click:Connect(function()
  596. notifText.Text = getTranslatedMessage()
  597. notifFrame.Visible = true
  598.  
  599. TweenService:Create(notifFrame, TweenInfo.new(0.3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
  600. Position = UDim2.new(1, -20, 1, -20)
  601. }):Play()
  602.  
  603. task.delay(3, function()
  604. local tween = TweenService:Create(notifFrame, TweenInfo.new(0.3), {
  605. BackgroundTransparency = 1,
  606. Position = UDim2.new(1, 300, 1, -20)
  607. })
  608. tween:Play()
  609. tween.Completed:Wait()
  610. notifFrame.Visible = false
  611. notifFrame.BackgroundTransparency = 0.2
  612. notifFrame.Position = UDim2.new(1, 300, 1, -20)
  613. end)
  614.  
  615. TeleportService:Teleport(game.PlaceId, LocalPlayer)
  616. end)
  617. end
  618.  
  619. Translated(mainFrame)
  620.  
  621.  
  622.  
  623.  
  624. -- Button Resize Button
  625.  
  626. local resizeButton = Instance.new("ImageButton", mainFrame)
  627. resizeButton.AnchorPoint = Vector2.new(0.5, 0.5)
  628. resizeButton.Size = UDim2.new(0, 40, 0, 40)
  629. resizeButton.Position = UDim2.new(0.5, 157, 0.5, -220)
  630. resizeButton.Image = "http://www.roblox.com/asset/?id=92176830367195"
  631. resizeButton.BackgroundTransparency = 1
  632. resizeButton.ZIndex = 2
  633.  
  634. local isSmall = true -- Définir la taille initiale comme petite
  635.  
  636. -- Fonction pour basculer entre les tailles
  637. local function toggleGuiSize()
  638. if isSmall then
  639. mainFrame.Size = UDim2.new(0, 650, 0, 500)
  640. scrollFrame.Size = UDim2.new(1, -20, 1, -60)
  641. scrollFrame.Position = UDim2.new(0, 10, 0, 50)
  642.  
  643. refreshBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  644. refreshBtn.Size = UDim2.new(0, 50, 0, 50)
  645. refreshBtn.Position = UDim2.new(0.5, 250, 0.5, -220)
  646.  
  647. closeBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  648. closeBtn.Size = UDim2.new(0, 40, 0, 40)
  649. closeBtn.Position = UDim2.new(0.5, 298, 0.5, -220)
  650.  
  651. resizeButton.AnchorPoint = Vector2.new(0.5, 0.5)
  652. resizeButton.Size = UDim2.new(0, 40, 0, 40)
  653. resizeButton.Position = UDim2.new(0.5, 157, 0.5, -220)
  654.  
  655. RejointButton.AnchorPoint = Vector2.new(0.5, 0.5)
  656. RejointButton.Size = UDim2.new(0, 40, 0, 40)
  657. RejointButton.Position = UDim2.new(0.5, 204, 0.5, -220)
  658.  
  659. else
  660. mainFrame.Size = UDim2.new(0, 470, 0, 390)
  661. scrollFrame.Size = UDim2.new(1, -10, 1, -40)
  662. scrollFrame.Position = UDim2.new(0, 5, 0, 40)
  663.  
  664. refreshBtn.Position = UDim2.new(0.5, 195, 0.5, -175)
  665. refreshBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  666. refreshBtn.Size = UDim2.new(0, 30, 0, 30
  667.  
  668. )
  669. closeBtn.Position = UDim2.new(0.5, 220, 0.5, -175)
  670. closeBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  671. closeBtn.Size = UDim2.new(0, 25, 0, 25)
  672.  
  673. RejointButton.AnchorPoint = Vector2.new(0.5, 0.5)
  674. RejointButton.Size = UDim2.new(0, 25, 0, 25)
  675. RejointButton.Position = UDim2.new(0.5, 169, 0.5, -175)
  676.  
  677. resizeButton.AnchorPoint = Vector2.new(0.5, 0.5)
  678. resizeButton.Size = UDim2.new(0, 25, 0, 25)
  679. resizeButton.Position = UDim2.new(0.5, 144, 0.5, -175)
  680.  
  681. end
  682. isSmall = not isSmall
  683. end
  684.  
  685. resizeButton.MouseButton1Click:Connect(toggleGuiSize)
Advertisement
Add Comment
Please, Sign In to add comment