Advertisement
Samoni

Untitled

Jan 12th, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.49 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local playerGui = player:WaitForChild("PlayerGui")
  3.  
  4. -- إنشاء ScreenGui
  5. local screenGui = Instance.new("ScreenGui")
  6. screenGui.Parent = playerGui
  7.  
  8. -- نافذة الحصول على رابط مفتاح
  9. local function createLinkFrame()
  10. local mainFrame = Instance.new("Frame")
  11. mainFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
  12. mainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  13. mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  14. mainFrame.BorderSizePixel = 0
  15. mainFrame.Parent = screenGui
  16.  
  17. local mainCorner = Instance.new("UICorner")
  18. mainCorner.CornerRadius = UDim.new(0, 20)
  19. mainCorner.Parent = mainFrame
  20.  
  21. local titleLabel = Instance.new("TextLabel")
  22. titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
  23. titleLabel.Text = "الحصول على رابط مفتاح"
  24. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  25. titleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  26. titleLabel.BorderSizePixel = 0
  27. titleLabel.Parent = mainFrame
  28.  
  29. local infoLabel = Instance.new("TextLabel")
  30. infoLabel.Size = UDim2.new(1, 0, 0.4, 0)
  31. infoLabel.Position = UDim2.new(0, 0, 0.2, 0)
  32. infoLabel.Text = "للحصول على رابط المفتاح، يرجى الضغط على الزر أدناه."
  33. infoLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  34. infoLabel.BackgroundTransparency = 1
  35. infoLabel.Parent = mainFrame
  36.  
  37. local linkButton = Instance.new("TextButton")
  38. linkButton.Size = UDim2.new(0.3, 0, 0.3, 0)
  39. linkButton.Position = UDim2.new(0.35, 0, 0.65, 0)
  40. linkButton.Text = "نسخ رابط المفتاح"
  41. linkButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  42. linkButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  43. linkButton.Parent = mainFrame
  44.  
  45. local buttonCorner = Instance.new("UICorner")
  46. buttonCorner.CornerRadius = UDim.new(0, 10)
  47. buttonCorner.Parent = linkButton
  48.  
  49. local keyLink = "https://example.com/key" -- قم بتغيير الرابط كما تريد
  50.  
  51. linkButton.MouseButton1Click:Connect(function()
  52. setclipboard(keyLink)
  53. print("تم نسخ الرابط إلى الحافظة: " .. keyLink)
  54. mainFrame.Visible = false
  55. createKeyInputFrame()
  56. end)
  57. end
  58.  
  59. -- وظيفة إنشاء نافذة إدخال المفتاح
  60. function createKeyInputFrame()
  61. local keyInputFrame = Instance.new("Frame")
  62. keyInputFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
  63. keyInputFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  64. keyInputFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  65. keyInputFrame.BorderSizePixel = 0
  66. keyInputFrame.Parent = screenGui
  67.  
  68. local inputCorner = Instance.new("UICorner")
  69. inputCorner.CornerRadius = UDim.new(0, 20)
  70. inputCorner.Parent = keyInputFrame
  71.  
  72. local inputTitleLabel = Instance.new("TextLabel")
  73. inputTitleLabel.Size = UDim2.new(1, 0, 0.2, 0)
  74. inputTitleLabel.Text = "إدخال مفتاح"
  75. inputTitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  76. inputTitleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  77. inputTitleLabel.BorderSizePixel = 0
  78. inputTitleLabel.Parent = keyInputFrame
  79.  
  80. local keyInput = Instance.new("TextBox")
  81. keyInput.Size = UDim2.new(1, 0, 0.5, 0)
  82. keyInput.Position = UDim2.new(0, 0, 0.2, 0)
  83. keyInput.PlaceholderText = "أدخل المفتاح هنا"
  84. keyInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  85. keyInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  86. keyInput.Parent = keyInputFrame
  87.  
  88. local confirmButton = Instance.new("TextButton")
  89. confirmButton.Size = UDim2.new(0.3, 0, 0.3, 0)
  90. confirmButton.Position = UDim2.new(0.35, 0, 0.75, 0)
  91. confirmButton.Text = "تأكيد"
  92. confirmButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  93. confirmButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  94. confirmButton.Parent = keyInputFrame
  95.  
  96. local buttonCorner = Instance.new("UICorner")
  97. buttonCorner.CornerRadius = UDim.new(0, 10)
  98. buttonCorner.Parent = confirmButton
  99.  
  100. local correctKey = "HAMOZ" -- المفتاح الصحيح
  101.  
  102. confirmButton.MouseButton1Click:Connect(function()
  103. if keyInput.Text == correctKey then
  104. keyInputFrame.Visible = false
  105. createControlSettingsFrame()
  106. else
  107. createErrorFrame()
  108. end
  109. end)
  110. end
  111.  
  112. -- وظيفة إنشاء نافذة التحكمات
  113. function createControlSettingsFrame()
  114. local settingsFrame = Instance.new("Frame")
  115. settingsFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
  116. settingsFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  117. settingsFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  118. settingsFrame.BorderSizePixel = 0
  119. settingsFrame.Parent = screenGui
  120.  
  121. local settingsCorner = Instance.new("UICorner")
  122. settingsCorner.CornerRadius = UDim.new(0, 20)
  123. settingsCorner.Parent = settingsFrame
  124.  
  125. local titleLabel = Instance.new("TextLabel")
  126. titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
  127. titleLabel.Text = "تحكمات اللاعب"
  128. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  129. titleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  130. titleLabel.BorderSizePixel = 0
  131. titleLabel.Parent = settingsFrame
  132.  
  133. -- إعدادات السرعة
  134. local speedLabel = Instance.new("TextLabel")
  135. speedLabel.Size = UDim2.new(1, 0, 0.2, 0)
  136. speedLabel.Position = UDim2.new(0, 0, 0.2, 0)
  137. speedLabel.Text = "سرعة الشخصية: "
  138. speedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  139. speedLabel.BackgroundTransparency = 1
  140. speedLabel.Parent = settingsFrame
  141.  
  142. local speedInput = Instance.new("TextBox")
  143. speedInput.Size = UDim2.new(0.5, 0, 0.2, 0)
  144. speedInput.Position = UDim2.new(0, 0, 0.4, 0)
  145. speedInput.PlaceholderText = "أدخل سرعة جديدة"
  146. speedInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  147. speedInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  148. speedInput.Parent = settingsFrame
  149.  
  150. -- إعدادات قوة القفز
  151. local jumpLabel = Instance.new("TextLabel")
  152. jumpLabel.Size = UDim2.new(1, 0, 0.2, 0)
  153. jumpLabel.Position = UDim2.new(0, 0, 0.6, 0)
  154. jumpLabel.Text = "قوة القفز: "
  155. jumpLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  156. jumpLabel.BackgroundTransparency = 1
  157. jumpLabel.Parent = settingsFrame
  158.  
  159. local jumpInput = Instance.new("TextBox")
  160. jumpInput.Size = UDim2.new(0.5, 0, 0.2, 0)
  161. jumpInput.Position = UDim2.new(0, 0, 0.8, 0)
  162. jumpInput.PlaceholderText = "أدخل قوة جديدة"
  163. jumpInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  164. jumpInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  165. jumpInput.Parent = settingsFrame
  166.  
  167. -- زر تطبيق الإعدادات
  168. local applyButton = Instance.new("TextButton")
  169. applyButton.Size = UDim2.new(0.3, 0, 0.3, 0)
  170. applyButton.Position = UDim2.new(0.35, 0, 1, 0)
  171. applyButton.Text = "تطبيق"
  172. applyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  173. applyButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  174. applyButton.Parent = settingsFrame
  175.  
  176. local buttonCorner = Instance.new("UICorner")
  177. buttonCorner.CornerRadius = UDim.new(0, 10)
  178. buttonCorner.Parent = applyButton
  179.  
  180. applyButton.MouseButton1Click:Connect(function()
  181. local newSpeed = tonumber(speedInput.Text)
  182. local newJumpPower = tonumber(jumpInput.Text)
  183.  
  184. if newSpeed then
  185. player.Character.Humanoid.WalkSpeed = newSpeed
  186. end
  187.  
  188. if newJumpPower then
  189. player.Character.Humanoid.JumpPower = newJumpPower
  190. end
  191.  
  192. print("تم تطبيق الإعدادات!")
  193. end)
  194. end
  195.  
  196. -- وظيفة إنشاء نافذة الخطأ
  197. function createErrorFrame()
  198. local errorFrame = Instance.new("Frame")
  199. errorFrame.Size = UDim2.new(1, 0, 1, 0)
  200. errorFrame.Position = UDim2.new(0, 0, 0, 0)
  201. errorFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  202. errorFrame.BorderSizePixel = 0
  203. errorFrame.Parent = screenGui
  204.  
  205. local errorLabel = Instance.new("TextLabel")
  206. errorLabel.Size = UDim2.new(1, 0, 1, 0)
  207. errorLabel.Text = "ستطرد خلال 5 ثواني"
  208. errorLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  209. errorLabel.BackgroundTransparency = 1
  210. errorLabel.Parent = errorFrame
  211.  
  212. for i = 5, 1, -1 do
  213. errorLabel.Text = "ستطرد خلال " .. i .. " ثواني"
  214. wait(1)
  215. end
  216.  
  217. player:Kick("تم طردك بسبب إدخال مفتاح خاطئ.")
  218. end
  219.  
  220. -- بدء التطبيق
  221. createLinkFrame()
  222.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement