Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local poil = Instance.new("TextButton")
  7. local mic = Instance.new("TextButton")
  8. local TextBox = Instance.new("TextBox")
  9. local TextBox_2 = Instance.new("TextBox")
  10. local TextButton = Instance.new("TextButton")
  11. --Properties:
  12. ScreenGui.Parent = game.Workspace
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  17. Frame.Position = UDim2.new(0.25507021, 0, 0.204978019, 0)
  18. Frame.Size = UDim2.new(0, 337, 0, 273)
  19.  
  20. poil.Name = "poil"
  21. poil.Parent = Frame
  22. poil.BackgroundColor3 = Color3.new(0.945098, 0.945098, 0.945098)
  23. poil.Position = UDim2.new(0.353115737, 0, 0.222667664, 0)
  24. poil.Size = UDim2.new(0, 200, 0, 50)
  25. poil.Font = Enum.Font.SourceSans
  26. poil.Text = "Fly"
  27. poil.TextColor3 = Color3.new(0, 0, 0)
  28. poil.TextSize = 14
  29. poil.MouseButton1Down:connect(function()
  30. repeat wait()
  31. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  32. local mouse = game.Players.LocalPlayer:GetMouse()
  33. repeat wait() until mouse
  34. local plr = game.Players.LocalPlayer
  35. local torso = plr.Character.Torso
  36. local flying = true
  37. local deb = true
  38. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  39. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  40. local maxspeed = 50
  41. local speed = 0
  42.  
  43. function Fly()
  44. local bg = Instance.new("BodyGyro", torso)
  45. bg.P = 9e4
  46. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  47. bg.cframe = torso.CFrame
  48. local bv = Instance.new("BodyVelocity", torso)
  49. bv.velocity = Vector3.new(0,0.1,0)
  50. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  51. repeat wait()
  52. plr.Character.Humanoid.PlatformStand = true
  53. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  54. speed = speed+.5+(speed/maxspeed)
  55. if speed > maxspeed then
  56. speed = maxspeed
  57. end
  58. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  59. speed = speed-1
  60. if speed < 0 then
  61. speed = 0
  62. end
  63. end
  64. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  65. 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
  66. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  67. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  68. 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
  69. else
  70. bv.velocity = Vector3.new(0,0.1,0)
  71. end
  72. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  73. until not flying
  74. ctrl = {f = 0, b = 0, l = 0, r = 0}
  75. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  76. speed = 0
  77. bg:Destroy()
  78. bv:Destroy()
  79. plr.Character.Humanoid.PlatformStand = false
  80. end
  81. mouse.KeyDown:connect(function(key)
  82. if key:lower() == "e" then
  83. if flying then flying = false
  84. else
  85. flying = true
  86. Fly()
  87. end
  88. elseif key:lower() == "w" then
  89. ctrl.f = 1
  90. elseif key:lower() == "s" then
  91. ctrl.b = -1
  92. elseif key:lower() == "a" then
  93. ctrl.l = -1
  94. elseif key:lower() == "d" then
  95. ctrl.r = 1
  96. end
  97. end)
  98. mouse.KeyUp:connect(function(key)
  99. if key:lower() == "w" then
  100. ctrl.f = 0
  101. elseif key:lower() == "s" then
  102. ctrl.b = 0
  103. elseif key:lower() == "a" then
  104. ctrl.l = 0
  105. elseif key:lower() == "d" then
  106. ctrl.r = 0
  107. end
  108. end)
  109. Fly()
  110. end)
  111. mic.Name = "mic"
  112. mic.Parent = Frame
  113. mic.BackgroundColor3 = Color3.new(1, 0.0666667, 0.0666667)
  114. mic.Position = UDim2.new(0.703264117, 0, 0.871794939, 0)
  115. mic.Size = UDim2.new(0, 100, 0, 35)
  116. mic.Font = Enum.Font.SourceSans
  117. mic.Text = "Made in china"
  118. mic.TextColor3 = Color3.new(0, 0, 0)
  119. mic.TextSize = 14
  120.  
  121. TextBox.Parent = Frame
  122. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  123. TextBox.Position = UDim2.new(0.0296735913, 0, 0.0402930379, 0)
  124. TextBox.Size = UDim2.new(0, 82, 0, 79)
  125. TextBox.Font = Enum.Font.SourceSans
  126. TextBox.Text = "PINGUINS"
  127. TextBox.TextColor3 = Color3.new(0, 0, 0)
  128. TextBox.TextSize = 14
  129.  
  130. TextBox_2.Parent = Frame
  131. TextBox_2.BackgroundColor3 = Color3.new(1, 1, 1)
  132. TextBox_2.Position = UDim2.new(0, 16, 0, 111)
  133. TextBox_2.Size = UDim2.new(0, 70, 0, 50)
  134. TextBox_2.Font = Enum.Font.SourceSans
  135. TextBox_2.Text = "ArE"
  136. TextBox_2.TextColor3 = Color3.new(0, 0, 0)
  137. TextBox_2.TextSize = 14
  138.  
  139. TextButton.Parent = Frame
  140. TextButton.BackgroundColor3 = Color3.new(1, 0, 0)
  141. TextButton.Position = UDim2.new(0, 0, 0, 188)
  142. TextButton.Size = UDim2.new(0, 200, 0, 50)
  143. TextButton.Font = Enum.Font.SourceSans
  144. TextButton.Text = "GOODSSSSSSSSS"
  145. TextButton.TextColor3 = Color3.new(0, 0, 0)
  146. TextButton.TextSize = 14
  147. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement