artbarte

fe hax gui (sorta) (pretty shitty tbh)

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