Advertisement
Samoni

Untitled

Feb 5th, 2025
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.80 KB | None | 0 0
  1. -- إنشاء النافذة
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  4.  
  5. local window = Instance.new("Frame")
  6. window.Size = UDim2.new(0.35, 0, 0.9, 0) -- حجم النافذة (35% عرض، 90% ارتفاع)
  7. window.Position = UDim2.new(0.65, 0, 0.05, 0) -- موقع النافذة (في الجانب الأيمن)
  8. window.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) -- لون الخلفية
  9. window.Parent = screenGui
  10.  
  11. -- جعل حواف النافذة دائرية
  12. local corner = Instance.new("UICorner")
  13. corner.CornerRadius = UDim.new(0.1, 0) -- جعل الحواف دائرية
  14. corner.Parent = window
  15.  
  16. -- عنوان النافذة
  17. local title = Instance.new("TextLabel")
  18. title.Size = UDim2.new(0.8, 0, 0.1, 0) -- حجم العنوان
  19. title.Position = UDim2.new(0.1, 0, 0.05, 0) -- موقع العنوان (في الأعلى)
  20. title.Text = "سكربت اكادمية دراجون العسكرية(مهكر)" -- نص العنوان
  21. title.TextColor3 = Color3.new(1, 1, 1) -- لون النص
  22. title.TextScaled = true -- تكبير النص ليتناسب مع الحجم
  23. title.BackgroundTransparency = 1 -- خلفية شفافة
  24. title.Parent = window
  25.  
  26. -- عنوان "تنقلات"
  27. local teleportTitle = Instance.new("TextLabel")
  28. teleportTitle.Size = UDim2.new(0.8, 0, 0.1, 0) -- حجم العنوان
  29. teleportTitle.Position = UDim2.new(0.1, 0, 0.15, 0) -- موقع العنوان (فوق الأزرار)
  30. teleportTitle.Text = "تنقلات" -- نص العنوان
  31. teleportTitle.TextColor3 = Color3.new(1, 1, 1) -- لون النص
  32. teleportTitle.BackgroundTransparency = 1 -- خلفية شفافة
  33. teleportTitle.Parent = window
  34.  
  35. -- زر "تنقل إلى ردهة"
  36. local roomButton = Instance.new("TextButton")
  37. roomButton.Size = UDim2.new(0.8, 0, 0.1, 0) -- حجم الزر
  38. roomButton.Position = UDim2.new(0.1, 0, 0.3, 0) -- موقع الزر
  39. roomButton.Text = "تنقل إلى ردهة" -- نص الزر
  40. roomButton.BackgroundColor3 = Color3.new(0, 0.5, 1) -- لون الخلفية
  41. roomButton.TextColor3 = Color3.new(1, 1, 1) -- لون النص
  42. roomButton.Parent = window
  43.  
  44. -- جعل الزر دائريًا
  45. local roomButtonCorner = Instance.new("UICorner")
  46. roomButtonCorner.CornerRadius = UDim.new(0.5, 0) -- جعل الزر دائريًا
  47. roomButtonCorner.Parent = roomButton
  48.  
  49. -- زر "تنقل إلى مكان تدريب"
  50. local trainingButton = Instance.new("TextButton")
  51. trainingButton.Size = UDim2.new(0.8, 0, 0.1, 0) -- حجم الزر
  52. trainingButton.Position = UDim2.new(0.1, 0, 0.45, 0) -- موقع الزر
  53. trainingButton.Text = "تنقل إلى مكان تدريب" -- نص الزر
  54. trainingButton.BackgroundColor3 = Color3.new(0, 0.5, 1) -- لون الخلفية
  55. trainingButton.TextColor3 = Color3.new(1, 1, 1) -- لون النص
  56. trainingButton.Parent = window
  57.  
  58. -- جعل الزر دائريًا
  59. local trainingButtonCorner = Instance.new("UICorner")
  60. trainingButtonCorner.CornerRadius = UDim.new(0.5, 0) -- جعل الزر دائريًا
  61. trainingButtonCorner.Parent = trainingButton
  62.  
  63. -- زر "تنقل إلى منطقة تدريب2"
  64. local training2Button = Instance.new("TextButton")
  65. training2Button.Size = UDim2.new(0.8, 0, 0.1, 0) -- حجم الزر
  66. training2Button.Position = UDim2.new(0.1, 0, 0.6, 0) -- موقع الزر
  67. training2Button.Text = "تنقل إلى منطقة تدريب2" -- نص الزر
  68. training2Button.BackgroundColor3 = Color3.new(0, 0.5, 1) -- لون الخلفية
  69. training2Button.TextColor3 = Color3.new(1, 1, 1) -- لون النص
  70. training2Button.Parent = window
  71.  
  72. -- جعل الزر دائريًا
  73. local training2ButtonCorner = Instance.new("UICorner")
  74. training2ButtonCorner.CornerRadius = UDim.new(0.5, 0) -- جعل الزر دائريًا
  75. training2ButtonCorner.Parent = training2Button
  76.  
  77. -- زر "الفوز في سباق الرمل"
  78. local winRaceButton = Instance.new("TextButton")
  79. winRaceButton.Size = UDim2.new(0.8, 0, 0.1, 0) -- حجم الزر
  80. winRaceButton.Position = UDim2.new(0.1, 0, 0.75, 0) -- موقع الزر
  81. winRaceButton.Text = "الفوز في سباق الرمل" -- نص الزر
  82. winRaceButton.BackgroundColor3 = Color3.new(0, 0.5, 1) -- لون الخلفية
  83. winRaceButton.TextColor3 = Color3.new(1, 1, 1) -- لون النص
  84. winRaceButton.Parent = window
  85.  
  86. -- جعل الزر دائريًا
  87. local winRaceButtonCorner = Instance.new("UICorner")
  88. winRaceButtonCorner.CornerRadius = UDim.new(0.5, 0) -- جعل الزر دائريًا
  89. winRaceButtonCorner.Parent = winRaceButton
  90.  
  91. -- زر "تجميع الي"
  92. local autoTeleportButton = Instance.new("TextButton")
  93. autoTeleportButton.Size = UDim2.new(0.8, 0, 0.1, 0) -- حجم الزر
  94. autoTeleportButton.Position = UDim2.new(0.1, 0, 0.9, 0) -- موقع الزر
  95. autoTeleportButton.Text = "تشغيل تجميع الي" -- نص الزر
  96. autoTeleportButton.BackgroundColor3 = Color3.new(0, 0.5, 1) -- لون الخلفية
  97. autoTeleportButton.TextColor3 = Color3.new(1, 1, 1) -- لون النص
  98. autoTeleportButton.Parent = window
  99.  
  100. -- جعل الزر دائريًا
  101. local autoTeleportButtonCorner = Instance.new("UICorner")
  102. autoTeleportButtonCorner.CornerRadius = UDim.new(0.5, 0) -- جعل الزر دائريًا
  103. autoTeleportButtonCorner.Parent = autoTeleportButton
  104.  
  105. -- زر الإغلاق
  106. local closeButton = Instance.new("TextButton")
  107. closeButton.Size = UDim2.new(0.1, 0, 0.1, 0) -- حجم الزر
  108. closeButton.Position = UDim2.new(0.85, 0, 0.02, 0) -- موقع الزر (في الزاوية اليمنى العليا)
  109. closeButton.Text = "X" -- نص الزر
  110. closeButton.BackgroundColor3 = Color3.new(1, 0, 0) -- لون الخلفية
  111. closeButton.TextColor3 = Color3.new(1, 1, 1) -- لون النص
  112. closeButton.Parent = window
  113.  
  114. -- جعل زر الإغلاق دائريًا
  115. local closeButtonCorner = Instance.new("UICorner")
  116. closeButtonCorner.CornerRadius = UDim.new(0.5, 0) -- جعل الزر دائريًا
  117. closeButtonCorner.Parent = closeButton
  118.  
  119. -- وظيفة النقل إلى موقع محدد
  120. local function teleportPlayerTo(position)
  121. local player = game.Players.LocalPlayer
  122. local character = player.Character
  123. if character and character:FindFirstChild("HumanoidRootPart") then
  124. character.HumanoidRootPart.CFrame = position
  125. end
  126. end
  127.  
  128. -- زر "تنقل إلى ردهة"
  129. roomButton.MouseButton1Click:Connect(function()
  130. local target = workspace.dmg:GetChildren()[2]
  131. if target then
  132. teleportPlayerTo(target.CFrame)
  133. else
  134. warn("لم يتم العثور على الردهة!")
  135. end
  136. end)
  137.  
  138. -- زر "تنقل إلى مكان تدريب"
  139. trainingButton.MouseButton1Click:Connect(function()
  140. local target = workspace.TrainingSystem:FindFirstChild("SpatialArea2")
  141. if target then
  142. teleportPlayerTo(target.CFrame)
  143. else
  144. warn("لم يتم العثور على مكان التدريب!")
  145. end
  146. end)
  147.  
  148. -- زر "تنقل إلى منطقة تدريب2"
  149. training2Button.MouseButton1Click:Connect(function()
  150. local target = workspace.TrainingSystem:FindFirstChild("SpatialArea")
  151. if target then
  152. teleportPlayerTo(target.CFrame)
  153. else
  154. warn("لم يتم العثور على منطقة التدريب2!")
  155. end
  156. end)
  157.  
  158. -- زر "الفوز في سباق الرمل"
  159. winRaceButton.MouseButton1Click:Connect(function()
  160. local target = workspace.Maps.Map1:FindFirstChild("WinPart")
  161. if target then
  162. teleportPlayerTo(target.CFrame)
  163. else
  164. warn("لم يتم العثور على منطقة الفوز في سباق الرمل!")
  165. end
  166. end)
  167.  
  168. -- وظيفة إغلاق النافذة
  169. closeButton.MouseButton1Click:Connect(function()
  170. screenGui:Destroy() -- إغلاق النافذة
  171. end)
  172.  
  173. -- متغير لتتبع حالة التجميع التلقائي
  174. local isAutoTeleporting = false
  175.  
  176. -- وظيفة التجميع التلقائي
  177. local function autoTeleport()
  178. while isAutoTeleporting do
  179. wait(3) -- انتظر ثلاث ثوانٍ
  180.  
  181. local bitcoinFolder = workspace:FindFirstChild("Bitcoin")
  182. if bitcoinFolder then
  183. -- النقل إلى Bitcoin.Bitcoin
  184. local bitcoin = bitcoinFolder:FindFirstChild("Bitcoin")
  185. if bitcoin then
  186. teleportPlayerTo(bitcoin.CFrame)
  187. wait(3) -- انتظر ثلاث ثوانٍ قبل الانتقال إلى الموقع التالي
  188. end
  189.  
  190. -- النقل إلى العنصر الثالث في Bitcoin
  191. local thirdChild = bitcoinFolder:GetChildren()[3]
  192. if thirdChild then
  193. teleportPlayerTo(thirdChild.CFrame)
  194. wait(3) -- انتظر ثلاث ثوانٍ قبل الانتقال إلى الموقع التالي
  195. end
  196.  
  197. -- النقل إلى العنصر الثاني في Bitcoin
  198. local secondChild = bitcoinFolder:GetChildren()[2]
  199. if secondChild then
  200. teleportPlayerTo(secondChild.CFrame)
  201. wait(3) -- انتظر ثلاث ثوانٍ قبل الانتقال إلى الموقع التالي
  202. end
  203.  
  204. -- النقل إلى العنصر الرابع في Bitcoin
  205. local fourthChild = bitcoinFolder:GetChildren()[4]
  206. if fourthChild then
  207. teleportPlayerTo(fourthChild.CFrame)
  208. end
  209. else
  210. warn("لم يتم العثور على مجلد Bitcoin في workspace!")
  211. end
  212. end
  213. end
  214.  
  215. -- زر "تجميع الي"
  216. autoTeleportButton.MouseButton1Click:Connect(function()
  217. isAutoTeleporting = not isAutoTeleporting -- تبديل حالة التجميع التلقائي
  218. if isAutoTeleporting then
  219. autoTeleportButton.Text = "إيقاف تجميع الي"
  220. autoTeleport() -- بدء التجميع التلقائي
  221. else
  222. autoTeleportButton.Text = "تشغيل تجميع الي"
  223. end
  224. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement