Advertisement
Sufferrrrrr

Fly Script Roblox Credits To The Owner

Mar 4th, 2023
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.02 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local UIGradient = Instance.new("UIGradient")
  4. local UICorner = Instance.new("UICorner")
  5. local Title = Instance.new("TextLabel")
  6. local Frame_2 = Instance.new("Frame")
  7. local Frame_3 = Instance.new("Frame")
  8. local UICorner_2 = Instance.new("UICorner")
  9. local TextButton = Instance.new("TextButton")
  10. local UICorner_3 = Instance.new("UICorner")
  11. local AK47 = Instance.new("TextButton")
  12. local TextLabel = Instance.new("TextLabel")
  13. local FlyScript = Instance.new("ScreenGui")
  14. local Frame_4 = Instance.new("Frame")
  15. local UICorner_4 = Instance.new("UICorner")
  16. local TextButton_2 = Instance.new("TextButton")
  17. local UICorner_5 = Instance.new("UICorner")
  18. local IsOn = Instance.new("TextButton")
  19. local UICorner_6 = Instance.new("UICorner")
  20. local TextButton2 = Instance.new("TextBox")
  21. local UICorner_7 = Instance.new("UICorner")
  22.  
  23. --Properties:
  24.  
  25. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  26. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  27.  
  28. Frame.Parent = ScreenGui
  29. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. Frame.Position = UDim2.new(0.219758362, 0, 0.474105179, 0)
  31. Frame.Size = UDim2.new(0, 281, 0, 17)
  32.  
  33. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)), ColorSequenceKeypoint.new(0.12, Color3.fromRGB(255, 0, 243)), ColorSequenceKeypoint.new(0.26, Color3.fromRGB(8, 0, 255)), ColorSequenceKeypoint.new(0.40, Color3.fromRGB(0, 243, 255)), ColorSequenceKeypoint.new(0.55, Color3.fromRGB(47, 255, 11)), ColorSequenceKeypoint.new(0.69, Color3.fromRGB(243, 255, 0)), ColorSequenceKeypoint.new(0.85, Color3.fromRGB(255, 162, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))}
  34. UIGradient.Parent = Frame
  35.  
  36. UICorner.CornerRadius = UDim.new(0, 10)
  37. UICorner.Parent = Frame
  38.  
  39. Title.Name = "Title"
  40. Title.Parent = Frame
  41. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  42. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. Title.BackgroundTransparency = 1.000
  44. Title.BorderSizePixel = 0
  45. Title.Position = UDim2.new(0.539671183, 0, 0.486933112, 0)
  46. Title.Size = UDim2.new(0.854975045, 0, 1.57753849, 0)
  47. Title.Font = Enum.Font.Cartoon
  48. Title.Text = "Ca$h Rainbow"
  49. Title.TextColor3 = Color3.fromRGB(0, 0, 0)
  50. Title.TextScaled = true
  51. Title.TextSize = 18.000
  52. Title.TextWrapped = true
  53.  
  54. Frame_2.Parent = Frame
  55. Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. Frame_2.Position = UDim2.new(-0.000882186054, 0, 0.971390665, 0)
  57. Frame_2.Size = UDim2.new(0, 281, 0, 173)
  58. Frame_2.Style = Enum.FrameStyle.DropShadow
  59.  
  60. Frame_3.Parent = Frame_2
  61. Frame_3.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  62. Frame_3.Position = UDim2.new(0.041130092, 0, 0.926665187, 0)
  63. Frame_3.Selectable = true
  64. Frame_3.Size = UDim2.new(0.0173532553, 0, 0.0231953021, 0)
  65.  
  66. UICorner_2.CornerRadius = UDim.new(0.0199999996, 0)
  67. UICorner_2.Parent = Frame_3
  68.  
  69. TextButton.Parent = Frame_3
  70. TextButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  71. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  72. TextButton.BorderSizePixel = 0
  73. TextButton.Position = UDim2.new(-1.7347343, 0, -40.7267761, 0)
  74. TextButton.Size = UDim2.new(11.1114655, 0, 11.7754879, 0)
  75. TextButton.Style = Enum.ButtonStyle.RobloxButton
  76. TextButton.Font = Enum.Font.SourceSansBold
  77. TextButton.Text = "God"
  78. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  79. TextButton.TextScaled = true
  80. TextButton.TextSize = 28.000
  81. TextButton.TextWrapped = true
  82. TextButton.TextXAlignment = Enum.TextXAlignment.Left
  83.  
  84. UICorner_3.CornerRadius = UDim.new(0.0199999996, 0)
  85. UICorner_3.Parent = TextButton
  86.  
  87. AK47.Name = "AK-47"
  88. AK47.Parent = Frame
  89. AK47.BackgroundColor3 = Color3.fromRGB(0, 51, 211)
  90. AK47.BorderColor3 = Color3.fromRGB(8, 8, 8)
  91. AK47.Position = UDim2.new(0, 69, 0, 24)
  92. AK47.Size = UDim2.new(0.846162319, -100, -2.3447175, 80)
  93. AK47.Style = Enum.ButtonStyle.RobloxButton
  94. AK47.Text = "F to Fly"
  95. AK47.TextColor3 = Color3.fromRGB(255, 255, 255)
  96. AK47.TextSize = 22.000
  97. AK47.TextWrapped = true
  98.  
  99. TextLabel.Parent = ScreenGui
  100. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. TextLabel.Position = UDim2.new(0.896401286, 0, 0.86658293, 0)
  102. TextLabel.Size = UDim2.new(0, 8, 0, 0)
  103. TextLabel.Font = Enum.Font.SourceSans
  104. TextLabel.Text = "this for Mobile "
  105. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  106. TextLabel.TextSize = 32.000
  107.  
  108. FlyScript.Name = "FlyScript"
  109. FlyScript.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  110.  
  111. Frame_4.Parent = FlyScript
  112. Frame_4.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  113. Frame_4.Position = UDim2.new(1, 0, 0.480690241, 0)
  114. Frame_4.Selectable = true
  115. Frame_4.Size = UDim2.new(0.296442688, 0, 0.315457404, 0)
  116.  
  117. UICorner_4.CornerRadius = UDim.new(0.0199999996, 0)
  118. UICorner_4.Parent = Frame_4
  119.  
  120. TextButton_2.Parent = Frame_4
  121. TextButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  122. TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  123. TextButton_2.BorderSizePixel = 0
  124. TextButton_2.Position = UDim2.new(-0.776396632, 0, 1.388762, 0)
  125. TextButton_2.Size = UDim2.new(0.393333346, 0, 0.25, 0)
  126. TextButton_2.Font = Enum.Font.SourceSansBold
  127. TextButton_2.Text = "Fly: "
  128. TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  129. TextButton_2.TextScaled = true
  130. TextButton_2.TextSize = 14.000
  131. TextButton_2.TextWrapped = true
  132. TextButton_2.TextXAlignment = Enum.TextXAlignment.Left
  133.  
  134. UICorner_5.CornerRadius = UDim.new(0.0199999996, 0)
  135. UICorner_5.Parent = TextButton_2
  136.  
  137. IsOn.Name = "IsOn"
  138. IsOn.Parent = Frame_4
  139. IsOn.BackgroundColor3 = Color3.fromRGB(120, 120, 120)
  140. IsOn.BackgroundTransparency = 1.000
  141. IsOn.BorderSizePixel = 0
  142. IsOn.Position = UDim2.new(-0.563063383, 0, 1.388762, 0)
  143. IsOn.Size = UDim2.new(0.180000007, 0, 0.25, 0)
  144. IsOn.Font = Enum.Font.SourceSansItalic
  145. IsOn.Text = "Off"
  146. IsOn.TextColor3 = Color3.fromRGB(255, 0, 0)
  147. IsOn.TextScaled = true
  148. IsOn.TextSize = 14.000
  149. IsOn.TextWrapped = true
  150.  
  151. UICorner_6.CornerRadius = UDim.new(0.0199999996, 0)
  152. UICorner_6.Parent = IsOn
  153.  
  154. TextButton2.Name = "TextButton2"
  155. TextButton2.Parent = Frame_4
  156. TextButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  157. TextButton2.Position = UDim2.new(-0.380482465, 0, 1.39275873, 0)
  158. TextButton2.Size = UDim2.new(0.379999995, 0, 0.25, 0)
  159. TextButton2.Font = Enum.Font.SourceSansBold
  160. TextButton2.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  161. TextButton2.PlaceholderText = "Speed"
  162. TextButton2.Text = ""
  163. TextButton2.TextScaled = true
  164. TextButton2.TextWrapped = true
  165.  
  166. UICorner_7.CornerRadius = UDim.new(0.0199999996, 0)
  167. UICorner_7.Parent = TextButton2
  168.  
  169. -- Scripts:
  170.  
  171. local function JLJNO_fake_script() -- Title.RainbowTextColor
  172. local script = Instance.new('LocalScript', Title)
  173.  
  174. local t = 3;
  175.  
  176. while wait() do
  177. local hue = tick() % t / t
  178. local color = Color3.fromHSV(hue,1,1)
  179. script.Parent.TextColor3 = color
  180. end
  181. end
  182. coroutine.wrap(JLJNO_fake_script)()
  183. local function JIAS_fake_script() -- Frame.Dragify
  184. local script = Instance.new('LocalScript', Frame)
  185.  
  186. local UIS = game:GetService("UserInputService")
  187. function dragify(Frame)
  188. dragToggle = nil
  189. dragSpeed = 0.15
  190. dragInput = nil
  191. dragStart = nil
  192. dragPos = nil
  193. function updateInput(input)
  194. Delta = input.Position - dragStart
  195. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  196. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.15), {Position = Position}):Play()
  197. end
  198. Frame.InputBegan:Connect(function(input)
  199. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  200. dragToggle = true
  201. dragStart = input.Position
  202. startPos = Frame.Position
  203. input.Changed:Connect(function()
  204. if input.UserInputState == Enum.UserInputState.End then
  205. dragToggle = false
  206. end
  207. end)
  208. end
  209. end)
  210. Frame.InputChanged:Connect(function(input)
  211. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  212. dragInput = input
  213. end
  214. end)
  215. game:GetService("UserInputService").InputChanged:Connect(function(input)
  216. if input == dragInput and dragToggle then
  217. updateInput(input)
  218. end
  219. end)
  220. end
  221. dragify(script.Parent)
  222.  
  223. end
  224. coroutine.wrap(JIAS_fake_script)()
  225. local function VQZY_fake_script() -- Frame_2.FlyManager
  226. local script = Instance.new('LocalScript', Frame_2)
  227.  
  228.  
  229.  
  230.  
  231. local Key = "e" -- Lowercase Letter
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243. local Player = game.Players.LocalPlayer
  244. repeat wait() until Player.Character and Player.Character:FindFirstChild('Humanoid')
  245. local Mouse = Player:GetMouse()
  246. local IsFlying = false
  247. local flyv
  248. local flyg
  249. local IsRunning = false
  250. local f = 0
  251. local Speed = 50
  252. local LastSpeed = Speed
  253. local maxspeed = 100
  254. local wdown = false
  255. local sdown = false
  256. Mouse.KeyDown:Connect(function(key)
  257. if key:lower() == Key then
  258. if IsFlying then
  259. IsFlying = false
  260. flyv:Destroy()
  261. flyg:Destroy()
  262. script.Parent.Frame.IsOn.Text = "Off"
  263. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(255,0,0)
  264. Player.Character:WaitForChild('Humanoid').PlatformStand = false
  265. else
  266. IsFlying = true
  267. flyv = Instance.new("BodyVelocity")
  268.  
  269. flyv.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  270. flyv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  271.  
  272. flyg = Instance.new("BodyGyro")
  273. flyg.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  274. flyg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  275. flyg.P = 1000
  276. flyg.D = 50
  277. script.Parent.Frame.IsOn.Text = "On"
  278. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(0,255,0)
  279. Player.Character:WaitForChild('Humanoid').PlatformStand = true
  280. end
  281. end
  282. end)
  283. script.Parent.Frame.TextButton.MouseButton1Click:Connect(function()
  284.  
  285. if IsFlying then
  286. IsFlying = false
  287. flyv:Destroy()
  288. flyg:Destroy()
  289. script.Parent.Frame.IsOn.Text = "Off"
  290. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(255,0,0)
  291. Player.Character:WaitForChild('Humanoid').PlatformStand = false
  292. else
  293. IsFlying = true
  294. flyv = Instance.new("BodyVelocity")
  295.  
  296. flyv.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  297. flyv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  298.  
  299. flyg = Instance.new("BodyGyro")
  300. flyg.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  301. flyg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  302. flyg.P = 1000
  303. flyg.D = 50
  304. script.Parent.Frame.IsOn.Text = "On"
  305. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(0,255,0)
  306. Player.Character:WaitForChild('Humanoid').PlatformStand = true
  307. end
  308. end)
  309. script.Parent.Frame.TextButton2.FocusLost:Connect(function(Entered)
  310. if Entered then
  311. local BeginSpeed = tonumber(script.Parent.Frame.TextButton2.Text)
  312. if BeginSpeed ~= nil then
  313. Speed = BeginSpeed
  314. print(BeginSpeed)
  315. end
  316. end
  317. end)
  318.  
  319.  
  320. spawn(function()
  321. while true do
  322. wait()
  323. if IsFlying then
  324.  
  325. flyg.CFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((f+0)*50*Speed/maxspeed),0,0)
  326. flyv.Velocity = workspace.CurrentCamera.CoordinateFrame.LookVector * Speed
  327. wait(0.1)
  328.  
  329. if Speed > maxspeed then
  330. Speed = maxspeed
  331. f = 1
  332. else
  333. f = 0
  334. end
  335. if Speed < 0 then
  336. Speed = 0
  337. f = 0
  338.  
  339. end
  340.  
  341. end
  342. if IsRunning then
  343. Speed = LastSpeed
  344. else
  345. if not Speed == 0 then
  346. LastSpeed = Speed
  347. end
  348. Speed = 0
  349. end
  350. end
  351.  
  352.  
  353. end)
  354.  
  355. Player.Character.Humanoid.Changed:Connect(function()
  356. if Player.Character.Humanoid.Health == 0 then
  357. if IsFlying then
  358. IsFlying = false
  359. flyg:Destroy()
  360. flyv:Destroy()
  361. end
  362. end
  363. end)
  364. Player.Character.Humanoid.Changed:Connect(function(Prop)
  365.  
  366. if Player.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
  367. IsRunning = false
  368. else
  369. IsRunning = true
  370. end
  371. end)
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379. end
  380. coroutine.wrap(VQZY_fake_script)()
  381. local function OYCMGP_fake_script() -- AK47.Fly
  382. local script = Instance.new('LocalScript', AK47)
  383.  
  384. function OnClicked()
  385. -- AK-47
  386. end
  387.  
  388. script.Parent.MouseButton1Down:connect(OnClicked)
  389. script.Parent = game.StarterPack
  390.  
  391. repeat wait() -- Real Credit TheDominusGramer_YT3
  392. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  393. local mouse = game.Players.LocalPlayer:GetMouse()
  394. repeat wait() until mouse
  395. local plr = game.Players.LocalPlayer
  396. local torso = plr.Character.Head
  397. local flying = false
  398. local deb = true
  399. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  400. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  401. local maxspeed = 400
  402. local speed = 5000
  403.  
  404. function Fly()
  405. local bg = Instance.new("BodyGyro", torso)
  406. bg.P = 9e4
  407. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  408. bg.cframe = torso.CFrame
  409. local bv = Instance.new("BodyVelocity", torso)
  410. bv.velocity = Vector3.new(0,0.1,0)
  411. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  412. repeat wait()
  413. plr.Character.Humanoid.PlatformStand = true
  414. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  415. speed = speed+.5+(speed/maxspeed)
  416. if speed > maxspeed then
  417. speed = maxspeed
  418. end
  419. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  420. speed = speed-1
  421. if speed < 0 then
  422. speed = 0
  423. end
  424. end
  425. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  426. 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
  427. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  428. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  429. 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
  430. else
  431. bv.velocity = Vector3.new(0,0.1,0)
  432. end
  433. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  434. until not flying
  435. ctrl = {f = 0, b = 0, l = 0, r = 0}
  436. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  437. speed = 0
  438. bg:Destroy()
  439. bv:Destroy()
  440. plr.Character.Humanoid.PlatformStand = false
  441. end
  442. mouse.KeyDown:connect(function(key)
  443. if key:lower() == "f" then
  444. if flying then flying = false
  445. else
  446. flying = true
  447. Fly()
  448. end
  449. elseif key:lower() == "w" then
  450. ctrl.f = 1
  451. elseif key:lower() == "s" then
  452. ctrl.b = -1
  453. elseif key:lower() == "a" then
  454. ctrl.l = -1
  455. elseif key:lower() == "d" then
  456. ctrl.r = 1
  457. end
  458. end)
  459. mouse.KeyUp:connect(function(key)
  460. if key:lower() == "w" then
  461. ctrl.f = 0
  462. elseif key:lower() == "s" then
  463. ctrl.b = 0
  464. elseif key:lower() == "a" then
  465. ctrl.l = 0
  466. elseif key:lower() == "d" then
  467. ctrl.r = 0
  468. end
  469. end)
  470. Fly()
  471. end
  472. coroutine.wrap(OYCMGP_fake_script)()
  473. local function TOSK_fake_script() -- FlyScript.FlyManager
  474. local script = Instance.new('LocalScript', FlyScript)
  475.  
  476.  
  477.  
  478.  
  479. local Key = "e" -- Lowercase Letter
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491. local Player = game.Players.LocalPlayer
  492. repeat wait() until Player.Character and Player.Character:FindFirstChild('Humanoid')
  493. local Mouse = Player:GetMouse()
  494. local IsFlying = false
  495. local flyv
  496. local flyg
  497. local IsRunning = false
  498. local f = 0
  499. local Speed = 50
  500. local LastSpeed = Speed
  501. local maxspeed = 100
  502. local wdown = false
  503. local sdown = false
  504. Mouse.KeyDown:Connect(function(key)
  505. if key:lower() == Key then
  506. if IsFlying then
  507. IsFlying = false
  508. flyv:Destroy()
  509. flyg:Destroy()
  510. script.Parent.Frame.IsOn.Text = "Off"
  511. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(255,0,0)
  512. Player.Character:WaitForChild('Humanoid').PlatformStand = false
  513. else
  514. IsFlying = true
  515. flyv = Instance.new("BodyVelocity")
  516.  
  517. flyv.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  518. flyv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  519.  
  520. flyg = Instance.new("BodyGyro")
  521. flyg.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  522. flyg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  523. flyg.P = 1000
  524. flyg.D = 50
  525. script.Parent.Frame.IsOn.Text = "On"
  526. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(0,255,0)
  527. Player.Character:WaitForChild('Humanoid').PlatformStand = true
  528. end
  529. end
  530. end)
  531. script.Parent.Frame.TextButton.MouseButton1Click:Connect(function()
  532.  
  533. if IsFlying then
  534. IsFlying = false
  535. flyv:Destroy()
  536. flyg:Destroy()
  537. script.Parent.Frame.IsOn.Text = "Off"
  538. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(255,0,0)
  539. Player.Character:WaitForChild('Humanoid').PlatformStand = false
  540. else
  541. IsFlying = true
  542. flyv = Instance.new("BodyVelocity")
  543.  
  544. flyv.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  545. flyv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  546.  
  547. flyg = Instance.new("BodyGyro")
  548. flyg.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  549. flyg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  550. flyg.P = 1000
  551. flyg.D = 50
  552. script.Parent.Frame.IsOn.Text = "On"
  553. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(0,255,0)
  554. Player.Character:WaitForChild('Humanoid').PlatformStand = true
  555. end
  556. end)
  557. script.Parent.Frame.TextButton2.FocusLost:Connect(function(Entered)
  558. if Entered then
  559. local BeginSpeed = tonumber(script.Parent.Frame.TextButton2.Text)
  560. if BeginSpeed ~= nil then
  561. Speed = BeginSpeed
  562. print(BeginSpeed)
  563. end
  564. end
  565. end)
  566.  
  567.  
  568. spawn(function()
  569. while true do
  570. wait()
  571. if IsFlying then
  572.  
  573. flyg.CFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((f+0)*50*Speed/maxspeed),0,0)
  574. flyv.Velocity = workspace.CurrentCamera.CoordinateFrame.LookVector * Speed
  575. wait(0.1)
  576.  
  577. if Speed > maxspeed then
  578. Speed = maxspeed
  579. f = 1
  580. else
  581. f = 0
  582. end
  583. if Speed < 0 then
  584. Speed = 0
  585. f = 0
  586.  
  587. end
  588.  
  589. end
  590. if IsRunning then
  591. Speed = LastSpeed
  592. else
  593. if not Speed == 0 then
  594. LastSpeed = Speed
  595. end
  596. Speed = 0
  597. end
  598. end
  599.  
  600.  
  601. end)
  602.  
  603. Player.Character.Humanoid.Changed:Connect(function()
  604. if Player.Character.Humanoid.Health == 0 then
  605. if IsFlying then
  606. IsFlying = false
  607. flyg:Destroy()
  608. flyv:Destroy()
  609. end
  610. end
  611. end)
  612. Player.Character.Humanoid.Changed:Connect(function(Prop)
  613.  
  614. if Player.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
  615. IsRunning = false
  616. else
  617. IsRunning = true
  618. end
  619. end)
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627. end
  628. coroutine.wrap(TOSK_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement