OOP
Key RequiredUniversal

OOP

Universal Scriptyazan1_2_3yazan1_2_3 4.2K views 982 executesUpdated Aug 14, 2025
Unrated
00
Lua Script•101 lines (3268 chars)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

-- واجهة GUI
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.Name = "DemoZ_Yazan_GUI"

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 300, 0, 350)
frame.Position = UDim2.new(0.5, -150, 0.5, -175)
frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
frame.BorderSizePixel = 0

local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0, 50)
title.Text = "🔮 سكربت DemoZ - يزن"
title.Font = Enum.Font.Fantasy
title.TextScaled = true
title.TextColor3 = Color3.fromRGB(255, 255, 0)
title.BackgroundColor3 = Color3.fromRGB(128, 0, 128)

-- وظيفة إنشاء زر
local function createButton(text, yPos, callback)
    local button = Instance.new("TextButton", frame)
    button.Size = UDim2.new(0.8, 0, 0, 40)
    button.Position = UDim2.new(0.1, 0, 0, yPos)
    button.Text = text
    button.Font = Enum.Font.SourceSansBold
    button.TextScaled = true
    button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
    button.TextColor3 = Color3.fromRGB(255, 255, 255)
    button.MouseButton1Click:Connect(callback)
end

-- 🧊 زر التجميد
createButton("🧊 تجميد اللاعبين", 60, function()
    for _, plr in pairs(game.Players:GetPlayers()) do
        if plr ~= player and plr.Character and (plr.Character.PrimaryPart.Position - character.PrimaryPart.Position).Magnitude < 20 then
            local hum = plr.Character:FindFirstChildOfClass("Humanoid")
            if hum then hum.WalkSpeed = 0 hum.JumpPower = 0 end
        end
    end
end)

-- 💫 زر الهالة
createButton("💫 تفعيل الهالة", 110, function()
    local aura = Instance.new("ParticleEmitter", character.PrimaryPart)
    aura.Texture = "rbxassetid://243098098" -- تأثير نجوم
    aura.Rate = 20
    aura.Lifetime = NumberRange.new(1)
    aura.Speed = NumberRange.new(0)
    aura.Size = NumberSequence.new(1)
end)

-- 🚪 زر فتح البيوت
createButton("🚪 فتح البيوت المغلقة", 160, function()
    for _, part in pairs(workspace:GetDescendants()) do
        if part:IsA("Part") and part.Name == "LockedDoor" then
            part.CanCollide = false
            part.Transparency = 0.5
        end
    end
end)

-- 👁️ زر إخفاء/إظهار الواجهة
createButton("👁️ إخفاء/إظهار الواجهة", 210, function()
    frame.Visible = not frame.Visible
end)

-- 🔊 صوت ترحيبي
createButton("🔊 تشغيل صوت ترحيب", 260, function()
    local sound = Instance.new("Sound", character.PrimaryPart)
    sound.SoundId = "rbxassetid://9118823106" -- صوت خفيف ترحيبي
    sound.Volume = 1
    sound:Play()
end)

-- ✨ رسالة ترحيب متحركة
local welcome = Instance.new("TextLabel", gui)
welcome.Size = UDim2.new(0, 400, 0, 60)
welcome.Position = UDim2.new(0.5, -200, 0.2, 0)
welcome.BackgroundTransparency = 0.4
welcome.BackgroundColor3 = Color3.fromRGB(30, 0, 60)
welcome.TextColor3 = Color3.fromRGB(255, 255, 255)
welcome.Font = Enum.Font.Fantasy
welcome.TextScaled = true
welcome.Text = "🎮 أهلاً بك في سكربت DemoZ من تصميم يزن ✨"
welcome.TextTransparency = 1

for i = 1, 10 do
    welcome.TextTransparency = 1 - (i * 0.1)
    task.wait(0.05)
end

task.delay(6, function()
    for i = 1, 10 do
        welcome.TextTransparency = i * 0.1
        task.wait(0.05)
    end
    welcome:Destroy()
end)

Features & Information

777
#OOP#Brookhaven#yazan#UUY

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts