Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local MAIN = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- local TextLabel_3 = Instance.new("TextLabel")
- local Frame = Instance.new("Frame")
- local TRANSLATE2 = Instance.new("Frame")
- local NAME2 = Instance.new("TextLabel")
- local Frame_2 = Instance.new("Frame")
- local Frame_3 = Instance.new("Frame")
- local EN2 = Instance.new("TextLabel")
- local TEXT2 = Instance.new("TextLabel")
- local TextLabel_4 = Instance.new("TextLabel")
- local TextLabel_5 = Instance.new("TextLabel")
- local TextLabel_6 = Instance.new("TextLabel")
- local TRANSLATE1 = Instance.new("Frame")
- local NAME1 = Instance.new("TextLabel")
- local Frame_4 = Instance.new("Frame")
- local Frame_5 = Instance.new("Frame")
- local EN1 = Instance.new("TextLabel")
- local TEXT1 = Instance.new("TextLabel")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Name = "TRANSLATOR"
- MAIN.Name = "MAIN"
- MAIN.Parent = ScreenGui
- MAIN.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- MAIN.BorderColor3 = Color3.new(1, 1, 1)
- MAIN.BorderSizePixel = 2
- MAIN.Position = UDim2.new(0.313868612, 0, 0.286432177, 0)
- MAIN.Size = UDim2.new(0, 407, 0, 254)
- MAIN.Draggable = true
- MAIN.Selectable = true
- MAIN.Active = true
- TextLabel.Parent = MAIN
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0.253071249, 0, 0, 0)
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SourceSansLight
- TextLabel.Text = "Translator"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextLabel_2.Parent = MAIN
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 1
- TextLabel_2.Position = UDim2.new(0.294840306, 0, 0.0984251946, 0)
- TextLabel_2.Size = UDim2.new(0, 166, 0, 72)
- TextLabel_2.Font = Enum.Font.SourceSansLight
- TextLabel_2.Text = "AV"
- TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14
- TextLabel_2.TextWrapped = true
- TextLabel_3.Parent = MAIN
- TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_3.BackgroundTransparency = 1
- TextLabel_3.Position = UDim2.new(0.530712485, 0, 0.251968533, 0)
- TextLabel_3.Size = UDim2.new(0, 71, 0, 22)
- TextLabel_3.Font = Enum.Font.SourceSansLight
- TextLabel_3.Text = "ersion"
- TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 14
- TextLabel_3.TextWrapped = true
- Frame.Parent = MAIN
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.425061405, 0, 0.338582665, 0)
- Frame.Size = UDim2.new(0, 100, 0, 2)
- TRANSLATE2.Name = "TRANSLATE2"
- TRANSLATE2.Parent = MAIN
- TRANSLATE2.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- TRANSLATE2.BorderSizePixel = 0
- TRANSLATE2.Position = UDim2.new(0, 0, 0.492126018, 0)
- TRANSLATE2.Selectable = true
- TRANSLATE2.Size = UDim2.new(0, 407, 0, 29)
- NAME2.Name = "NAME2"
- NAME2.Parent = TRANSLATE2
- NAME2.BackgroundColor3 = Color3.new(1, 1, 1)
- NAME2.BackgroundTransparency = 1
- NAME2.BorderSizePixel = 0
- NAME2.Size = UDim2.new(0, 120, 0, 29)
- NAME2.Font = Enum.Font.SourceSansLight
- NAME2.Text = "Name"
- NAME2.TextColor3 = Color3.new(1, 1, 1)
- NAME2.TextScaled = true
- NAME2.TextSize = 14
- NAME2.TextWrapped = true
- Frame_2.Parent = TRANSLATE2
- Frame_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame_2.BorderSizePixel = 0
- Frame_2.Position = UDim2.new(0.294840306, 0, 0, 0)
- Frame_2.Size = UDim2.new(0, 1, 0, 29)
- Frame_3.Parent = TRANSLATE2
- Frame_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame_3.BorderSizePixel = 0
- Frame_3.Position = UDim2.new(0.886977911, 0, 0, 0)
- Frame_3.Size = UDim2.new(0, 1, 0, 29)
- EN2.Name = "EN2"
- EN2.Parent = TRANSLATE2
- EN2.BackgroundColor3 = Color3.new(1, 1, 1)
- EN2.BackgroundTransparency = 1
- EN2.BorderSizePixel = 0
- EN2.Position = UDim2.new(0.889434874, 0, 0, 0)
- EN2.Size = UDim2.new(0, 45, 0, 29)
- EN2.Font = Enum.Font.SourceSansLight
- EN2.Text = "EN"
- EN2.TextColor3 = Color3.new(1, 1, 1)
- EN2.TextScaled = true
- EN2.TextSize = 14
- EN2.TextWrapped = true
- TEXT2.Name = "TEXT2"
- TEXT2.Parent = TRANSLATE2
- TEXT2.BackgroundColor3 = Color3.new(1, 1, 1)
- TEXT2.BackgroundTransparency = 1
- TEXT2.BorderSizePixel = 0
- TEXT2.Position = UDim2.new(0.299754292, 0, 0, 0)
- TEXT2.Size = UDim2.new(0, 240, 0, 29)
- TEXT2.Font = Enum.Font.SourceSansLight
- TEXT2.Text = "Text"
- TEXT2.TextColor3 = Color3.new(1, 1, 1)
- TEXT2.TextScaled = true
- TEXT2.TextSize = 14
- TEXT2.TextWrapped = true
- TextLabel_4.Parent = MAIN
- TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_4.BackgroundTransparency = 1
- TextLabel_4.BorderSizePixel = 0
- TextLabel_4.Position = UDim2.new(0.152334154, 0, 0.669291377, 0)
- TextLabel_4.Size = UDim2.new(0, 282, 0, 62)
- TextLabel_4.Font = Enum.Font.SourceSansLight
- TextLabel_4.Text = "MORE OPTIONS COMING SOON IN BVersion!"
- TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_4.TextScaled = true
- TextLabel_4.TextSize = 14
- TextLabel_4.TextWrapped = true
- TextLabel_5.Parent = MAIN
- TextLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_5.BackgroundTransparency = 1
- TextLabel_5.BorderSizePixel = 0
- TextLabel_5.Position = UDim2.new(0.152334154, 0, 0.944881916, 0)
- TextLabel_5.Size = UDim2.new(0, 282, 0, 14)
- TextLabel_5.Font = Enum.Font.SourceSansLight
- TextLabel_5.Text = "to open or close this, press F4!"
- TextLabel_5.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_5.TextScaled = true
- TextLabel_5.TextSize = 14
- TextLabel_5.TextWrapped = true
- TextLabel_6.Parent = MAIN
- TextLabel_6.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_6.BackgroundTransparency = 1
- TextLabel_6.BorderSizePixel = 0
- TextLabel_6.Size = UDim2.new(0, 88, 0, 16)
- TextLabel_6.Font = Enum.Font.SourceSansLight
- TextLabel_6.Text = "Made by LAZ3R#3702"
- TextLabel_6.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_6.TextScaled = true
- TextLabel_6.TextSize = 14
- TextLabel_6.TextWrapped = true
- TRANSLATE1.Name = "TRANSLATE1"
- TRANSLATE1.Parent = MAIN
- TRANSLATE1.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
- TRANSLATE1.BorderSizePixel = 0
- TRANSLATE1.Position = UDim2.new(-0.000347465277, 0, 0.377108663, 0)
- TRANSLATE1.Selectable = true
- TRANSLATE1.Size = UDim2.new(0, 407, 0, 29)
- NAME1.Name = "NAME1"
- NAME1.Parent = TRANSLATE1
- NAME1.BackgroundColor3 = Color3.new(1, 1, 1)
- NAME1.BackgroundTransparency = 1
- NAME1.BorderSizePixel = 0
- NAME1.Size = UDim2.new(0, 120, 0, 29)
- NAME1.Font = Enum.Font.SourceSansLight
- NAME1.Text = "Name"
- NAME1.TextColor3 = Color3.new(1, 1, 1)
- NAME1.TextScaled = true
- NAME1.TextSize = 14
- NAME1.TextWrapped = true
- Frame_4.Parent = TRANSLATE1
- Frame_4.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame_4.BorderSizePixel = 0
- Frame_4.Position = UDim2.new(0.294840306, 0, 0, 0)
- Frame_4.Size = UDim2.new(0, 1, 0, 29)
- Frame_5.Parent = TRANSLATE1
- Frame_5.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame_5.BorderSizePixel = 0
- Frame_5.Position = UDim2.new(0.886977911, 0, 0, 0)
- Frame_5.Size = UDim2.new(0, 1, 0, 29)
- EN1.Name = "EN1"
- EN1.Parent = TRANSLATE1
- EN1.BackgroundColor3 = Color3.new(1, 1, 1)
- EN1.BackgroundTransparency = 1
- EN1.BorderSizePixel = 0
- EN1.Position = UDim2.new(0.889434874, 0, 0, 0)
- EN1.Size = UDim2.new(0, 45, 0, 29)
- EN1.Font = Enum.Font.SourceSansLight
- EN1.Text = "EN"
- EN1.TextColor3 = Color3.new(1, 1, 1)
- EN1.TextScaled = true
- EN1.TextSize = 14
- EN1.TextWrapped = true
- TEXT1.Name = "TEXT1"
- TEXT1.Parent = TRANSLATE1
- TEXT1.BackgroundColor3 = Color3.new(1, 1, 1)
- TEXT1.BackgroundTransparency = 1
- TEXT1.BorderSizePixel = 0
- TEXT1.Position = UDim2.new(0.299754292, 0, 0, 0)
- TEXT1.Size = UDim2.new(0, 240, 0, 29)
- TEXT1.Font = Enum.Font.SourceSansLight
- TEXT1.Text = "Text"
- TEXT1.TextColor3 = Color3.new(1, 1, 1)
- TEXT1.TextScaled = true
- TEXT1.TextSize = 14
- TEXT1.TextWrapped = true
- -- Scripts:
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- opened = true
- game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.F4 then
- if opened == true then
- game.CoreGui.TRANSLATOR.MAIN.Visible = false
- opened = false
- else if opened == false then
- game.CoreGui.TRANSLATOR.MAIN.Visible = true
- opened = true
- end
- end
- end
- end)
- function getlang(text)
- detect = game:HttpGet("https://ws.detectlanguage.com/0.2/detect?q="..text.."&key=06fab8ef68bcc1b80cde7894dc600b94")
- det = game.HttpService:JSONDecode(detect)
- for index, a in pairs(det) do
- for index, b in pairs(a) do
- for index, c in pairs(b) do
- for index, d in pairs(c) do
- if type(d) == 'string' then
- return d
- end
- end
- end
- end
- end
- end
- firstfull = false
- secondfull = false
- function TRANSLATE()
- local Action = game.Players:GetPlayers()
- for i = 1,#Action do
- Action[i].Chatted:connect(function(Message)
- u = game:HttpGet('https://api-platform.systran.net/translation/text/translate?key=691662c8-e817-4890-9e24-51707390707d&source=auto&target=en&input='..Message)
- local lol2 = game.HttpService:JSONDecode(u)
- for index, a in pairs(lol2) do
- for index, b in pairs(a) do
- for index, c in pairs(b) do
- tabl = {}
- table.insert(tabl, c)
- if type(c) == 'string' then
- table.insert(tabl, c)
- end
- if type(c) == 'string' and string.len(tabl[1]) >= 3 then
- if firstfull == false then
- NAME1.Text = Action[i].Name
- TEXT1.Text = c
- EN1.Text = getlang(Message)
- firstfull = true
- else if firstfull == true then
- NAME2.Text = NAME1.Text
- TEXT2.Text = TEXT1.Text
- EN2.Text = EN1.Text
- NAME1.Text = Action[i].Name
- TEXT1.Text = c
- EN1.Text = getlang(Message)
- secondfull = true
- else if secondfull == true then
- NAME1.Text = Action[i].Name
- TEXT1.Text = c
- EN1.Text = getlang(Message)
- firstfull = true
- end
- end
- end
- end
- end
- end
- end
- end)
- end
- end
- TRANSLATE()
- -- YOU CAN USE THIS AS AN EXAMPLE FOR YOUR OWN ONE IF YOU WANT.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement