
KeylessUniversal

-- Phone GUI Script (with first app icon + chat screen + avatar images + modified home button + reply system)
local player = game.Players.LocalPlayer
local Players = game:GetService("Players")
local gui = Instance.new("ScreenGui")
gui.Name = "PhoneGUI"
gui.Parent = player:WaitForChild("PlayerGui")
-- الإطار الخارجي للهاتف
local phoneFrame = Instance.new("Frame")
phoneFrame.Size = UDim2.new(0, 220, 0, 400)
phoneFrame.Position = UDim2.new(1, -240, 1, -420) -- يمين أسفل
phoneFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- أسود
phoneFrame.BorderSizePixel = 0
phoneFrame.Parent = gui
phoneFrame.Visible = true
-- زوايا دائرية
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 25)
corner.Parent = phoneFrame
-- شاشة الهاتف (داخل الإطار)
local screen = Instance.new("Frame")
screen.Size = UDim2.new(0.9, 0, 0.8, 0)
screen.Position = UDim2.new(0.05, 0, 0.05, 0)
screen.BorderSizePixel = 0
screen.Parent = phoneFrame
-- تدرج لوني (أحمر -> أسود)
local gradient = Instance.new("UIGradient")
gradient.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)), -- أحمر فوق
ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0)) -- أسود تحت
}
gradient.Rotation = 90
gradient.Parent = screen
-- زر الهوم (دائرة مرفوعة شوي + لون أبيض)
local homeButton = Instance.new("TextButton")
homeButton.Size = UDim2.new(0, 50, 0, 50)
homeButton.Position = UDim2.new(0.5, -25, 0.85, 0) -- مرفوع شوي لفوق
homeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255) -- أبيض
homeButton.Text = ""
homeButton.BorderSizePixel = 0
homeButton.Parent = phoneFrame
local homeCorner = Instance.new("UICorner")
homeCorner.CornerRadius = UDim.new(1, 0)
homeCorner.Parent = homeButton
-- خط الإخفاء/الإظهار (خارج الهاتف)
local toggleLine = Instance.new("TextButton")
toggleLine.Size = UDim2.new(0, 60, 0, 8) -- خط متوسط
toggleLine.Position = UDim2.new(1, -210, 1, -430) -- فوق الهاتف
toggleLine.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- أسود
toggleLine.Text = ""
toggleLine.BorderSizePixel = 0
toggleLine.Parent = gui -- برّا الهاتف
-- التحكم في الإخفاء والإظهار
local phoneVisible = true
toggleLine.MouseButton1Click:Connect(function()
phoneVisible = not phoneVisible
phoneFrame.Visible = phoneVisible
end)
-- ========================
-- أول أيقونة (الشات العام)
-- ========================
local appIcon = Instance.new("TextButton")
appIcon.Size = UDim2.new(0, 50, 0, 50)
appIcon.Position = UDim2.new(0, 10, 0, 10) -- فوق يسار الشاشة
appIcon.BackgroundColor3 = Color3.fromRGB(0, 255, 0) -- أخضر
appIcon.Text = "💬"
appIcon.TextSize = 28
appIcon.TextColor3 = Color3.fromRGB(255, 255, 255)
appIcon.Parent = screen
local appCorner = Instance.new("UICorner")
appCorner.CornerRadius = UDim.new(0, 12)
appCorner.Parent = appIcon
-- اسم التطبيق أسفل الأيقونة
local appLabel = Instance.new("TextLabel")
appLabel.Size = UDim2.new(0, 60, 0, 20)
appLabel.Position = UDim2.new(0, 5, 0, 65)
appLabel.BackgroundTransparency = 1
appLabel.Text = "الشات العام"
appLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- أبيض
appLabel.TextScaled = true
appLabel.Parent = screen
-- ========================
-- شاشة الشات العام
-- ========================
local chatScreen = Instance.new("Frame")
chatScreen.Size = UDim2.new(0.9, 0, 0.8, 0)
chatScreen.Position = UDim2.new(0.05, 0, 0.05, 0)
chatScreen.BackgroundColor3 = Color3.fromRGB(0, 150, 0) -- أخضر
chatScreen.Visible = false
chatScreen.Parent = phoneFrame
-- منطقة الرسائل
local messagesFrame = Instance.new("ScrollingFrame")
messagesFrame.Size = UDim2.new(1, -10, 1, -50)
messagesFrame.Position = UDim2.new(0, 5, 0, 5)
messagesFrame.BackgroundTransparency = 1
messagesFrame.CanvasSize = UDim2.new(0,0,0,0)
messagesFrame.ScrollBarThickness = 6
messagesFrame.Parent = chatScreen
local msgLayout = Instance.new("UIListLayout")
msgLayout.Parent = messagesFrame
msgLayout.SortOrder = Enum.SortOrder.LayoutOrder
msgLayout.Padding = UDim.new(0,5)
-- صندوق الكتابة
local inputBox = Instance.new("TextBox")
inputBox.Size = UDim2.new(1, -20, 0, 30)
inputBox.Position = UDim2.new(0, 10, 1, -40)
inputBox.PlaceholderText = "اكتب رسالتك..."
inputBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
inputBox.Text = ""
inputBox.Parent = chatScreen
local inputCorner = Instance.new("UICorner")
inputCorner.CornerRadius = UDim.new(0,10)
inputCorner.Parent = inputBox
-- عند الضغط على الأيقونة يفتح الشات
appIcon.MouseButton1Click:Connect(function()
screen.Visible = false
chatScreen.Visible = true
end)
-- زر الهوم يرجعك للشاشة الرئيسية
homeButton.MouseButton1Click:Connect(function()
chatScreen.Visible = false
screen.Visible = true
end)
-- =========================
-- نظام الرد (إضافة جديدة)
-- =========================
local replyTarget = nil
-- وظيفة لإضافة رسالة
local function addMessage(sender, text, replyTo)
local msgFrame = Instance.new("Frame")
msgFrame.Size = UDim2.new(1, -10, 0, 50)
msgFrame.BackgroundTransparency = 1
msgFrame.Parent = messagesFrame
-- صورة الحساب (Avatar Thumbnail)
local content = Players:GetUserThumbnailAsync(sender.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100)
local avatar = Instance.new("ImageLabel")
avatar.Size = UDim2.new(0, 40, 0, 40)
avatar.Position = UDim2.new(0, 0, 0, 5)
avatar.Image = content
avatar.BackgroundTransparency = 1
avatar.Parent = msgFrame
-- اسم المرسل
local nameLabel = Instance.new("TextLabel")
nameLabel.Size = UDim2.new(0, 120, 0, 15)
nameLabel.Position = UDim2.new(0, 45, 0, 5)
nameLabel.Text = sender.Name
nameLabel.TextColor3 = Color3.fromRGB(255,255,255)
nameLabel.BackgroundTransparency = 1
nameLabel.TextScaled = true
nameLabel.Parent = msgFrame
-- لو الرسالة رد وموجهة للشخص المحلي
if replyTo and replyTo == player.Name then
nameLabel.Text = sender.Name .. " (موجهة لك)"
end
-- الرسالة (Bubble Style)
local bubble = Instance.new("TextButton") -- ← صار زر عشان يدعم الضغط للـ Reply
bubble.Size = UDim2.new(0, 140, 0, 25)
bubble.Position = UDim2.new(0, 45, 0, 22)
bubble.Text = text
bubble.TextColor3 = Color3.fromRGB(0,0,0)
bubble.BackgroundColor3 = (replyTo == player.Name) and Color3.fromRGB(255,0,0) or Color3.fromRGB(255,255,255)
bubble.TextScaled = true
bubble.Parent = msgFrame
local bubbleCorner = Instance.new("UICorner")
bubbleCorner.CornerRadius = UDim.new(1,0)
bubbleCorner.Parent = bubble
-- الضغط على الرسالة يجهّز الرد
bubble.MouseButton1Click:Connect(function()
replyTarget = sender.Name
inputBox.PlaceholderText = "رد على "..sender.Name.."..."
end)
-- تحديث حجم Scroll
messagesFrame.CanvasSize = UDim2.new(0,0,0,msgLayout.AbsoluteContentSize.Y+10)
end
-- إرسال رسالة عند الضغط Enter
inputBox.FocusLost:Connect(function(enterPressed)
if enterPressed and inputBox.Text ~= "" then
addMessage(player, inputBox.Text, replyTarget)
inputBox.Text = ""
inputBox.PlaceholderText = "اكتب رسالتك..."
replyTarget = nil
end
end)No comments yet for this script.

![[KEYLESS] Moondiety Script | 17+ supported Games](https://scriptblox.com/images/sb/0-1753093706828.png)

