--// SC CHAT | by MEMObjk_1236 --// SADECE GUI CHAT --// Normal Roblox chatine MESAJ GÖNDERMEZ local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local ADMIN_NAME = "MEMObjk_1236" --================================================== -- GUI --================================================== local gui = Instance.new("ScreenGui") gui.Name = "SC_Chat" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = player:WaitForChild("PlayerGui") -- ANA PENCERE local main = Instance.new("Frame") main.Name = "Main" main.Size = UDim2.new(0, 430, 0, 315) main.Position = UDim2.new(0.5, -215, 0.5, -157) main.BackgroundColor3 = Color3.fromRGB(15, 15, 18) main.BackgroundTransparency = 0.05 main.BorderSizePixel = 0 main.Parent = gui local mainStroke = Instance.new("UIStroke") mainStroke.Color = Color3.fromRGB(75, 75, 85) mainStroke.Thickness = 1.5 mainStroke.Parent = main --================================================== -- BAŞLIK --================================================== local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -60, 0, 45) title.Position = UDim2.new(0, 15, 0, 0) title.BackgroundTransparency = 1 title.Text = "SC chat | by MEMObjk_1236" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextSize = 19 title.Font = Enum.Font.GothamBold title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = main --================================================== -- KAPATMA X --================================================== local close = Instance.new("TextButton") close.Size = UDim2.new(0, 40, 0, 40) close.Position = UDim2.new(1, -45, 0, 3) close.BackgroundTransparency = 1 close.Text = "X" close.TextColor3 = Color3.fromRGB(255, 80, 80) close.TextSize = 20 close.Font = Enum.Font.GothamBold close.Parent = main --================================================== -- BİLGİ --================================================== local info = Instance.new("TextLabel") info.Size = UDim2.new(1, -30, 0, 25) info.Position = UDim2.new(0, 15, 0, 43) info.BackgroundTransparency = 1 info.Text = "👊 SC CHAT • SADECE BU GUI" info.TextColor3 = Color3.fromRGB(170, 170, 180) info.TextSize = 12 info.Font = Enum.Font.GothamBold info.TextXAlignment = Enum.TextXAlignment.Left info.Parent = main --================================================== -- MESAJ ALANI --================================================== local messages = Instance.new("ScrollingFrame") messages.Name = "Messages" messages.Size = UDim2.new(1, -30, 1, -125) messages.Position = UDim2.new(0, 15, 0, 72) messages.BackgroundColor3 = Color3.fromRGB(9, 9, 11) messages.BackgroundTransparency = 0.15 messages.BorderSizePixel = 0 messages.ScrollBarThickness = 5 messages.CanvasSize = UDim2.new(0, 0, 0, 0) messages.AutomaticCanvasSize = Enum.AutomaticSize.Y messages.Parent = main local padding = Instance.new("UIPadding") padding.PaddingTop = UDim.new(0, 7) padding.PaddingBottom = UDim.new(0, 7) padding.PaddingLeft = UDim.new(0, 8) padding.PaddingRight = UDim.new(0, 8) padding.Parent = messages local layout = Instance.new("UIListLayout") layout.Padding = UDim.new(0, 4) layout.SortOrder = Enum.SortOrder.LayoutOrder layout.Parent = messages --================================================== -- MESAJ YAZMA --================================================== local box = Instance.new("TextBox") box.Size = UDim2.new(1, -100, 0, 40) box.Position = UDim2.new(0, 15, 1, -50) box.BackgroundColor3 = Color3.fromRGB(25, 25, 30) box.BorderSizePixel = 0 box.PlaceholderText = "Mesaj yaz..." box.PlaceholderColor3 = Color3.fromRGB(130, 130, 140) box.Text = "" box.TextColor3 = Color3.fromRGB(255, 255, 255) box.TextSize = 14 box.Font = Enum.Font.Gotham box.ClearTextOnFocus = false box.Parent = main local boxStroke = Instance.new("UIStroke") boxStroke.Color = Color3.fromRGB(55, 55, 65) boxStroke.Thickness = 1 boxStroke.Parent = box --================================================== -- GÖNDER --================================================== local send = Instance.new("TextButton") send.Size = UDim2.new(0, 75, 0, 40) send.Position = UDim2.new(1, -90, 1, -50) send.BackgroundColor3 = Color3.fromRGB(45, 45, 52) send.BorderSizePixel = 0 send.Text = "Gönder" send.TextColor3 = Color3.fromRGB(255, 255, 255) send.TextSize = 13 send.Font = Enum.Font.GothamBold send.Parent = main --================================================== -- SC🎃 AÇMA BUTONU --================================================== local openButton = Instance.new("TextButton") openButton.Name = "SC_Open" openButton.Size = UDim2.new(0, 65, 0, 40) openButton.Position = UDim2.new(0, 10, 0, 10) openButton.BackgroundColor3 = Color3.fromRGB(18, 18, 22) openButton.BorderSizePixel = 0 openButton.Text = "SC🎃" openButton.TextColor3 = Color3.fromRGB(255, 255, 255) openButton.TextSize = 16 openButton.Font = Enum.Font.GothamBold openButton.Visible = false openButton.Parent = gui local openStroke = Instance.new("UIStroke") openStroke.Color = Color3.fromRGB(75, 75, 85) openStroke.Thickness = 1.5 openStroke.Parent = openButton --================================================== -- MESAJ EKLE --================================================== local function addMessage(username, message, isAdmin) local label = Instance.new("TextLabel") label.Size = UDim2.new(1, -5, 0, 0) label.AutomaticSize = Enum.AutomaticSize.Y label.BackgroundTransparency = 1 label.TextWrapped = true label.TextXAlignment = Enum.TextXAlignment.Left label.TextYAlignment = Enum.TextYAlignment.Top label.TextSize = 14 label.Font = Enum.Font.Gotham if isAdmin then label.Text = "[ADMİN] " .. username .. ": " .. message label.TextColor3 = Color3.fromRGB(255, 190, 60) else label.Text = username .. ": " .. message label.TextColor3 = Color3.fromRGB(235, 235, 235) end label.Parent = messages task.defer(function() messages.CanvasPosition = Vector2.new( 0, messages.AbsoluteCanvasSize.Y ) end) end --================================================== -- AÇILIŞ MESAJI --================================================== addMessage( ADMIN_NAME, "aynı serverde açılmazsa gözükmeyecektir⚠️", true ) --================================================== -- SADECE GUI'YE MESAJ GÖNDER --================================================== local function sendMessage() local text = box.Text if not text then return end if text:gsub("%s+", "") == "" then return end -- 200 karakter sınırı if #text > 200 then text = string.sub(text, 1, 200) end -- NORMAL ROBLOX CHATİNE GÖNDERİLMEZ addMessage( player.Name, text, player.Name == ADMIN_NAME ) box.Text = "" end send.MouseButton1Click:Connect(sendMessage) box.FocusLost:Connect(function(enterPressed) if enterPressed then sendMessage() end end) --================================================== -- KAPAT / AÇ --================================================== close.MouseButton1Click:Connect(function() main.Visible = false openButton.Visible = true end) openButton.MouseButton1Click:Connect(function() main.Visible = true openButton.Visible = false end) --================================================== -- SÜRÜKLEME --================================================== local dragging = false local dragStart local startPosition title.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPosition = main.Position end end) UserInputService.InputChanged:Connect(function(input) if not dragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then local delta = input.Position - dragStart main.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) print("SC Chat GUI aktif | Normal Roblox chatine göndermez.")