Sector883

سكربت طيران عربي

Jan 28th, 2024
165
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. --[[
  2. FE Mobile Fly By sector_سكتو
  3.  
  4. Type in chat !stop, to stop the script
  5.  
  6. ]]--
  7.  
  8. local STARTERGUI = game:GetService("StarterGui")
  9.  
  10. if game:GetService("ReplicatedStorage"):FindFirstChild("BZn2q91BzN") then
  11. STARTERGUI:SetCore("SendNotification",{
  12. Title = "سكربت طيران عربي",
  13. Text = "Script is already running",
  14. Icon = "rbxassetid://278315432",
  15. Duration = 4
  16. })
  17. return
  18. end
  19.  
  20. local ScreenGui = Instance.new("ScreenGui")
  21. local FlyButton = Instance.new("TextButton")
  22. local SpeedBox = Instance.new("TextBox")
  23.  
  24. local NSound = Instance.new("Sound", FlyButton)
  25. NSound.SoundId = "rbxassetid://9086208751"
  26. NSound.Volume = 1
  27.  
  28. function Notify(Txt, Dur)
  29. STARTERGUI:SetCore("SendNotification",{
  30. Title = "FED's Mobile Fly",
  31. Text = Txt,
  32. Icon = "rbxassetid://278315432",
  33. Duration = Dur
  34. })
  35. NSound:Play()
  36. end
  37.  
  38. -- Detect if script already ran
  39.  
  40. local VdbwjS = Instance.new("StringValue",game:GetService("ReplicatedStorage"))
  41. VdbwjS.Name = "BZn2q91BzN"
  42.  
  43. Notify("Script made by fedoratum", 5)
  44.  
  45. local plr = game:GetService"Players"
  46. local Lp = plr.LocalPlayer
  47. local rs = game:GetService"RunService"
  48. local UserInputService = game:GetService"UserInputService"
  49.  
  50. local buttonIsOn = false
  51.  
  52. ScreenGui.Parent = game:GetService("CoreGui")
  53. ScreenGui.ResetOnSpawn = false
  54.  
  55. FlyButton.Name = "FlyButton"
  56. FlyButton.Parent = ScreenGui
  57. FlyButton.BackgroundColor3 = Color3.new(0.168627, 0.513726, 0.25098)
  58. FlyButton.BorderColor3 = Color3.new(0,0,0)
  59. FlyButton.Position = UDim2.new(0.912970064, 0, 0.194202876, 0)
  60. FlyButton.Size = UDim2.new(0, 50, 0, 50)
  61. FlyButton.Font = Enum.Font.Code
  62. FlyButton.Text = "Fly"
  63. FlyButton.TextColor3 = Color3.new(0,0,0)
  64. FlyButton.TextSize = 14
  65. FlyButton.TextStrokeColor3 = Color3.new(1, 1, 1)
  66. FlyButton.TextWrapped = true
  67. FlyButton.Transparency = 0.2
  68. FlyButton.Active = true
  69. FlyButton.Draggable = true
  70.  
  71. SpeedBox.Name "speedbox"
  72. SpeedBox.Parent = FlyButton
  73. SpeedBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. SpeedBox.Position = UDim2.new(-1.716970064, 0, 0.004202876, 0)
  75. SpeedBox.Size = UDim2.new(0, 80, 0, 50)
  76. SpeedBox.Font = Enum.Font.Code
  77. SpeedBox.PlaceholderText = "السرعة"
  78. SpeedBox.Text = ""
  79. SpeedBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  80. SpeedBox.TextScaled = true
  81. SpeedBox.TextSize = 14.000
  82. SpeedBox.TextWrapped = true
  83.  
  84. local controlModule = require(Lp.PlayerScripts:WaitForChild('PlayerModule'):WaitForChild("ControlModule"))
  85. -- Get joystick
  86.  
  87. local bv = Instance.new("BodyVelocity")
  88. bv.Name = "VelocityHandler"
  89. bv.Parent = Lp.Character.HumanoidRootPart
  90. bv.MaxForce = Vector3.new(0,0,0)
  91. bv.Velocity = Vector3.new(0,0,0)
  92.  
  93. local bg = Instance.new("BodyGyro")
  94. bg.Name = "GyroHandler"
  95. bg.Parent = Lp.Character.HumanoidRootPart
  96. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  97. bg.P = 1000
  98. bg.D = 50
  99.  
  100. local Signal1
  101. Signal1 = Lp.CharacterAdded:Connect(function(NewChar)
  102. local bv = Instance.new("BodyVelocity")
  103. bv.Name = "VelocityHandler"
  104. bv.Parent = NewChar:WaitForChild("Humanoid").RootPart
  105. bv.MaxForce = Vector3.new(0,0,0)
  106. bv.Velocity = Vector3.new(0,0,0)
  107.  
  108. local bg = Instance.new("BodyGyro")
  109. bg.Name = "GyroHandler"
  110. bg.Parent = NewChar:WaitForChild("Humanoid").RootPart
  111. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  112. bg.P = 1000
  113. bg.D = 50
  114. end)
  115.  
  116. local camera = Workspace.CurrentCamera
  117. local speed = 50
  118.  
  119. local Signal2
  120. Signal2 = rs.RenderStepped:Connect(function()
  121. if Lp.Character and Lp.Character:FindFirstChildOfClass("Humanoid") and Lp.Character.Humanoid.RootPart and Lp.Character.HumanoidRootPart:FindFirstChild("VelocityHandler") and Lp.Character.HumanoidRootPart:FindFirstChild("GyroHandler") then
  122.  
  123. if buttonIsOn then
  124. FlyButton.Text = "الطيران: تشغيل"
  125. FlyButton.BackgroundColor3 = Color3.new(0,255,0)
  126. Lp.Character.HumanoidRootPart.VelocityHandler.MaxForce = Vector3.new(9e9,9e9,9e9)
  127. Lp.Character.HumanoidRootPart.GyroHandler.MaxTorque = Vector3.new(9e9,9e9,9e9)
  128. Lp.Character.Humanoid.PlatformStand = true
  129. elseif buttonIsOn == false then
  130. FlyButton.Text = "الطيران: ايقاف"
  131. FlyButton.BackgroundColor3 = Color3.new(255,0,0)
  132. Lp.Character.HumanoidRootPart.VelocityHandler.MaxForce = Vector3.new(0,0,0)
  133. Lp.Character.HumanoidRootPart.GyroHandler.MaxTorque = Vector3.new(0,0,0)
  134. Lp.Character.Humanoid.PlatformStand = false
  135. return
  136. end
  137.  
  138. Lp.Character.HumanoidRootPart.GyroHandler.CFrame = camera.CoordinateFrame
  139. local direction = controlModule:GetMoveVector()
  140. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Vector3.new()
  141. if direction.X > 0 then
  142. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity + camera.CFrame.RightVector*(direction.X*speed)
  143. end
  144. if direction.X < 0 then
  145. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity + camera.CFrame.RightVector*(direction.X*speed)
  146. end
  147. if direction.Z > 0 then
  148. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity - camera.CFrame.LookVector*(direction.Z*speed)
  149. end
  150. if direction.Z < 0 then
  151. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity - camera.CFrame.LookVector*(direction.Z*speed)
  152. end
  153. end
  154. end)
  155.  
  156. FlyButton.TouchTap:Connect(function()
  157. buttonIsOn = not buttonIsOn
  158. end)
  159.  
  160. local Signal3
  161. Signal3 = SpeedBox:GetPropertyChangedSignal("Text"):Connect(function()
  162. if tonumber(SpeedBox.Text) then
  163. speed = tonumber(SpeedBox.Text)
  164. end
  165. end)
  166.  
  167. Lp.Chatted:Connect(function(msg)
  168. if msg:sub(1,5) == "!stop" then
  169. Signal1:Disconnect()
  170. Signal2:Disconnect()
  171. Signal3:Disconnect()
  172. game:GetService("ReplicatedStorage"):FindFirstChild("BZn2q91BzN"):Destroy()
  173. ScreenGui:Destroy()
  174. Lp.Character.Humanoid.Health = 0
  175. end
  176. end)
Advertisement
Comments
  • Ndjdjrnnjjj
    1 year
    # text 5.71 KB | 0 0
    1. --[[
    2. FE Mobile Fly By sector_سكتو
    3.  
    4. Type in chat !stop, to stop the script
    5.  
    6. ]]--
    7.  
    8. local STARTERGUI = game:GetService("StarterGui")
    9.  
    10. if game:GetService("ReplicatedStorage"):FindFirstChild("BZn2q91BzN") then
    11. STARTERGUI:SetCore("SendNotification",{
    12. Title = "سكربت طيران عربي",
    13. Text = "Script is already running",
    14. Icon = "rbxassetid://278315432",
    15. Duration = 4
    16. })
    17. return
    18. end
    19.  
    20. local ScreenGui = Instance.new("ScreenGui")
    21. local FlyButton = Instance.new("TextButton")
    22. local SpeedBox = Instance.new("TextBox")
    23.  
    24. local NSound = Instance.new("Sound", FlyButton)
    25. NSound.SoundId = "rbxassetid://9086208751"
    26. NSound.Volume = 1
    27.  
    28. function Notify(Txt, Dur)
    29. STARTERGUI:SetCore("SendNotification",{
    30. Title = "FED's Mobile Fly",
    31. Text = Txt,
    32. Icon = "rbxassetid://278315432",
    33. Duration = Dur
    34. })
    35. NSound:Play()
    36. end
    37.  
    38. -- Detect if script already ran
    39.  
    40. local VdbwjS = Instance.new("StringValue",game:GetService("ReplicatedStorage"))
    41. VdbwjS.Name = "BZn2q91BzN"
    42.  
    43. Notify("Script made by fedoratum", 5)
    44.  
    45. local plr = game:GetService"Players"
    46. local Lp = plr.LocalPlayer
    47. local rs = game:GetService"RunService"
    48. local UserInputService = game:GetService"UserInputService"
    49.  
    50. local buttonIsOn = false
    51.  
    52. ScreenGui.Parent = game:GetService("CoreGui")
    53. ScreenGui.ResetOnSpawn = false
    54.  
    55. FlyButton.Name = "FlyButton"
    56. FlyButton.Parent = ScreenGui
    57. FlyButton.BackgroundColor3 = Color3.new(0.168627, 0.513726, 0.25098)
    58. FlyButton.BorderColor3 = Color3.new(0,0,0)
    59. FlyButton.Position = UDim2.new(0.912970064, 0, 0.194202876, 0)
    60. FlyButton.Size = UDim2.new(0, 50, 0, 50)
    61. FlyButton.Font = Enum.Font.Code
    62. FlyButton.Text = "Fly"
    63. FlyButton.TextColor3 = Color3.new(0,0,0)
    64. FlyButton.TextSize = 14
    65. FlyButton.TextStrokeColor3 = Color3.new(1, 1, 1)
    66. FlyButton.TextWrapped = true
    67. FlyButton.Transparency = 0.2
    68. FlyButton.Active = true
    69. FlyButton.Draggable = true
    70.  
    71. SpeedBox.Name "speedbox"
    72. SpeedBox.Parent = FlyButton
    73. SpeedBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
    74. SpeedBox.Position = UDim2.new(-1.716970064, 0, 0.004202876, 0)
    75. SpeedBox.Size = UDim2.new(0, 80, 0, 50)
    76. SpeedBox.Font = Enum.Font.Code
    77. SpeedBox.PlaceholderText = "السرعة"
    78. SpeedBox.Text = ""
    79. SpeedBox.TextColor3 = Color3.fromRGB(0, 0, 0)
    80. SpeedBox.TextScaled = true
    81. SpeedBox.TextSize = 14.000
    82. SpeedBox.TextWrapped = true
    83.  
    84. local controlModule = require(Lp.PlayerScripts:WaitForChild('PlayerModule'):WaitForChild("ControlModule"))
    85. -- Get joystick
    86.  
    87. local bv = Instance.new("BodyVelocity")
    88. bv.Name = "VelocityHandler"
    89. bv.Parent = Lp.Character.HumanoidRootPart
    90. bv.MaxForce = Vector3.new(0,0,0)
    91. bv.Velocity = Vector3.new(0,0,0)
    92.  
    93. local bg = Instance.new("BodyGyro")
    94. bg.Name = "GyroHandler"
    95. bg.Parent = Lp.Character.HumanoidRootPart
    96. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
    97. bg.P = 1000
    98. bg.D = 50
    99.  
    100. local Signal1
    101. Signal1 = Lp.CharacterAdded:Connect(function(NewChar)
    102. local bv = Instance.new("BodyVelocity")
    103. bv.Name = "VelocityHandler"
    104. bv.Parent = NewChar:WaitForChild("Humanoid").RootPart
    105. bv.MaxForce = Vector3.new(0,0,0)
    106. bv.Velocity = Vector3.new(0,0,0)
    107.  
    108. local bg = Instance.new("BodyGyro")
    109. bg.Name = "GyroHandler"
    110. bg.Parent = NewChar:WaitForChild("Humanoid").RootPart
    111. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
    112. bg.P = 1000
    113. bg.D = 50
    114. end)
    115.  
    116. local camera = Workspace.CurrentCamera
    117. local speed = 50
    118.  
    119. local Signal2
    120. Signal2 = rs.RenderStepped:Connect(function()
    121. if Lp.Character and Lp.Character:FindFirstChildOfClass("Humanoid") and Lp.Character.Humanoid.RootPart and Lp.Character.HumanoidRootPart:FindFirstChild("VelocityHandler") and Lp.Character.HumanoidRootPart:FindFirstChild("GyroHandler") then
    122.  
    123. if buttonIsOn then
    124. FlyButton.Text = "الطيران: تشغيل"
    125. FlyButton.BackgroundColor3 = Color3.new(0,255,0)
    126. Lp.Character.HumanoidRootPart.VelocityHandler.MaxForce = Vector3.new(9e9,9e9,9e9)
    127. Lp.Character.HumanoidRootPart.GyroHandler.MaxTorque = Vector3.new(9e9,9e9,9e9)
    128. Lp.Character.Humanoid.PlatformStand = true
    129. elseif buttonIsOn == false then
    130. FlyButton.Text = "الطيران: ايقاف"
    131. FlyButton.BackgroundColor3 = Color3.new(255,0,0)
    132. Lp.Character.HumanoidRootPart.VelocityHandler.MaxForce = Vector3.new(0,0,0)
    133. Lp.Character.HumanoidRootPart.GyroHandler.MaxTorque = Vector3.new(0,0,0)
    134. Lp.Character.Humanoid.PlatformStand = false
    135. return
    136. end
    137.  
    138. Lp.Character.HumanoidRootPart.GyroHandler.CFrame = camera.CoordinateFrame
    139. local direction = controlModule:GetMoveVector()
    140. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Vector3.new()
    141. if direction.X > 0 then
    142. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity + camera.CFrame.RightVector*(direction.X*speed)
    143. end
    144. if direction.X < 0 then
    145. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity + camera.CFrame.RightVector*(direction.X*speed)
    146. end
    147. if direction.Z > 0 then
    148. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity - camera.CFrame.LookVector*(direction.Z*speed)
    149. end
    150. if direction.Z < 0 then
    151. Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity - camera.CFrame.LookVector*(direction.Z*speed)
    152. end
    153. end
    154. end)
    155.  
    156. FlyButton.TouchTap:Connect(function()
    157. buttonIsOn = not buttonIsOn
    158. end)
    159.  
    160. local Signal3
    161. Signal3 = SpeedBox:GetPropertyChangedSignal("Text"):Connect(function()
    162. if tonumber(SpeedBox.Text) then
    163. speed = tonumber(SpeedBox.Text)
    164. end
    165. end)
    166.  
    167. Lp.Chatted:Connect(function(msg)
    168. if msg:sub(1,5) == "!stop" then
    169. Signal1:Disconnect()
    170. Signal2:Disconnect()
    171. Signal3:Disconnect()
    172. game:GetService("ReplicatedStorage"):FindFirstChild("BZn2q91BzN"):Destroy()
    173. ScreenGui:Destroy()
    174. Lp.Character.Humanoid.Health = 0
    175. end
    176. end)
Add Comment
Please, Sign In to add comment