Advertisement
Samoni

Untitled

Jan 12th, 2025
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.98 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. local player = game.Players.LocalPlayer
  223. local playerGui = player:WaitForChild("PlayerGui")
  224.  
  225. -- إنشاء ScreenGui
  226. local screenGui = Instance.new("ScreenGui")
  227. screenGui.Parent = playerGui
  228.  
  229. -- نافذة الحصول على رابط مفتاح
  230. local function createLinkFrame()
  231. local mainFrame = Instance.new("Frame")
  232. mainFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
  233. mainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  234. mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  235. mainFrame.BorderSizePixel = 0
  236. mainFrame.Parent = screenGui
  237.  
  238. local mainCorner = Instance.new("UICorner")
  239. mainCorner.CornerRadius = UDim.new(0, 20)
  240. mainCorner.Parent = mainFrame
  241.  
  242. local titleLabel = Instance.new("TextLabel")
  243. titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
  244. titleLabel.Text = "الحصول على رابط مفتاح"
  245. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  246. titleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  247. titleLabel.BorderSizePixel = 0
  248. titleLabel.Parent = mainFrame
  249.  
  250. local infoLabel = Instance.new("TextLabel")
  251. infoLabel.Size = UDim2.new(1, 0, 0.4, 0)
  252. infoLabel.Position = UDim2.new(0, 0, 0.2, 0)
  253. infoLabel.Text = "للحصول على رابط المفتاح، يرجى الضغط على الزر أدناه."
  254. infoLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  255. infoLabel.BackgroundTransparency = 1
  256. infoLabel.Parent = mainFrame
  257.  
  258. local linkButton = Instance.new("TextButton")
  259. linkButton.Size = UDim2.new(0.3, 0, 0.3, 0)
  260. linkButton.Position = UDim2.new(0.35, 0, 0.65, 0)
  261. linkButton.Text = "نسخ رابط المفتاح"
  262. linkButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  263. linkButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  264. linkButton.Parent = mainFrame
  265.  
  266. local buttonCorner = Instance.new("UICorner")
  267. buttonCorner.CornerRadius = UDim.new(0, 10)
  268. buttonCorner.Parent = linkButton
  269.  
  270. local keyLink = "https://example.com/key" -- قم بتغيير الرابط كما تريد
  271.  
  272. linkButton.MouseButton1Click:Connect(function()
  273. setclipboard(keyLink)
  274. print("تم نسخ الرابط إلى الحافظة: " .. keyLink)
  275. mainFrame.Visible = false
  276. createKeyInputFrame()
  277. end)
  278. end
  279.  
  280. -- وظيفة إنشاء نافذة إدخال المفتاح
  281. function createKeyInputFrame()
  282. local keyInputFrame = Instance.new("Frame")
  283. keyInputFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
  284. keyInputFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  285. keyInputFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  286. keyInputFrame.BorderSizePixel = 0
  287. keyInputFrame.Parent = screenGui
  288.  
  289. local inputCorner = Instance.new("UICorner")
  290. inputCorner.CornerRadius = UDim.new(0, 20)
  291. inputCorner.Parent = keyInputFrame
  292.  
  293. local inputTitleLabel = Instance.new("TextLabel")
  294. inputTitleLabel.Size = UDim2.new(1, 0, 0.2, 0)
  295. inputTitleLabel.Text = "إدخال مفتاح"
  296. inputTitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  297. inputTitleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  298. inputTitleLabel.BorderSizePixel = 0
  299. inputTitleLabel.Parent = keyInputFrame
  300.  
  301. local keyInput = Instance.new("TextBox")
  302. keyInput.Size = UDim2.new(1, 0, 0.5, 0)
  303. keyInput.Position = UDim2.new(0, 0, 0.2, 0)
  304. keyInput.PlaceholderText = "أدخل المفتاح هنا"
  305. keyInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  306. keyInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  307. keyInput.Parent = keyInputFrame
  308.  
  309. local confirmButton = Instance.new("TextButton")
  310. confirmButton.Size = UDim2.new(0.3, 0, 0.3, 0)
  311. confirmButton.Position = UDim2.new(0.35, 0, 0.75, 0)
  312. confirmButton.Text = "تأكيد"
  313. confirmButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  314. confirmButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  315. confirmButton.Parent = keyInputFrame
  316.  
  317. local buttonCorner = Instance.new("UICorner")
  318. buttonCorner.CornerRadius = UDim.new(0, 10)
  319. buttonCorner.Parent = confirmButton
  320.  
  321. local correctKey = "HAMOZ" -- المفتاح الصحيح
  322.  
  323. confirmButton.MouseButton1Click:Connect(function()
  324. if keyInput.Text == correctKey then
  325. keyInputFrame.Visible = false
  326. createControlSettingsFrame()
  327. else
  328. createErrorFrame()
  329. end
  330. end)
  331. end
  332.  
  333. -- وظيفة إنشاء نافذة التحكمات
  334. function createControlSettingsFrame()
  335. local settingsFrame = Instance.new("Frame")
  336. settingsFrame.Size = UDim2.new(0.5, 0, 0.5, 0)
  337. settingsFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  338. settingsFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  339. settingsFrame.BorderSizePixel = 0
  340. settingsFrame.Parent = screenGui
  341.  
  342. local settingsCorner = Instance.new("UICorner")
  343. settingsCorner.CornerRadius = UDim.new(0, 20)
  344. settingsCorner.Parent = settingsFrame
  345.  
  346. local titleLabel = Instance.new("TextLabel")
  347. titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
  348. titleLabel.Text = "تحكمات اللاعب"
  349. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  350. titleLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  351. titleLabel.BorderSizePixel = 0
  352. titleLabel.Parent = settingsFrame
  353.  
  354. -- إعدادات السرعة
  355. local speedLabel = Instance.new("TextLabel")
  356. speedLabel.Size = UDim2.new(1, 0, 0.2, 0)
  357. speedLabel.Position = UDim2.new(0, 0, 0.2, 0)
  358. speedLabel.Text = "سرعة الشخصية: "
  359. speedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  360. speedLabel.BackgroundTransparency = 1
  361. speedLabel.Parent = settingsFrame
  362.  
  363. local speedInput = Instance.new("TextBox")
  364. speedInput.Size = UDim2.new(0.5, 0, 0.2, 0)
  365. speedInput.Position = UDim2.new(0, 0, 0.4, 0)
  366. speedInput.PlaceholderText = "أدخل سرعة جديدة"
  367. speedInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  368. speedInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  369. speedInput.Parent = settingsFrame
  370.  
  371. -- إعدادات قوة القفز
  372. local jumpLabel = Instance.new("TextLabel")
  373. jumpLabel.Size = UDim2.new(1, 0, 0.2, 0)
  374. jumpLabel.Position = UDim2.new(0, 0, 0.6, 0)
  375. jumpLabel.Text = "قوة القفز: "
  376. jumpLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  377. jumpLabel.BackgroundTransparency = 1
  378. jumpLabel.Parent = settingsFrame
  379.  
  380. local jumpInput = Instance.new("TextBox")
  381. jumpInput.Size = UDim2.new(0.5, 0, 0.2, 0)
  382. jumpInput.Position = UDim2.new(0, 0, 0.8, 0)
  383. jumpInput.PlaceholderText = "أدخل قوة جديدة"
  384. jumpInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  385. jumpInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  386. jumpInput.Parent = settingsFrame
  387.  
  388. -- زر تطبيق الإعدادات
  389. local applyButton = Instance.new("TextButton")
  390. applyButton.Size = UDim2.new(0.3, 0, 0.3, 0)
  391. applyButton.Position = UDim2.new(0.35, 0, 1, 0)
  392. applyButton.Text = "تطبيق"
  393. applyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  394. applyButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  395. applyButton.Parent = settingsFrame
  396.  
  397. local buttonCorner = Instance.new("UICorner")
  398. buttonCorner.CornerRadius = UDim.new(0, 10)
  399. buttonCorner.Parent = applyButton
  400.  
  401. applyButton.MouseButton1Click:Connect(function()
  402. local newSpeed = tonumber(speedInput.Text)
  403. local newJumpPower = tonumber(jumpInput.Text)
  404.  
  405. if newSpeed then
  406. player.Character.Humanoid.WalkSpeed = newSpeed
  407. end
  408.  
  409. if newJumpPower then
  410. player.Character.Humanoid.JumpPower = newJumpPower
  411. end
  412.  
  413. print("تم تطبيق الإعدادات!")
  414. end)
  415. end
  416.  
  417. -- وظيفة إنشاء نافذة الخطأ
  418. function createErrorFrame()
  419. local errorFrame = Instance.new("Frame")
  420. errorFrame.Size = UDim2.new(1, 0, 1, 0)
  421. errorFrame.Position = UDim2.new(0, 0, 0, 0)
  422. errorFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  423. errorFrame.BorderSizePixel = 0
  424. errorFrame.Parent = screenGui
  425.  
  426. local errorLabel = Instance.new("TextLabel")
  427. errorLabel.Size = UDim2.new(1, 0, 1, 0)
  428. errorLabel.Text = "ستطرد خلال 5 ثواني"
  429. errorLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  430. errorLabel.BackgroundTransparency = 1
  431. errorLabel.Parent = errorFrame
  432.  
  433. for i = 5, 1, -1 do
  434. errorLabel.Text = "ستطرد خلال " .. i .. " ثواني"
  435. wait(1)
  436. end
  437.  
  438. player:Kick("تم طردك بسبب إدخال مفتاح خاطئ.")
  439. end
  440.  
  441. -- بدء التطبيق
  442. createLinkFrame()
  443.  
  444.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement