TheoDev_

Epix's FE GUI

Jan 3rd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.57 KB | None | 0 0
  1. -- https://pastebin.com/raw/bgYx7yQF
  2. hi = game:GetObjects('rbxassetid://928597043')[1]
  3. hi.Parent = game:GetService'CoreGui'
  4. hi.TextButton.sd.MouseButton1Down:Connect(function()
  5. for i =1,100 do
  6. spawn(function()
  7. while wait() do
  8. for i,v in pairs(game:GetService'Players':GetPlayers()) do
  9. if v.Character ~= nil and v.Character:FindFirstChild'Head' then
  10. for _,x in pairs(v.Character.Head:GetChildren()) do
  11. if x:IsA'Sound' then x.Playing = true end
  12. end
  13. end
  14. end
  15. end
  16. end)
  17. end
  18. end)
  19. --hot fly script by RGEENEUS cuz im too lazy to make one
  20. local speed = 50 -- This is the fly speed. Change it to whatever you like. The variable can be changed while running
  21. local c
  22. local h
  23. local bv
  24. local bav
  25. local cam
  26. local flying
  27. local p = game:GetService'Players'.LocalPlayer
  28. local buttons = {W = false, S = false, A = false, D = false, Moving = false}
  29. local startFly = function () -- Call this function to begin flying
  30. if not p.Character or not p.Character.Head or flying then return end
  31. c = p.Character
  32. h = c.Humanoid
  33. h.PlatformStand = true
  34. cam = workspace:WaitForChild('Camera')
  35. bv = Instance.new("BodyVelocity")
  36. bav = Instance.new("BodyAngularVelocity")
  37. bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  38. bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  39. bv.Parent = c.Head
  40. bav.Parent = c.Head
  41. flying = true
  42. h.Died:connect(function() flying = false end)
  43. end
  44. local endFly = function () -- Call this function to stop flying
  45. if not p.Character or not flying then return end
  46. h.PlatformStand = false
  47. bv:Destroy()
  48. bav:Destroy()
  49. flying = false
  50. end
  51. game:GetService("UserInputService").InputBegan:connect(function (input, GPE)
  52. if GPE then return end
  53. for i, e in pairs(buttons) do
  54. if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then
  55. buttons[i] = true
  56. buttons.Moving = true
  57. end
  58. end
  59. end)
  60. game:GetService("UserInputService").InputEnded:connect(function (input, GPE)
  61. if GPE then return end
  62. local a = false
  63. for i, e in pairs(buttons) do
  64. if i ~= "Moving" then
  65. if input.KeyCode == Enum.KeyCode[i] then
  66. buttons[i] = false
  67. end
  68. if buttons[i] then a = true end
  69. end
  70. end
  71. buttons.Moving = a
  72. end)
  73. local setVec = function (vec)
  74. return vec * (speed / vec.Magnitude)
  75. end
  76. game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame
  77. if flying and c and c.PrimaryPart then
  78. local p = c.PrimaryPart.Position
  79. local cf = cam.CFrame
  80. local ax, ay, az = cf:toEulerAnglesXYZ()
  81. c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az))
  82. if buttons.Moving then
  83. local t = Vector3.new()
  84. if buttons.W then t = t + (setVec(cf.lookVector)) end
  85. if buttons.S then t = t - (setVec(cf.lookVector)) end
  86. if buttons.A then t = t - (setVec(cf.rightVector)) end
  87. if buttons.D then t = t + (setVec(cf.rightVector)) end
  88. c:TranslateBy(t * step)
  89. end
  90. end
  91. end)
  92. hi.TextButton.fh.MouseButton1Down:Connect(function()
  93. local lol = game:GetService'Players'.LocalPlayer.Character
  94. pcall(function()
  95. for i,v in pairs(lol:GetChildren()) do
  96. if v.Name ~= 'Head' and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then
  97. v:Destroy()
  98. end
  99. end
  100. local ok = lol:FindFirstChild'Torso'
  101. if ok then ok = ok:FindFirstChild'roblox' if ok then ok:Destroy() end end
  102. Instance.new('Humanoid', lol)
  103. if lol.HumanoidRootPart:FindFirstChild'Rank' then lol.HumanoidRootPart:FindFirstChild'Rank':Destroy() end
  104. local nouxd = lol:FindFirstChild'Torso'
  105. wait'1'
  106. lol.Head.Position = lol.Head.Position + Vector3.new(1,1,1)
  107. if nouxd then nouxd.Transparency = 1 end
  108. wait'.3'
  109. startFly()
  110. end)
  111. end)
Add Comment
Please, Sign In to add comment