--================================================ -- ST3R HUB -- AUTO TRANSLATOR MINI - FULL MULTI --================================================ local Players = game:GetService("Players") local HttpService = game:GetService("HttpService") local UIS = game:GetService("UserInputService") local CoreGui = game:GetService("CoreGui") local Me = Players.LocalPlayer local Request = request or http_request or (syn and syn.request) if not Request then warn("ST3R: HTTP REQUEST NOT SUPPORTED") return end --================================================ -- LANGUAGES --================================================ local Languages = { { name = "Français", code = "fr", ui = { title = "ST3R TRADUCTEUR", choose = "CHOISIR LA LANGUE", confirm = "CONFIRMER", player = "Joueur : %s", prompt = "Touche un joueur", deselect = "DÉSÉLECTIONNER", on = "TRADUCTION : ON", off = "TRADUCTION : OFF", translating = "Traduction...", error = "Traduction impossible", language = "LANGUE : %s" } }, { name = "English", code = "en", ui = { title = "ST3R TRANSLATOR", choose = "SELECT LANGUAGE", confirm = "CONFIRM", player = "Player: %s", prompt = "Tap a player", deselect = "DESELECT", on = "TRANSLATION: ON", off = "TRANSLATION: OFF", translating = "Translating...", error = "Translation unavailable", language = "LANGUAGE: %s" } }, { name = "Español", code = "es", ui = { title = "ST3R TRADUCTOR", choose = "ELEGIR IDIOMA", confirm = "CONFIRMAR", player = "Jugador: %s", prompt = "Toca un jugador", deselect = "DESELECCIONAR", on = "TRADUCCIÓN: ON", off = "TRADUCCIÓN: OFF", translating = "Traduciendo...", error = "Traducción imposible", language = "IDIOMA: %s" } }, { name = "Português", code = "pt", ui = { title = "ST3R TRADUTOR", choose = "ESCOLHER IDIOMA", confirm = "CONFIRMAR", player = "Jogador: %s", prompt = "Toque num jogador", deselect = "DESSELECIONAR", on = "TRADUÇÃO: ON", off = "TRADUÇÃO: OFF", translating = "Traduzindo...", error = "Tradução indisponível", language = "IDIOMA: %s" } }, { name = "Deutsch", code = "de", ui = { title = "ST3R ÜBERSETZER", choose = "SPRACHE WÄHLEN", confirm = "BESTÄTIGEN", player = "Spieler: %s", prompt = "Spieler antippen", deselect = "ABWÄHLEN", on = "ÜBERSETZUNG: AN", off = "ÜBERSETZUNG: AUS", translating = "Übersetzen...", error = "Übersetzung nicht möglich", language = "SPRACHE: %s" } }, { name = "Italiano", code = "it", ui = { title = "ST3R TRADUTTORE", choose = "SCEGLI LA LINGUA", confirm = "CONFERMA", player = "Giocatore: %s", prompt = "Tocca un giocatore", deselect = "DESELEZIONA", on = "TRADUZIONE: ON", off = "TRADUZIONE: OFF", translating = "Traduzione...", error = "Traduzione non disponibile", language = "LINGUA: %s" } }, { name = "Русский", code = "ru", ui = { title = "ST3R ПЕРЕВОДЧИК", choose = "ВЫБРАТЬ ЯЗЫК", confirm = "ПОДТВЕРДИТЬ", player = "Игрок: %s", prompt = "Нажми на игрока", deselect = "ОТМЕНИТЬ ВЫБОР", on = "ПЕРЕВОД: ВКЛ", off = "ПЕРЕВОД: ВЫКЛ", translating = "Перевод...", error = "Ошибка перевода", language = "ЯЗЫК: %s" } }, { name = "日本語", code = "ja", ui = { title = "ST3R 翻訳", choose = "言語を選択", confirm = "確認", player = "プレイヤー: %s", prompt = "プレイヤーをタップ", deselect = "選択解除", on = "翻訳: ON", off = "翻訳: OFF", translating = "翻訳中...", error = "翻訳できません", language = "言語: %s" } }, { name = "한국어", code = "ko", ui = { title = "ST3R 번역기", choose = "언어 선택", confirm = "확인", player = "플레이어: %s", prompt = "플레이어를 터치하세요", deselect = "선택 해제", on = "번역: ON", off = "번역: OFF", translating = "번역 중...", error = "번역할 수 없습니다", language = "언어: %s" } }, { name = "Türkçe", code = "tr", ui = { title = "ST3R ÇEVİRMEN", choose = "DİL SEÇ", confirm = "ONAYLA", player = "Oyuncu: %s", prompt = "Bir oyuncuya dokun", deselect = "SEÇİMİ KALDIR", on = "ÇEVİRİ: AÇIK", off = "ÇEVİRİ: KAPALI", translating = "Çevriliyor...", error = "Çeviri yapılamadı", language = "DİL: %s" } }, { name = "العربية", code = "ar", ui = { title = "ST3R مترجم", choose = "اختر اللغة", confirm = "تأكيد", player = "اللاعب: %s", prompt = "اضغط على لاعب", deselect = "إلغاء التحديد", on = "الترجمة: تشغيل", off = "الترجمة: إيقاف", translating = "جارٍ الترجمة...", error = "تعذرت الترجمة", language = "اللغة: %s" } }, { name = "中文", code = "zh-CN", ui = { title = "ST3R 翻译器", choose = "选择语言", confirm = "确认", player = "玩家: %s", prompt = "点击一名玩家", deselect = "取消选择", on = "翻译: 开", off = "翻译: 关", translating = "翻译中...", error = "无法翻译", language = "语言: %s" } } } --================================================ -- CLEANUP --================================================ local old = CoreGui:FindFirstChild("ST3R_TRANSLATOR") if old then old:Destroy() end local gui = Instance.new("ScreenGui") gui.Name = "ST3R_TRANSLATOR" gui.ResetOnSpawn = false gui.Parent = CoreGui local function corner(obj, radius) local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, radius) c.Parent = obj end local function label(parent, text, size, pos) local obj = Instance.new("TextLabel") obj.Size = size obj.Position = pos obj.BackgroundTransparency = 1 obj.Text = text obj.TextColor3 = Color3.new(1,1,1) obj.TextSize = 12 obj.Font = Enum.Font.GothamBold obj.Parent = parent return obj end --================================================ -- LANGUAGE MENU --================================================ local setup = Instance.new("Frame") setup.Size = UDim2.fromOffset(230,155) setup.Position = UDim2.new(0.5,-115,0.5,-77) setup.BackgroundColor3 = Color3.fromRGB(22,22,29) setup.BorderSizePixel = 0 setup.Parent = gui corner(setup,12) local header = Instance.new("TextLabel") header.Size = UDim2.new(1,0,0,32) header.BackgroundColor3 = Color3.fromRGB(155,35,55) header.Text = "ST3R TRANSLATOR" header.TextColor3 = Color3.new(1,1,1) header.TextSize = 14 header.Font = Enum.Font.GothamBold header.Parent = setup corner(header,10) local chooseLabel = label( setup, "SELECT LANGUAGE", UDim2.new(1,-20,0,22), UDim2.fromOffset(10,38) ) local dropdown = Instance.new("TextButton") dropdown.Size = UDim2.new(1,-20,0,30) dropdown.Position = UDim2.fromOffset(10,65) dropdown.BackgroundColor3 = Color3.fromRGB(42,42,52) dropdown.Text = "Français ▼" dropdown.TextColor3 = Color3.new(1,1,1) dropdown.TextSize = 12 dropdown.Font = Enum.Font.GothamBold dropdown.Parent = setup corner(dropdown,6) local languageList = Instance.new("ScrollingFrame") languageList.Size = UDim2.new(1,-20,0,0) languageList.Position = UDim2.fromOffset(10,99) languageList.BackgroundColor3 = Color3.fromRGB(32,32,42) languageList.BorderSizePixel = 0 languageList.ScrollBarThickness = 4 languageList.CanvasSize = UDim2.fromOffset(0,#Languages*32) languageList.Visible = false languageList.ZIndex = 5 languageList.Parent = setup corner(languageList,6) local layout = Instance.new("UIListLayout") layout.Padding = UDim.new(0,2) layout.Parent = languageList local selectedIndex = 1 local currentLanguage = Languages[1] dropdown.Activated:Connect(function() languageList.Visible = not languageList.Visible languageList.Size = languageList.Visible and UDim2.new(1,-20,0,125) or UDim2.new(1,-20,0,0) dropdown.Text = currentLanguage.name .. (languageList.Visible and " ▲" or " ▼") end) for i,lang in ipairs(Languages) do local option = Instance.new("TextButton") option.Size = UDim2.new(1,-5,0,30) option.BackgroundColor3 = Color3.fromRGB(48,48,60) option.Text = lang.name option.TextColor3 = Color3.new(1,1,1) option.TextSize = 12 option.Font = Enum.Font.Gotham option.LayoutOrder = i option.ZIndex = 6 option.Parent = languageList corner(option,5) option.Activated:Connect(function() selectedIndex = i currentLanguage = lang dropdown.Text = lang.name.." ▼" languageList.Visible = false languageList.Size = UDim2.new(1,-20,0,0) chooseLabel.Text = lang.ui.choose header.Text = lang.ui.title end) end local confirm = Instance.new("TextButton") confirm.Size = UDim2.new(1,-20,0,27) confirm.Position = UDim2.fromOffset(10,116) confirm.BackgroundColor3 = Color3.fromRGB(155,35,55) confirm.Text = "CONFIRM" confirm.TextColor3 = Color3.new(1,1,1) confirm.TextSize = 12 confirm.Font = Enum.Font.GothamBold confirm.Parent = setup corner(confirm,6) --================================================ -- MAIN TRANSLATOR --================================================ local function startTranslator() setup:Destroy() local selected = nil local translations = {} local active = {} local lastCall = 0 local enabled = false local collapsed = false local ui = currentLanguage.ui local targetLanguage = currentLanguage.code -- MAIN PANEL local panel = Instance.new("Frame") panel.Size = UDim2.fromOffset(185,120) panel.Position = UDim2.new(0.5,-92,0,65) panel.BackgroundColor3 = Color3.fromRGB(22,22,29) panel.BorderSizePixel = 0 panel.Active = true panel.Parent = gui corner(panel,10) local title = Instance.new("TextLabel") title.Size = UDim2.new(1,0,0,25) title.BackgroundColor3 = Color3.fromRGB(155,35,55) title.Text = ui.title title.TextColor3 = Color3.new(1,1,1) title.TextSize = 12 title.Font = Enum.Font.GothamBold title.Parent = panel local retract = Instance.new("TextButton") retract.Size = UDim2.fromOffset(25,23) retract.Position = UDim2.new(1,-27,0,1) retract.BackgroundColor3 = Color3.fromRGB(90,25,35) retract.TextColor3 = Color3.new(1,1,1) retract.Text = "−" retract.TextSize = 18 retract.Parent = panel local status = label( panel, ui.prompt, UDim2.new(1,-6,0,20), UDim2.fromOffset(3,27) ) status.Font = Enum.Font.Gotham local button = Instance.new("TextButton") button.Position = UDim2.fromOffset(7,51) button.Size = UDim2.new(1,-14,0,22) button.Text = ui.off button.TextSize = 11 button.Font = Enum.Font.GothamBold button.TextColor3 = Color3.new(1,1,1) button.BackgroundColor3 = Color3.fromRGB(170,35,45) button.Parent = panel corner(button,6) local deselect = Instance.new("TextButton") deselect.Position = UDim2.fromOffset(7,76) deselect.Size = UDim2.new(1,-14,0,19) deselect.Text = ui.deselect deselect.TextSize = 9 deselect.TextColor3 = Color3.new(1,1,1) deselect.BackgroundColor3 = Color3.fromRGB(65,35,40) deselect.Parent = panel local languageInfo = label( panel, string.format(ui.language,currentLanguage.name), UDim2.new(1,0,0,16), UDim2.fromOffset(0,100) ) languageInfo.TextColor3 = Color3.fromRGB(220,120,140) languageInfo.TextSize = 9 -- STATUS local function updateStatus() status.Text = selected and string.format(ui.player,selected.Name) or ui.prompt end -- RETRACT local function setCollapsed() collapsed = not collapsed status.Visible = not collapsed button.Visible = not collapsed deselect.Visible = not collapsed languageInfo.Visible = not collapsed panel.Size = collapsed and UDim2.fromOffset(185,27) or UDim2.fromOffset(185,120) retract.Text = collapsed and "+" or "−" end retract.Activated:Connect(setCollapsed) -- MOBILE DRAG local dragging = false local dragStart local startPosition title.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPosition = panel.Position end end) UIS.InputChanged:Connect(function(input) if dragging and ( input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement ) then local delta = input.Position - dragStart panel.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) -- CLEAN TRANSLATIONS local function clearTranslations() for _,item in pairs(translations) do if item.gui then item.gui:Destroy() end end table.clear(translations) table.clear(active) end -- ON / OFF local function updateButton() button.Text = enabled and ui.on or ui.off button.BackgroundColor3 = enabled and Color3.fromRGB(35,145,65) or Color3.fromRGB(170,35,45) end button.Activated:Connect(function() enabled = not enabled if not enabled then clearTranslations() end updateStatus() updateButton() end) local function selectPlayer(player) selected = player clearTranslations() updateStatus() end deselect.Activated:Connect(function() selectPlayer(nil) end) -- PLAYER SELECTION UIS.InputBegan:Connect(function(input,processed) if processed then return end if input.UserInputType ~= Enum.UserInputType.Touch and input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end local pos = input.Position local p = panel.AbsolutePosition local s = panel.AbsoluteSize if pos.X >= p.X and pos.X <= p.X+s.X and pos.Y >= p.Y and pos.Y <= p.Y+s.Y then return end local camera = workspace.CurrentCamera if not camera then return end local ray = camera:ScreenPointToRay(pos.X,pos.Y) local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = {Me.Character} local result = workspace:Raycast( ray.Origin, ray.Direction*1000, params ) if result then local model = result.Instance:FindFirstAncestorOfClass("Model") local player = model and Players:GetPlayerFromCharacter(model) if player and player ~= Me then selectPlayer(player) end end end) -- TRANSLATION local function translate(text) if text == "" or not enabled then return nil end local waitTime = 1.2-(os.clock()-lastCall) if waitTime > 0 then task.wait(waitTime) end if not enabled then return nil end lastCall = os.clock() local url = "https://api.mymemory.translated.net/get?q=" ..HttpService:UrlEncode(text) .."&langpair=autodetect|" ..targetLanguage local success,response = pcall(function() return Request({ Url = url, Method = "GET" }) end) if not success or not response or response.StatusCode ~= 200 then return nil end local ok,data = pcall(function() return HttpService:JSONDecode(response.Body) end) if not ok or not data.responseData then return nil end return data.responseData.translatedText end -- TRANSLATION DISPLAY local function makeLabel(source) local adornee = source.Adornee if not adornee then if source.Parent and source.Parent:IsA("BasePart") then adornee = source.Parent elseif selected and selected.Character then adornee = selected.Character:FindFirstChild("HumanoidRootPart") end end if not adornee then return nil end local board = Instance.new("BillboardGui") board.Name = "ST3R_Translation" board.Adornee = adornee board.Size = UDim2.fromOffset(280,55) board.StudsOffset = Vector3.new(0,-2,0) board.AlwaysOnTop = true board.MaxDistance = 100 board.Parent = gui local textLabel = Instance.new("TextLabel") textLabel.Size = UDim2.fromScale(1,1) textLabel.BackgroundColor3 = Color3.fromRGB(15,15,20) textLabel.BackgroundTransparency = 0.1 textLabel.TextColor3 = Color3.fromRGB(100,255,150) textLabel.TextStrokeTransparency = 0.2 textLabel.TextWrapped = true textLabel.TextScaled = true textLabel.Font = Enum.Font.GothamBold textLabel.Text = ui.translating textLabel.Parent = board corner(textLabel,6) return { gui = board, label = textLabel, original = "" } end -- RP DETECTION local function scanPlayer() if not enabled then return end local player = selected if not player or not player.Character then return end for _,obj in ipairs(player.Character:GetDescendants()) do if not enabled or selected ~= player then return end if obj:IsA("BillboardGui") and obj.Name ~= "ST3R_Translation" and obj.Enabled then local parts = {} for _,child in ipairs(obj:GetDescendants()) do if ( child:IsA("TextLabel") or child:IsA("TextButton") or child:IsA("TextBox") ) and child.Visible then if child.Text and child.Text ~= "" then table.insert(parts,child.Text) end end end local phrase = table.concat(parts," ") if phrase ~= "" and #phrase < 450 then local entry = translations[obj] if not entry then entry = makeLabel(obj) if entry then translations[obj] = entry end end if entry and entry.original ~= phrase and not active[obj] then entry.original = phrase entry.label.Text = ui.translating active[obj] = true task.spawn(function() local result = translate(phrase) if enabled and selected == player and entry.gui.Parent and entry.original == phrase then entry.label.Text = result or ui.error end active[obj] = nil end) end end end end end -- MAIN LOOP task.spawn(function() while gui.Parent and panel.Parent do if enabled then local success,err = pcall(scanPlayer) if not success then warn("ST3R ERROR: "..tostring(err)) end end task.wait(1) end end) print("ST3R READY: "..currentLanguage.name) end --================================================ -- CONFIRM --================================================ confirm.Activated:Connect(function() confirm.Active = false confirm.Text = currentLanguage.ui.confirm startTranslator() end)