Advertisement
Khiet_Le

First GUI #1

Apr 22nd, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.77 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local TEST = Instance.new("ScreenGui")
  5. local OpenFrame = Instance.new("Frame")
  6. local Open = Instance.new("TextButton")
  7. local Main = Instance.new("Frame")
  8. local Frame = Instance.new("Frame")
  9. local Frame_2 = Instance.new("Frame")
  10. local TextLabel = Instance.new("TextLabel")
  11. local Close = Instance.new("TextButton")
  12. local Fly = Instance.new("TextButton")
  13. --Properties:
  14. TEST.Name = "TEST"
  15. TEST.Parent = game.CoreGui
  16.  
  17. OpenFrame.Name = "OpenFrame"
  18. OpenFrame.Parent = TEST
  19. OpenFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  20. OpenFrame.Position = UDim2.new(0.0451467298, 0, 0.229226351, 0)
  21. OpenFrame.Size = UDim2.new(0, 108, 0, 45)
  22.  
  23. Open.Name = "Open"
  24. Open.Parent = OpenFrame
  25. Open.BackgroundColor3 = Color3.new(0.427451, 0.427451, 0.427451)
  26. Open.Size = UDim2.new(0, 108, 0, 45)
  27. Open.Font = Enum.Font.SourceSans
  28. Open.TextColor3 = Color3.new(0, 0, 0)
  29. Open.TextSize = 14
  30. Open.MouseButton1Down:connect(function()
  31. Main.Visible = true
  32. OpenFrame.Visible = false
  33. end)
  34.  
  35. Main.Name = "Main"
  36. Main.Parent = TEST
  37. Main.Active = true
  38. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  39. Main.BackgroundTransparency = 0.69999998807907
  40. Main.BorderSizePixel = 0
  41. Main.Position = UDim2.new(0.204288945, 0, 0.419987142, 0)
  42. Main.Size = UDim2.new(0, 225, 0, 152)
  43. Main.Visible = false
  44. Main.Draggable = true
  45.  
  46. Frame.Parent = Main
  47. Frame.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  48. Frame.Position = UDim2.new(0, 0, 0.960526228, 0)
  49. Frame.Size = UDim2.new(0, 225, 0, 6)
  50.  
  51. Frame_2.Parent = Main
  52. Frame_2.BackgroundColor3 = Color3.new(0.92549, 0.980392, 0.72549)
  53. Frame_2.BorderColor3 = Color3.new(0.0117647, 0.0862745, 0.207843)
  54. Frame_2.Position = UDim2.new(0, 0, -1.00386771e-07, 0)
  55. Frame_2.Size = UDim2.new(0, 225, 0, 23)
  56.  
  57. TextLabel.Parent = Frame_2
  58. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  59. TextLabel.BackgroundTransparency = 1
  60. TextLabel.Position = UDim2.new(0, 43, 0, 3)
  61. TextLabel.Size = UDim2.new(0, 139, 0, 19)
  62. TextLabel.Font = Enum.Font.SourceSans
  63. TextLabel.Text = "GUI MADE BY @KhietLe"
  64. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  65. TextLabel.TextSize = 14
  66.  
  67. Close.Name = "Close"
  68. Close.Parent = Main
  69. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  70. Close.BackgroundTransparency = 1
  71. Close.Position = UDim2.new(0.828683257, 0, -0.00106549263, 0)
  72. Close.Size = UDim2.new(0, 38, 0, 22)
  73. Close.Font = Enum.Font.SourceSans
  74. Close.Text = "X"
  75. Close.TextColor3 = Color3.new(0, 0, 0)
  76. Close.TextSize = 19
  77. Close.MouseButton1Down:connect(function()
  78. OpenFrame.Visible = true
  79. Main.Visible = false
  80. end)
  81.  
  82. Fly.Name = "Fly"
  83. Fly.Parent = Main
  84. Fly.BackgroundColor3 = Color3.new(1, 1, 1)
  85. Fly.Position = UDim2.new(0.0377276093, 0, 0.190118164, 0)
  86. Fly.Size = UDim2.new(0, 56, 0, 20)
  87. Fly.Modal = true
  88. Fly.Font = Enum.Font.SourceSans
  89. Fly.Text = "Fly"
  90. Fly.TextColor3 = Color3.new(0, 0, 0)
  91. Fly.TextSize = 14
  92. Fly.MouseButton1Down:connect(function()
  93. --By lindsay on v3rmillion
  94. _G.FLYING = false
  95. local LP = game:service('Players').LocalPlayer
  96. local T = LP.Character.UpperTorso
  97. local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  98. local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  99. local SPEED = 5
  100. local MOUSE = LP:GetMouse()
  101.  
  102.  
  103. local function FLY()
  104. _G.FLYING = true
  105. local BG = Instance.new('BodyGyro', T)
  106. local BV = Instance.new('BodyVelocity', T)
  107. BG.P = 9e4
  108. BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  109. BG.cframe = T.CFrame
  110. BV.velocity = Vector3.new(0, 0.1, 0)
  111. BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  112.  
  113.  
  114. spawn(function()
  115. repeat wait()
  116. LP.Character.Humanoid.PlatformStand = true
  117. if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  118. SPEED = 50
  119. elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  120. SPEED = 0
  121. end
  122. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  123. BV.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  124. lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  125. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  126. BV.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  127. else
  128. BV.velocity = Vector3.new(0, 0.1, 0)
  129. end
  130. BG.cframe = game.Workspace.CurrentCamera.CoordinateFrame
  131. until not _G.FLYING
  132. CONTROL = {F = 0, B = 0, L = 0, R = 0}
  133. lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  134. SPEED = 0
  135. BG:destroy()
  136. BV:destroy()
  137. LP.Character.Humanoid.PlatformStand = false
  138. end)
  139. end
  140.  
  141. MOUSE.KeyDown:connect(function(KEY)
  142. if KEY:lower() == 'w' then
  143. CONTROL.F = 1
  144. elseif KEY:lower() == 's' then
  145. CONTROL.B = -1
  146. elseif KEY:lower() == 'a' then
  147. CONTROL.L = -1
  148. elseif KEY:lower() == 'd' then
  149. CONTROL.R = 1
  150. end
  151. end)
  152.  
  153. MOUSE.KeyUp:connect(function(KEY)
  154. if KEY:lower() == 'w' then
  155. CONTROL.F = 0
  156. elseif KEY:lower() == 's' then
  157. CONTROL.B = 0
  158. elseif KEY:lower() == 'a' then
  159. CONTROL.L = 0
  160. elseif KEY:lower() == 'd' then
  161. CONTROL.R = 0
  162. end
  163. end)
  164.  
  165.  
  166.  
  167.  
  168. FLY()
  169. end)
  170.  
  171. -- Scripts:
  172. function SCRIPT_OKCI67_FAKESCRIPT() -- Open.LocalScript
  173. local script = Instance.new('LocalScript')
  174. script.Parent = Open
  175. function zigzag(X) return math.atan(math.cos(X*math.pi))/math.pi end
  176.  
  177. counter = 0
  178.  
  179. while wait(0.1)do
  180. script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1)
  181.  
  182. counter = counter + 0.01
  183. end
  184.  
  185.  
  186. end
  187. coroutine.resume(coroutine.create(SCRIPT_OKCI67_FAKESCRIPT))
  188. function SCRIPT_IMQN66_FAKESCRIPT() -- Main.LocalScript
  189. local script = Instance.new('LocalScript')
  190. script.Parent = Main
  191. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  192.  
  193. counter = 0
  194.  
  195. while wait(0.1)do
  196. script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1)
  197.  
  198. counter = counter + 0.01
  199. end
  200.  
  201. end
  202. coroutine.resume(coroutine.create(SCRIPT_IMQN66_FAKESCRIPT))
  203. function SCRIPT_YRQC87_FAKESCRIPT() -- Frame_2.LocalScript
  204. local script = Instance.new('LocalScript')
  205. script.Parent = Frame_2
  206. function zigzag(X) return math.atan(math.cos(X*math.pi))/math.pi end
  207.  
  208. counter = 0
  209.  
  210. while wait(0.1)do
  211. script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1)
  212.  
  213. counter = counter + 0.01
  214. end
  215.  
  216.  
  217. end
  218. coroutine.resume(coroutine.create(SCRIPT_YRQC87_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement