Advertisement
F6_youssef

Untitled

Dec 16th, 2023
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.00 KB | None | 0 0
  1. السكربت الاول طيران
  2. game:GetService("StarterGui"):SetCore("SendNotification",{
  3. Title = " عراقي المترجم";
  4. Text = "تم ترجمه من عامر";
  5. Duration = 3.5;
  6. })
  7. -- Gui to Lua
  8. -- Version: 3.2
  9. -- Instances:
  10. local main = Instance.new("ScreenGui")
  11. local Frame = Instance.new("Frame")
  12. local up = Instance.new("TextButton")
  13. local down = Instance.new("TextButton")
  14. local onof = Instance.new("TextButton")
  15. local TextLabel = Instance.new("TextLabel")
  16. local plus = Instance.new("TextButton")
  17. local speed = Instance.new("TextLabel")
  18. local mine = Instance.new("TextButton")
  19. --Properties:
  20. main.Name = "main"
  21. main.Parent = game.CoreGui
  22. main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  23. Frame.Parent = main
  24. Frame.BackgroundColor3 = Color3.fromRGB(163, 255, 137)
  25. Frame.BorderColor3 = Color3.fromRGB(103, 221, 213)
  26. Frame.Position = UDim2.new(0.100320168, 0, 0.379746825, 0)
  27. Frame.Size = UDim2.new(0, 190, 0, 57)
  28. up.Name = "up"
  29. up.Parent = Frame
  30. up.BackgroundColor3 = Color3.fromRGB(79, 255, 152)
  31. up.Size = UDim2.new(0, 44, 0, 28)
  32. up.Font = Enum.Font.SourceSans
  33. up.Text = "فوق"
  34. up.TextColor3 = Color3.fromRGB(0, 0, 0)
  35. up.TextSize = 14.000
  36. down.Name = "down"
  37. down.Parent = Frame
  38. down.BackgroundColor3 = Color3.fromRGB(215, 255, 121)
  39. down.Position = UDim2.new(0, 0, 0.491228074, 0)
  40. down.Size = UDim2.new(0, 44, 0, 28)
  41. down.Font = Enum.Font.SourceSans
  42. down.Text = "تحت"
  43. down.TextColor3 = Color3.fromRGB(0, 0, 0)
  44. down.TextSize = 14.000
  45. onof.Name = "onof"
  46. onof.Parent = Frame
  47. onof.BackgroundColor3 = Color3.fromRGB(255, 249, 74)
  48. onof.Position = UDim2.new(0.702823281, 0, 0.491228074, 0)
  49. onof.Size = UDim2.new(0, 56, 0, 28)
  50. onof.Font = Enum.Font.SourceSans
  51. onof.Text = "طيران"
  52. onof.TextColor3 = Color3.fromRGB(0, 0, 0)
  53. onof.TextSize = 14.000
  54. TextLabel.Parent = Frame
  55. TextLabel.BackgroundColor3 = Color3.fromRGB(242, 60, 255)
  56. TextLabel.Position = UDim2.new(0.469327301, 0, 0, 0)
  57. TextLabel.Size = UDim2.new(0, 100, 0, 28)
  58. TextLabel.Font = Enum.Font.SourceSans
  59. TextLabel.Text = "سكربت طيران"
  60. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  61. TextLabel.TextScaled = true
  62. TextLabel.TextSize = 14.000
  63. TextLabel.TextWrapped = true
  64. plus.Name = "plus"
  65. plus.Parent = Frame
  66. plus.BackgroundColor3 = Color3.fromRGB(133, 145, 255)
  67. plus.Position = UDim2.new(0.231578946, 0, 0, 0)
  68. plus.Size = UDim2.new(0, 45, 0, 28)
  69. plus.Font = Enum.Font.SourceSans
  70. plus.Text = "+"
  71. plus.TextColor3 = Color3.fromRGB(0, 0, 0)
  72. plus.TextScaled = true
  73. plus.TextSize = 14.000
  74. plus.TextWrapped = true
  75. speed.Name = "speed"
  76. speed.Parent = Frame
  77. speed.BackgroundColor3 = Color3.fromRGB(255, 85, 0)
  78. speed.Position = UDim2.new(0.468421042, 0, 0.491228074, 0)
  79. speed.Size = UDim2.new(0, 44, 0, 28)
  80. speed.Font = Enum.Font.SourceSans
  81. speed.Text = "1"
  82. speed.TextColor3 = Color3.fromRGB(0, 0, 0)
  83. speed.TextScaled = true
  84. speed.TextSize = 14.000
  85. speed.TextWrapped = true
  86. mine.Name = "mine"
  87. mine.Parent = Frame
  88. mine.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
  89. mine.Position = UDim2.new(0.231578946, 0, 0.491228074, 0)
  90. mine.Size = UDim2.new(0, 45, 0, 29)
  91. mine.Font = Enum.Font.SourceSans
  92. mine.Text = "-"
  93. mine.TextColor3 = Color3.fromRGB(0, 0, 0)
  94. mine.TextScaled = true
  95. mine.TextSize = 14.000
  96. mine.TextWrapped = true
  97. speeds = 1
  98. local speaker = game:GetService("Players").LocalPlayer
  99. local chr = game.Players.LocalPlayer.Character
  100. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  101. nowe = false
  102. Frame.Active = true -- main = gui
  103. Frame.Draggable = true
  104. onof.MouseButton1Down:connect(function()
  105. if nowe == true then
  106. nowe = false
  107. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  108. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  109. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  110. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  111. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  112. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  113. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  114. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  115. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  116. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  117. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  118. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  119. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  120. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  121. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  122. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  123. else
  124. nowe = true
  125. for i = 1, speeds do
  126. spawn(function()
  127. local hb = game:GetService("RunService").Heartbeat
  128. tpwalking = true
  129. local chr = game.Players.LocalPlayer.Character
  130. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  131. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  132. if hum.MoveDirection.Magnitude > 0 then
  133. chr:TranslateBy(hum.MoveDirection)
  134. end
  135. end
  136. end)
  137. end
  138. game.Players.LocalPlayer.Character.Animate.Disabled = true
  139. local Char = game.Players.LocalPlayer.Character
  140. local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  141. for i,v in next, Hum:GetPlayingAnimationTracks() do
  142. v:AdjustSpeed(0)
  143. end
  144. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  145. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  146. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  147. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  148. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  149. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  150. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  151. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  152. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  153. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  154. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  155. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  156. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  157. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  158. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  159. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  160. end
  161. local plr = game.Players.LocalPlayer
  162. local UpperTorso = plr.Character.LowerTorso
  163. local flying = true
  164. local deb = true
  165. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  166. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  167. local maxspeed = 50
  168. local speed = 0
  169. local bg = Instance.new("BodyGyro", UpperTorso)
  170. bg.P = 9e4
  171. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  172. bg.cframe = UpperTorso.CFrame
  173. local bv = Instance.new("BodyVelocity", UpperTorso)
  174. bv.velocity = Vector3.new(0,0.1,0)
  175. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  176. if nowe == true then
  177. plr.Character.Humanoid.PlatformStand = true
  178. end
  179. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  180. wait()
  181. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  182. speed = speed+.5+(speed/maxspeed)
  183. if speed > maxspeed then
  184. speed = maxspeed
  185. end
  186. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  187. speed = speed-1
  188. if speed < 0 then
  189. speed = 0
  190. end
  191. end
  192. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  193. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  194. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  195. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  196. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  197. else
  198. bv.velocity = Vector3.new(0,0,0)
  199. end
  200. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  201. end
  202. ctrl = {f = 0, b = 0, l = 0, r = 0}
  203. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  204. speed = 0
  205. bg:Destroy()
  206. bv:Destroy()
  207. plr.Character.Humanoid.PlatformStand = false
  208. game.Players.LocalPlayer.Character.Animate.Disabled = false
  209. tpwalking = false
  210.  
  211. end)
  212. up.MouseButton1Down:connect(function()
  213. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,2,0)
  214.  
  215. end)
  216. down.MouseButton1Down:connect(function()
  217. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-2,0)
  218. end)
  219. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
  220. wait(0.7)
  221. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  222. game.Players.LocalPlayer.Character.Animate.Disabled = false
  223. end)
  224. plus.MouseButton1Down:connect(function()
  225. speeds = speeds + 1
  226. speed.Text = speeds
  227. if nowe == true then
  228.  
  229. tpwalking = false
  230. for i = 1, speeds do
  231. spawn(function()
  232. local hb = game:GetService("RunService").Heartbeat
  233. tpwalking = true
  234. local chr = game.Players.LocalPlayer.Character
  235. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  236. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  237. if hum.MoveDirection.Magnitude > 0 then
  238. chr:TranslateBy(hum.MoveDirection)
  239. end
  240. end
  241. end)
  242. end
  243. end
  244. end)
  245. mine.MouseButton1Down:connect(function()
  246. if speeds == 1 then
  247. speed.Text = 'can not be less than 1'
  248. wait(1)
  249. speed.Text = speeds
  250. else
  251. speeds = speeds - 1
  252. speed.Text = speeds
  253. if nowe == true then
  254. tpwalking = false
  255. for i = 1, speeds do
  256. spawn(function()
  257. local hb = game:GetService("RunService").Heartbeat
  258. tpwalking = true
  259. local chr = game.Players.LocalPlayer.Character
  260. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  261. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  262. if hum.MoveDirection.Magnitude > 0 then
  263. chr:TranslateBy(hum.MoveDirection)
  264. end
  265. end
  266. end)
  267. end
  268. end
  269. end
  270. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement