Advertisement
TheInfamousUser

FE Fling

Oct 12th, 2020
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. -- if any "hub owners" decide to use this in their gui, please put me in the credits somewhere kthx!
  2. local EliminatedSpeed = 150
  3. local MaxTimeAttempt = 10
  4. local SpinSpeed = 2500
  5. local NetworkCompensation = 5
  6.  
  7. local Running = true
  8. local Gui = Instance.new("ScreenGui",game:GetService("CoreGui"))
  9. local StopButton = Instance.new("TextButton")
  10. StopButton.Size = UDim2.fromOffset(50,50)
  11. StopButton.Text = "Stop"
  12. StopButton.Position = UDim2.fromScale(0.5,0.8)
  13. StopButton.AnchorPoint = Vector2.new(0.5,0.5)
  14. StopButton.BorderSizePixel = 5
  15. StopButton.BorderColor3 = Color3.new(1,1,1)
  16. StopButton.BackgroundColor3 = Color3.new(0,0,0)
  17. StopButton.TextColor3 = Color3.new(1,1,1)
  18. StopButton.Parent = Gui
  19. StopButton.MouseButton1Click:Connect(function()
  20. Running = false
  21. Gui:Destroy()
  22. end)
  23.  
  24. local function MakeChat(message,color)
  25. game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
  26. Text = message,
  27. Color = color
  28. })
  29. end
  30. MakeChat("Made by Zeezy/XYZ/Heioni",Color3.new(1,0,0))
  31. local TotalKills = 0
  32. local RunService = game:GetService("RunService")
  33. local Players = game:GetService("Players")
  34. local Player = Players.LocalPlayer
  35. local Camera = workspace.CurrentCamera
  36. workspace.Changed:Connect(function()
  37. Camera = workspace.CurrentCamera
  38. end)
  39. while Running do
  40. RunService.RenderStepped:Wait()
  41. local Character = Player.Character
  42. if Character then
  43. for i,v in ipairs(Character:GetDescendants()) do
  44. if v:IsA("BasePart") then
  45. v.CanCollide = false
  46. v.Velocity = Vector3.new(0,0,0)
  47. end
  48. end
  49. local Root = Character.PrimaryPart
  50. if Root then
  51. Camera.CameraType = Enum.CameraType.Scriptable
  52. local Target = Players:GetPlayers()[math.random(1,#Players:GetPlayers())]
  53. if Target ~= Player and Target.Character then
  54. local TargetRoot = Target.Character.PrimaryPart
  55. local EliminationStart = time() + MaxTimeAttempt
  56. if TargetRoot then
  57. while Running do
  58. if TargetRoot.Velocity.Magnitude > EliminatedSpeed then
  59. TotalKills = TotalKills + 1
  60. warn("Target killed! Finding new target")
  61. MakeChat("Target #" .. TotalKills.. " killed! Finding new target",Color3.new(0,1,0))
  62. break
  63. end
  64. if time() > EliminationStart then
  65. warn("Elapsed time went over max time per attempt, finding new target")
  66. MakeChat("Elapsed time went over max time per attempt, finding new target",Color3.new(1,1,0))
  67. break
  68. end
  69. local delta = RunService.RenderStepped:Wait()
  70. Camera.CFrame = CFrame.new(
  71. TargetRoot.Position + Vector3.new(10,10,10),
  72. TargetRoot.Position
  73. )
  74. Root.CFrame = TargetRoot.CFrame * CFrame.Angles(
  75. math.pi,
  76. math.random()*10,
  77. 0
  78. ) + Vector3.new(0,-1,0) + ((TargetRoot.Velocity*delta)*NetworkCompensation)
  79. Root.Velocity = Vector3.new(0,0,0)
  80. Root.RotVelocity = Vector3.new(0,SpinSpeed,0)
  81. end
  82. end
  83. end
  84. else
  85. Character:GetPropertyChangedSignal("PrimaryPart"):Wait()
  86. end
  87. else
  88. Player.CharacterAdded:Wait()
  89. end
  90. end
  91.  
  92. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  93. workspace.CurrentCamera.CameraSubject = Player.Character.Humanoid
  94. Player.Character.PrimaryPart.RotVelocity = Vector3.new()
  95. Player.Character.PrimaryPart.Velocity = Vector3.new() -- :3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement