كيف تسوي شات في مابك (بعد ما انحذف)

السكربت الأول: local ReplicatedStorage = game:GetService("ReplicatedStorage") local TextService = game:GetService("TextService") local remote = ReplicatedStorage:FindFirstChild("CustomChatEvent") if not remote then remote = Instance.new("RemoteEvent") remote.Name = "CustomChatEvent" remote.Parent = ReplicatedStorage end remote.OnServerEvent:Connect(function(player, message) local finalMessage = message local success, result = pcall(function() return TextService:FilterStringAsync(message, player.UserId) end) if success then local ok, filtered = pcall(function() return result:GetNonChatStringForBroadcastAsync() end) if ok then finalMessage = filtered end end remote:FireAllClients(player.Name, finalMessage) end) السكربت الثاني : local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer -- لو ما فيه RemoteEvent نعمله local remote = ReplicatedStorage:FindFirstChild("CustomChatEvent") if not remote then remote = Instance.new("RemoteEvent") remote.Name = "CustomChatEvent" remote.Parent = ReplicatedStorage end -- GUI local gui = Instance.new("ScreenGui") gui.Name = "CustomChat" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") -- زر 💬 فوق (جنب الشات الخربان) local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0, 40, 0, 40) toggleButton.Position = UDim2.new(0, 10, 0, 10) -- أعلى يسار toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) toggleButton.Text = "💬" toggleButton.TextScaled = true toggleButton.Parent = gui -- إطار الشات (جنب زي الأصلي) local chatFrame = Instance.new("Frame") chatFrame.Size = UDim2.new(0.25, 0, 0.5, 0) -- ربع الشاشة يسار chatFrame.Position = UDim2.new(0, 10, 0.15, 0) chatFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) chatFrame.BackgroundTransparency = 0.15 chatFrame.Visible = false chatFrame.Parent = gui -- سجل الرسائل local chatLog = Instance.new("ScrollingFrame") chatLog.Size = UDim2.new(1, -10, 0.85, -10) chatLog.Position = UDim2.new(0, 5, 0, 5) chatLog.BackgroundColor3 = Color3.fromRGB(20, 20, 20) chatLog.ScrollBarThickness = 6 chatLog.Parent = chatFrame local layout = Instance.new("UIListLayout") layout.Parent = chatLog layout.SortOrder = Enum.SortOrder.LayoutOrder -- صندوق الكتابة local inputBox = Instance.new("TextBox") inputBox.Size = UDim2.new(1, -10, 0.12, 0) inputBox.Position = UDim2.new(0, 5, 0.87, 0) inputBox.PlaceholderText = "اكتب رسالتك هنا..." inputBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) inputBox.TextColor3 = Color3.fromRGB(255, 255, 255) inputBox.ClearTextOnFocus = false inputBox.Parent = chatFrame -- إظهار/إخفاء الشات toggleButton.MouseButton1Click:Connect(function() chatFrame.Visible = not chatFrame.Visible end) -- إرسال الرسالة inputBox.FocusLost:Connect(function(enterPressed) if enterPressed and inputBox.Text ~= "" then remote:FireServer(inputBox.Text) inputBox.Text = "" end end) -- استقبال الرسائل remote.OnClientEvent:Connect(function(senderName, msg) local label = Instance.new("TextLabel") label.Size = UDim2.new(1, -10, 0, 20) label.BackgroundTransparency = 1 label.TextColor3 = Color3.fromRGB(255, 255, 255) label.TextXAlignment = Enum.TextXAlignment.Left label.Font = Enum.Font.SourceSans label.Text = senderName .. ": " .. msg label.Parent = chatLog end) وهاذا مهم كثير/ CustomChat

تلاوة القرآن للدراسة والتركيز 📚🕛 | راحة وطمأنينة | Peaceful Focus Quran | محمد هشام
▶︎

تلاوة القرآن للدراسة والتركيز 📚🕛 | راحة وطمأنينة | Peaceful Focus Quran | محمد هشام

كيف تسوي لوحة ادمن في ستوديو لايت 🫡
▶︎

كيف تسوي لوحة ادمن في ستوديو لايت 🫡

أكثر 4 العاب ممنوعة من كثر ما تخوف
▶︎

أكثر 4 العاب ممنوعة من كثر ما تخوف

كيف تسوي لما صاحب الماب يدخل تطلع رسالة لجميع اللاعبين في استوديو لايت
▶︎

كيف تسوي لما صاحب الماب يدخل تطلع رسالة لجميع اللاعبين في استوديو لايت

ستوديو لايت:جبت لكم اغرب سكربت في ستوديو لايت😵‍💫
▶︎

ستوديو لايت:جبت لكم اغرب سكربت في ستوديو لايت😵‍💫

Roblox actually did it.
▶︎

Roblox actually did it.

كيف تسوي شات يشبه شات روبلوكس في ستوديو لايت
▶︎

كيف تسوي شات يشبه شات روبلوكس في ستوديو لايت

صنعت لعبة سيرفايفل بالذكاء الاصطناعي في روبلوكس🔥👀
▶︎

صنعت لعبة سيرفايفل بالذكاء الاصطناعي في روبلوكس🔥👀

ازاي تعمل شات في ستوديو لايت😱 | Studio Lite🛠️
▶︎

ازاي تعمل شات في ستوديو لايت😱 | Studio Lite🛠️

كيف تسوي شات💬 في استوديو لايت!😎🔥
▶︎

كيف تسوي شات💬 في استوديو لايت!😎🔥

صنعت ماب روبلوكس في ساعة فقط ! 🛠️🤯
▶︎

صنعت ماب روبلوكس في ساعة فقط ! 🛠️🤯

كيف تحميلها سوف اعلمكم كيف تلته هاك دلتا
▶︎

كيف تحميلها سوف اعلمكم كيف تلته هاك دلتا

HOW TO GET VERIFIED ON ROBLOX!
▶︎

HOW TO GET VERIFIED ON ROBLOX!

كيف تسوي شات آمن وبدون سب في ستوديو لايت 🔒💬
▶︎

كيف تسوي شات آمن وبدون سب في ستوديو لايت 🔒💬

حل مشكلة قفل الماب حقك في روبلوكس وتغيير خصوصية الماب باسهل طريقه على الموبايل للايفون والاندرويد 🤯🔥
▶︎

حل مشكلة قفل الماب حقك في روبلوكس وتغيير خصوصية الماب باسهل طريقه على الموبايل للايفون والاندرويد 🤯🔥

اكثر 5 مقاطع تخوف … طلعت من اليوتيوب
▶︎

اكثر 5 مقاطع تخوف … طلعت من اليوتيوب

الحقوو🔥كيف تصنع ماب في روبلوكس بالجوال فقط 📱|| وتحصل على روبكس مجانا كل يوم⁉️😍
▶︎

الحقوو🔥كيف تصنع ماب في روبلوكس بالجوال فقط 📱|| وتحصل على روبكس مجانا كل يوم⁉️😍

I Bought 100 DRAGON BREATHS in Grow a Garden 2..
▶︎

I Bought 100 DRAGON BREATHS in Grow a Garden 2..

كيف تسوي ماب ادمن|ستوديو لايت طلب متابع|شرح سهل
▶︎

كيف تسوي ماب ادمن|ستوديو لايت طلب متابع|شرح سهل

كيف تسوي شات شغال(100/100) في ستديو لايت
▶︎

كيف تسوي شات شغال(100/100) في ستديو لايت