Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- إنشاء ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = playerGui
- -- نافذة الحصول على رابط مفتاح
- local function createLinkFrame()
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
- mainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
- mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- mainFrame.BorderSizePixel = 0
- mainFrame.Parent = screenGui
- local mainCorner = Instance.new("UICorner")
- mainCorner.CornerRadius = UDim.new(0, 20)
- mainCorner.Parent = mainFrame
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
- titleLabel.Text = "الحصول على رابط مفتاح"
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- titleLabel.BorderSizePixel = 0
- titleLabel.Parent = mainFrame
- local infoLabel = Instance.new("TextLabel")
- infoLabel.Size = UDim2.new(1, 0, 0.4, 0)
- infoLabel.Position = UDim2.new(0, 0, 0.2, 0)
- infoLabel.Text = "للحصول على رابط المفتاح، يرجى الضغط على الزر أدناه."
- infoLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- infoLabel.BackgroundTransparency = 1
- infoLabel.Parent = mainFrame
- local linkButton = Instance.new("TextButton")
- linkButton.Size = UDim2.new(0.3, 0, 0.3, 0)
- linkButton.Position = UDim2.new(0.35, 0, 0.65, 0)
- linkButton.Text = "نسخ رابط المفتاح"
- linkButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- linkButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
- linkButton.Parent = mainFrame
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.CornerRadius = UDim.new(0, 10)
- buttonCorner.Parent = linkButton
- local keyLink = "https://example.com/key" -- قم بتغيير الرابط كما تريد
- linkButton.MouseButton1Click:Connect(function()
- setclipboard(keyLink)
- print("تم نسخ الرابط إلى الحافظة: " .. keyLink)
- mainFrame.Visible = false
- createKeyInputFrame()
- end)
- end
- -- وظيفة إنشاء نافذة إدخال المفتاح
- function createKeyInputFrame()
- local keyInputFrame = Instance.new("Frame")
- keyInputFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
- keyInputFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
- keyInputFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- keyInputFrame.BorderSizePixel = 0
- keyInputFrame.Parent = screenGui
- local inputCorner = Instance.new("UICorner")
- inputCorner.CornerRadius = UDim.new(0, 20)
- inputCorner.Parent = keyInputFrame
- local inputTitleLabel = Instance.new("TextLabel")
- inputTitleLabel.Size = UDim2.new(1, 0, 0.2, 0)
- inputTitleLabel.Text = "إدخال مفتاح"
- inputTitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- inputTitleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- inputTitleLabel.BorderSizePixel = 0
- inputTitleLabel.Parent = keyInputFrame
- local keyInput = Instance.new("TextBox")
- keyInput.Size = UDim2.new(1, 0, 0.5, 0)
- keyInput.Position = UDim2.new(0, 0, 0.2, 0)
- keyInput.PlaceholderText = "أدخل المفتاح هنا"
- keyInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- keyInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- keyInput.Parent = keyInputFrame
- local confirmButton = Instance.new("TextButton")
- confirmButton.Size = UDim2.new(0.3, 0, 0.3, 0)
- confirmButton.Position = UDim2.new(0.35, 0, 0.75, 0)
- confirmButton.Text = "تأكيد"
- confirmButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- confirmButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
- confirmButton.Parent = keyInputFrame
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.CornerRadius = UDim.new(0, 10)
- buttonCorner.Parent = confirmButton
- local correctKey = "HAMOZ" -- المفتاح الصحيح
- confirmButton.MouseButton1Click:Connect(function()
- if keyInput.Text == correctKey then
- keyInputFrame.Visible = false
- createControlSettingsFrame()
- else
- createErrorFrame()
- end
- end)
- end
- -- وظيفة إنشاء نافذة التحكمات
- function createControlSettingsFrame()
- local settingsFrame = Instance.new("Frame")
- settingsFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
- settingsFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
- settingsFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- settingsFrame.BorderSizePixel = 0
- settingsFrame.Parent = screenGui
- local settingsCorner = Instance.new("UICorner")
- settingsCorner.CornerRadius = UDim.new(0, 20)
- settingsCorner.Parent = settingsFrame
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
- titleLabel.Text = "تحكمات اللاعب"
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- titleLabel.BorderSizePixel = 0
- titleLabel.Parent = settingsFrame
- -- إعدادات السرعة
- local speedLabel = Instance.new("TextLabel")
- speedLabel.Size = UDim2.new(1, 0, 0.2, 0)
- speedLabel.Position = UDim2.new(0, 0, 0.2, 0)
- speedLabel.Text = "سرعة الشخصية: "
- speedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- speedLabel.BackgroundTransparency = 1
- speedLabel.Parent = settingsFrame
- local speedInput = Instance.new("TextBox")
- speedInput.Size = UDim2.new(0.5, 0, 0.2, 0)
- speedInput.Position = UDim2.new(0, 0, 0.4, 0)
- speedInput.PlaceholderText = "أدخل سرعة جديدة"
- speedInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- speedInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- speedInput.Parent = settingsFrame
- -- إعدادات قوة القفز
- local jumpLabel = Instance.new("TextLabel")
- jumpLabel.Size = UDim2.new(1, 0, 0.2, 0)
- jumpLabel.Position = UDim2.new(0, 0, 0.6, 0)
- jumpLabel.Text = "قوة القفز: "
- jumpLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- jumpLabel.BackgroundTransparency = 1
- jumpLabel.Parent = settingsFrame
- local jumpInput = Instance.new("TextBox")
- jumpInput.Size = UDim2.new(0.5, 0, 0.2, 0)
- jumpInput.Position = UDim2.new(0, 0, 0.8, 0)
- jumpInput.PlaceholderText = "أدخل قوة جديدة"
- jumpInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- jumpInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- jumpInput.Parent = settingsFrame
- -- زر تطبيق الإعدادات
- local applyButton = Instance.new("TextButton")
- applyButton.Size = UDim2.new(0.3, 0, 0.3, 0)
- applyButton.Position = UDim2.new(0.35, 0, 1, 0)
- applyButton.Text = "تطبيق"
- applyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- applyButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
- applyButton.Parent = settingsFrame
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.CornerRadius = UDim.new(0, 10)
- buttonCorner.Parent = applyButton
- applyButton.MouseButton1Click:Connect(function()
- local newSpeed = tonumber(speedInput.Text)
- local newJumpPower = tonumber(jumpInput.Text)
- if newSpeed then
- player.Character.Humanoid.WalkSpeed = newSpeed
- end
- if newJumpPower then
- player.Character.Humanoid.JumpPower = newJumpPower
- end
- print("تم تطبيق الإعدادات!")
- end)
- end
- -- وظيفة إنشاء نافذة الخطأ
- function createErrorFrame()
- local errorFrame = Instance.new("Frame")
- errorFrame.Size = UDim2.new(1, 0, 1, 0)
- errorFrame.Position = UDim2.new(0, 0, 0, 0)
- errorFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- errorFrame.BorderSizePixel = 0
- errorFrame.Parent = screenGui
- local errorLabel = Instance.new("TextLabel")
- errorLabel.Size = UDim2.new(1, 0, 1, 0)
- errorLabel.Text = "ستطرد خلال 5 ثواني"
- errorLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- errorLabel.BackgroundTransparency = 1
- errorLabel.Parent = errorFrame
- for i = 5, 1, -1 do
- errorLabel.Text = "ستطرد خلال " .. i .. " ثواني"
- wait(1)
- end
- player:Kick("تم طردك بسبب إدخال مفتاح خاطئ.")
- end
- -- بدء التطبيق
- createLinkFrame()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement