Advertisement
H3VL

x7's gui put your name where is says BOYWITH_SWAG because th

Oct 22nd, 2017
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextLabel = Instance.new("TextLabel")
  6. local Fly = Instance.new("TextButton")
  7. local Block = Instance.new("TextButton")
  8. local MML = Instance.new("TextButton")
  9.  
  10. -- Properties
  11.  
  12. ScreenGui.Parent = game.Players.BOYWITH_SWAG.PlayerGui
  13.  
  14. Frame.Parent = ScreenGui
  15. Frame.Active = true
  16. Frame.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
  17. Frame.Draggable = true
  18. Frame.Position = UDim2.new(0.333333343, 0, 0.3577075, 0)
  19. Frame.Size = UDim2.new(0, 254, 0, 127)
  20.  
  21. TextLabel.Parent = Frame
  22. TextLabel.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  23. TextLabel.Size = UDim2.new(0, 254, 0, 50)
  24. TextLabel.Font = Enum.Font.Code
  25. TextLabel.FontSize = Enum.FontSize.Size14
  26. TextLabel.Text = "X7's Gui"
  27. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  28. TextLabel.TextScaled = true
  29. TextLabel.TextSize = 14
  30. TextLabel.TextWrapped = true
  31.  
  32. Fly.Name = "Fly"
  33. Fly.Parent = Frame
  34. Fly.BackgroundColor3 = Color3.new(0.368627, 0.368627, 0.368627)
  35. Fly.Position = UDim2.new(0, 0, 0.393700778, 0)
  36. Fly.Size = UDim2.new(0, 70, 0, 63)
  37. Fly.Font = Enum.Font.Code
  38. Fly.FontSize = Enum.FontSize.Size14
  39. Fly.Text = "Fly"
  40. Fly.TextColor3 = Color3.new(1, 1, 1)
  41. Fly.TextScaled = true
  42. Fly.TextSize = 14
  43. Fly.TextWrapped = true
  44. Fly.MouseButton1Down:connect(function()
  45. repeat wait()
  46. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  47. local mouse = game.Players.LocalPlayer:GetMouse()
  48. repeat wait() until mouse
  49. local plr = game.Players.LocalPlayer
  50. local torso = plr.Character.Torso
  51. local flying = true
  52. local deb = true
  53. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  54. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  55. local maxspeed = 50
  56. local speed = 0
  57.  
  58. function Fly()
  59. local bg = Instance.new("BodyGyro", torso)
  60. bg.P = 9e4
  61. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  62. bg.cframe = torso.CFrame
  63. local bv = Instance.new("BodyVelocity", torso)
  64. bv.velocity = Vector3.new(0,0.1,0)
  65. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  66. repeat wait()
  67. plr.Character.Humanoid.PlatformStand = true
  68. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  69. speed = speed+.5+(speed/maxspeed)
  70. if speed > maxspeed then
  71. speed = maxspeed
  72. end
  73. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  74. speed = speed-1
  75. if speed < 0 then
  76. speed = 0
  77. end
  78. end
  79. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  80. 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
  81. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  82. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  83. 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
  84. else
  85. bv.velocity = Vector3.new(0,0.1,0)
  86. end
  87. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  88. until not flying
  89. ctrl = {f = 0, b = 0, l = 0, r = 0}
  90. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  91. speed = 0
  92. bg:Destroy()
  93. bv:Destroy()
  94. plr.Character.Humanoid.PlatformStand = false
  95. end
  96. mouse.KeyDown:connect(function(key)
  97. if key:lower() == "e" then
  98. if flying then flying = false
  99. else
  100. flying = true
  101. Fly()
  102. end
  103. elseif key:lower() == "w" then
  104. ctrl.f = 1
  105. elseif key:lower() == "s" then
  106. ctrl.b = -1
  107. elseif key:lower() == "a" then
  108. ctrl.l = -1
  109. elseif key:lower() == "d" then
  110. ctrl.r = 1
  111. end
  112. end)
  113. mouse.KeyUp:connect(function(key)
  114. if key:lower() == "w" then
  115. ctrl.f = 0
  116. elseif key:lower() == "s" then
  117. ctrl.b = 0
  118. elseif key:lower() == "a" then
  119. ctrl.l = 0
  120. elseif key:lower() == "d" then
  121. ctrl.r = 0
  122. end
  123. end)
  124. Fly()
  125. end)
  126.  
  127. Block.Name = "Block"
  128. Block.Parent = Frame
  129. Block.BackgroundColor3 = Color3.new(0.368627, 0.368627, 0.368627)
  130. Block.Position = UDim2.new(0.362204731, 0, 0.393700778, 0)
  131. Block.Size = UDim2.new(0, 70, 0, 63)
  132. Block.Font = Enum.Font.Code
  133. Block.FontSize = Enum.FontSize.Size14
  134. Block.Text = "BlockSpam"
  135. Block.TextColor3 = Color3.new(1, 1, 1)
  136. Block.TextScaled = true
  137. Block.TextSize = 14
  138. Block.TextWrapped = true
  139. Block.MouseButton1Down:connect(function()
  140. while true do wait() Instance.new("Part",Workspace) end
  141. end)
  142.  
  143. MML.Name = "MML"
  144. MML.Parent = Frame
  145. MML.BackgroundColor3 = Color3.new(0.368627, 0.368627, 0.368627)
  146. MML.Position = UDim2.new(0.724409461, 0, 0.393700778, 0)
  147. MML.Size = UDim2.new(0, 70, 0, 63)
  148. MML.Font = Enum.Font.Code
  149. MML.FontSize = Enum.FontSize.Size14
  150. MML.Text = "MML Admin Beta"
  151. MML.TextColor3 = Color3.new(1, 1, 1)
  152. MML.TextScaled = true
  153. MML.TextSize = 14
  154. MML.TextWrapped = true
  155. MML.MouseButton1Down:connect(function()
  156. require(520532182).giveAdmin"BOYWITH_SWAG"
  157. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement