local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local TextBox = Instance.new("TextBox") local TextButton = Instance.new("TextButton") ScreenGui.Parent = game:GetService("CoreGui") ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling Frame.Parent = ScreenGui Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Frame.BorderSizePixel = 0 Frame.Position = UDim2.new(0.403722703, 0, -1, 0) Frame.Size = UDim2.new(0, 300, 0, 30) Frame.Active = true Frame.Draggable = true TextBox.Parent = Frame TextBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40) TextBox.Position = UDim2.new(0.090000004, 0, 0.200000003, 0) TextBox.Size = UDim2.new(0.87, 0, 0.600000024, 0) TextBox.Font = Enum.Font.SourceSans TextBox.PlaceholderText = "Grammar fix" TextBox.Text = "" TextBox.BorderSizePixel = 0 TextBox.TextColor3 = Color3.fromRGB(255, 255, 255) TextBox.TextSize = 15.000 TextBox.ClipsDescendants = true TextBox.TextStrokeTransparency = 0.000 TextBox.TextXAlignment = Enum.TextXAlignment.Left TextButton.Parent = Frame TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextButton.BackgroundTransparency = 1.000 TextButton.BorderSizePixel = 0 TextButton.Position = UDim2.new(0, 0, 3.7252903e-09, 0) TextButton.Size = UDim2.new(0, 30, 0, 30) TextButton.Font = Enum.Font.GothamBlack TextButton.Text = "-" TextButton.TextColor3 = Color3.fromRGB(255, 255, 255) TextButton.TextSize = 17.000 TextButton.TextStrokeTransparency = 0.000 Frame:TweenPosition(UDim2.new(0.403722703, 0, 0.50078249, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, .5) TextBox.FocusLost:Connect( function() local text = TextBox.Text local response = syn.request( { Url = "https://orthographe.reverso.net/api/v1/Spelling", Method = "POST", Headers = { ["Content-Type"] = "application/json" }, Body = game:GetService("HttpService"):JSONEncode({ autoReplace = true, generateRecommendations = true, generateSynonyms = true, getCorrectionDetails = false, interfaceLanguage = "en", language = "eng", locale = "Indifferent", origin = "interactive", text = text }) } ) local transed = game:GetService("HttpService"):JSONDecode(response.Body) game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(transed["text"], "All") end ) local toggled = false TextButton.Activated:Connect( function() toggled = not toggled for i, v in pairs(Frame:GetChildren()) do if v.Name ~= "TextButton" then v.Visible = not toggled end end if toggled then Frame:TweenSize(UDim2.new(0, 30, 0, 30), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, .5) else Frame:TweenSize(UDim2.new(0, 300, 0, 30), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, .5) end end ) repeat wait() until game:FindFirstChild("Players") ~= nil repeat wait() until game.Players.LocalPlayer ~= nil mouse = game.Players.LocalPlayer:GetMouse() mouse.KeyDown:Connect(function(key) if key == "," then wait() if not TextBox:IsFocused() then TextBox:CaptureFocus() wait() end end end)