كيف تسوي الشات في استديو لايت 💬🔥 | Studio Lite
السكربت الاول داخل ServerScriptService 📄: local ReplicatedStorage = game:GetService("ReplicatedStorage") local ChatEvent = ReplicatedStorage:WaitForChild("ChatEvent") ChatEvent.OnServerEvent:Connect(function(player,message) if message ~= "" then local text = player.Name..": "..message ChatEvent:FireAllClients(text) end end) السكربت الثاني LocalScript داخلScreenGui: local ReplicatedStorage = game:GetService("ReplicatedStorage") local ChatEvent = ReplicatedStorage:WaitForChild("ChatEvent") local player = game.Players.LocalPlayer local gui = Instance.new("ScreenGui") gui.Parent = player:WaitForChild("PlayerGui") -- زر فتح الشات local open = Instance.new("ImageButton") open.Parent = gui open.Size = UDim2.new(0,70,0,70) open.Position = UDim2.new(0.02,0,0.5,-35) open.Image = "rbxassetid://106726324368958" open.BackgroundColor3 = Color3.fromRGB(0,0,0) open.ImageColor3 = Color3.fromRGB(255,255,255) open.BorderSizePixel = 0 -- فريم الشات local frame = Instance.new("Frame") frame.Parent = gui frame.Size = UDim2.new(0.32,0,0.45,0) frame.Position = UDim2.new(0.08,0,0.5,-200) frame.BackgroundColor3 = Color3.fromRGB(20,20,20) frame.Visible = false local corner = Instance.new("UICorner",frame) corner.CornerRadius = UDim.new(0,10) -- مكان الرسائل local scroll = Instance.new("ScrollingFrame") scroll.Parent = frame scroll.Size = UDim2.new(1,-10,0.8,-10) scroll.Position = UDim2.new(0,5,0,5) scroll.BackgroundTransparency = 1 scroll.CanvasSize = UDim2.new(0,0,0,0) scroll.ScrollBarThickness = 6 local layout = Instance.new("UIListLayout") layout.Parent = scroll layout.Padding = UDim.new(0,4) -- صندوق الكتابة local box = Instance.new("TextBox") box.Parent = frame box.Size = UDim2.new(0.72,0,0.17,0) box.Position = UDim2.new(0.02,0,0.82,0) box.BackgroundColor3 = Color3.fromRGB(35,35,35) box.TextColor3 = Color3.fromRGB(255,255,255) box.PlaceholderText = "Type a message" box.PlaceholderColor3 = Color3.fromRGB(150,150,150) box.Text = "" local corner2 = Instance.new("UICorner",box) corner2.CornerRadius = UDim.new(0,8) -- زر الارسال local send = Instance.new("TextButton") send.Parent = frame send.Size = UDim2.new(0.24,0,0.17,0) send.Position = UDim2.new(0.75,0,0.82,0) send.BackgroundColor3 = Color3.fromRGB(0,140,255) send.Text = "Send" send.TextColor3 = Color3.fromRGB(255,255,255) local corner3 = Instance.new("UICorner",send) corner3.CornerRadius = UDim.new(0,8) -- فتح الشات open.MouseButton1Click:Connect(function() frame.Visible = not frame.Visible end) -- ارسال الرسالة local function sendMessage() if box.Text ~= "" then ChatEvent:FireServer(box.Text) box.Text = "" end end send.MouseButton1Click:Connect(sendMessage) box.FocusLost:Connect(function(enter) if enter then sendMessage() end end) -- استقبال الرسائل ChatEvent.OnClientEvent:Connect(function(message) local label = Instance.new("TextLabel") label.Size = UDim2.new(1,-10,0,32) label.BackgroundTransparency = 1 label.TextColor3 = Color3.fromRGB(255,255,255) label.TextXAlignment = Enum.TextXAlignment.Left label.Text = message label.Font = Enum.Font.SourceSansBold label.TextSize = 18 label.Parent = scroll scroll.CanvasSize = UDim2.new(0,0,0,layout.AbsoluteContentSize.Y) -- فقاعة فوق اللاعب local character = player.Character if character and character:FindFirstChild("Head") then local TweenService = game:GetService("TweenService") local billboard = Instance.new("BillboardGui") billboard.Size = UDim2.new(0,200,0,50) billboard.StudsOffset = Vector3.new(0,2,0) billboard.Adornee = character.Head billboard.Parent = character.Head local bubble = Instance.new("Frame") bubble.Parent = billboard bubble.Size = UDim2.new(1,0,1,0) bubble.BackgroundColor3 = Color3.fromRGB(0,0,0) bubble.BackgroundTransparency = 1 local corner = Instance.new("UICorner",bubble) corner.CornerRadius = UDim.new(0,10) local text = Instance.new("TextLabel") text.Parent = bubble text.Size = UDim2.new(1,-10,1,-10) text.Position = UDim2.new(0,5,0,5) text.BackgroundTransparency = 1 text.TextColor3 = Color3.fromRGB(255,255,255) text.TextScaled = true -- حذف اسم اللاعب من الرسالة local msg = string.split(message,": ") if msg[2] then text.Text = msg[2] else text.Text = message end text.TextTransparency = 1 -- انيميشن الظهور local tweenIn = TweenService:Create( bubble, TweenInfo.new(0.4), {BackgroundTransparency = 0} ) local textTweenIn = TweenService:Create( text, TweenInfo.new(0.4), {TextTransparency = 0} ) tweenIn:Play() textTweenIn:Play() task.wait(4) -- انيميشن الاختفاء local tweenOut = TweenService:Create( bubble, TweenInfo.new(0.4), {BackgroundTransparency = 1} ) local textTweenOut = TweenService:Create( text, TweenInfo.new(0.4), {TextTransparency = 1} ) tweenOut:Play() textTweenOut:Play() task.wait(0.4) billboard:Destroy() end end #مهند_جيمر #جيش_الملوك #mohannadgamer #روبلوكس #استديو_لايت لا تنسى اللايك والإشتراك 👍

How to publish your content in Roblox Studio Lite step by step ✅ (Easiest explanation for beginne...

شرح ادمن كيف تعدل و تضيف رانكات في ستوديو لايت 🔥

Game Chat Just Got CRAZY Better

🔥👨💻كيف تسوي ماب باركور في أقل من اسبوع|🎮ستوديو لايت🎮|شرح سهل👩💻🔥

The Most Racist Animator on TikTok: Luu Kki

شرح كيف ترسل كتابة فوق الشاشة مثل حدث ماب المزرعة في studio lite 😱

Forgetting to END My Stream Prank

GLM 5.2 Is INSANE. (Better than Claude Fable 5)

When You Trick Age Verification...

كيف تسوي ماب باركور كامل بدون تعب

Adult Jokes Hidden In Random Gumball Episodes

ليش ترجع لنفس "العادة" رغم إنك تتوب؟ (الحل النهائي) 🧠

كيف تسوي الـ slap او الكف ب 3 انواع مختلفة وكيف تشيل حرف الـ E من الـ slap في استوديو لايت

Which AI Can Make The BEST Minecraft Client?

صناعة ماب من الصفر⚒️ | الجزء الأول😁 | Studio Lite

How to make 3D Games in Godot

Are We Really Just Childhood Friends? - ALL PARTS | ROBLOX ANIMATION

I Tested Most Free Minecraft Hosts to Find the Best One!

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

