Advertisement
Samoni

Untitled

Jan 12th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. -- تعريف المتغيرات
  2. local player = game.Players.LocalPlayer
  3. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  4. local frame = Instance.new("Frame", gui)
  5. local textLabel = Instance.new("TextLabel", frame)
  6. local button = Instance.new("TextButton", frame)
  7. local confirmationLabel = Instance.new("TextLabel", gui)
  8.  
  9. local keyFrame = Instance.new("Frame", gui)
  10. local keyTextLabel = Instance.new("TextLabel", keyFrame)
  11. local keyBox = Instance.new("TextBox", keyFrame)
  12. local submitButton = Instance.new("TextButton", keyFrame)
  13.  
  14. -- إعداد نافذة الاشتراك
  15. frame.Size = UDim2.new(0, 200, 0, 100)
  16. frame.Position = UDim2.new(0.5, -100, 0.3, -50)
  17.  
  18. -- إعداد النص
  19. textLabel.Size = UDim2.new(1, 0, 0.5, 0)
  20. textLabel.Text = "اشترك في روبلوكس"
  21. textLabel.TextScaled = true
  22.  
  23. -- إعداد الزر
  24. button.Size = UDim2.new(1, 0, 0.5, 0)
  25. button.Position = UDim2.new(0, 0, 0.5, 0)
  26. button.Text = "اشترك"
  27. button.TextScaled = true
  28.  
  29. -- إعداد نص التأكيد
  30. confirmationLabel.Size = UDim2.new(0, 200, 0, 50)
  31. confirmationLabel.Position = UDim2.new(0.5, -100, 0.5, 0)
  32. confirmationLabel.Text = ""
  33. confirmationLabel.TextScaled = true
  34.  
  35. -- إعداد نافذة المفتاح
  36. keyFrame.Size = UDim2.new(0, 200, 0, 100)
  37. keyFrame.Position = UDim2.new(0.5, -100, 0.5, 50)
  38. keyFrame.Visible = false
  39.  
  40. keyTextLabel.Size = UDim2.new(1, 0, 0.5, 0)
  41. keyTextLabel.Text = "أضف المفتاح"
  42. keyTextLabel.TextScaled = true
  43.  
  44. keyBox.Size = UDim2.new(1, 0, 0.3, 0)
  45. keyBox.Position = UDim2.new(0, 0, 0.5, 0)
  46. keyBox.PlaceholderText = "ادخل المفتاح هنا"
  47.  
  48. submitButton.Size = UDim2.new(1, 0, 0.2, 0)
  49. submitButton.Position = UDim2.new(0, 0, 0.8, 0)
  50. submitButton.Text = "تحقق"
  51.  
  52. -- وظيفة الزر للاشتراك
  53. button.MouseButton1Click:Connect(function()
  54. local youtubeLink = "https://youtube.com/@hazarobloxscripts?si=nCSNqAxYkurT3bbV"
  55. setclipboard(youtubeLink)
  56. confirmationLabel.Text = "تم نسخ الرابط بنجاح!"
  57. print("تم نسخ رابط القناة: " .. youtubeLink)
  58. keyFrame.Visible = true
  59. end)
  60.  
  61. -- وظيفة الزر للتحقق من المفتاح
  62. submitButton.MouseButton1Click:Connect(function()
  63. local correctKey = "HAMOZ"
  64. if keyBox.Text == correctKey then
  65. -- إخفاء جميع النوافذ والنصوص بعد وضع المفتاح الصحيح
  66. frame.Visible = false
  67. keyFrame.Visible = false
  68. confirmationLabel.Visible = false
  69. print("مفتاح صحيح! يتم تشغيل السكربت...")
  70. -- تشغيل السكربت التلقائي بعد وضع المفتاح الصحيح
  71. loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-rochips-universal-18294"))()
  72. else
  73. confirmationLabel.Text = "مفتاح غير صحيح، حاول مجدداً."
  74. print("مفتاح غير صحيح.")
  75. end
  76. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement