Upscalefanatic3

[FE] OP Fling Script (Even More Insane Fling Distance!)

Apr 30th, 2018
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. repeat wait() until Player.Character
  4.  
  5. local StoredCF = Player.Character:WaitForChild('Head').CFrame
  6. local IsTPing = false
  7.  
  8. local function GetPlayer(String)
  9. String = String or 'N/A'
  10.  
  11. for i,v in pairs(game.Players:GetPlayers()) do
  12. if v.Name:lower():match('^'..String:lower()) then
  13. return v
  14. end
  15. end
  16.  
  17. return false
  18. end
  19.  
  20. Player.CharacterAdded:connect(function(Char)
  21. if IsTPing then
  22. IsTPing = false
  23. Char:WaitForChild('Head').CFrame = StoredCF
  24. end
  25. end)
  26.  
  27. Player.Chatted:connect(function(Message)
  28. local Target = GetPlayer(Message:match(':fling%s*(.+)'))
  29. local HasDied = false
  30. local PPart = Player.Character.PrimaryPart
  31.  
  32. StoredCF = PPart.CFrame
  33.  
  34. if not Target then
  35. return
  36. end
  37.  
  38. repeat wait() until Target.Character
  39.  
  40. IsTPing = true
  41.  
  42. Target.Character:WaitForChild('Humanoid').Died:connect(function()
  43. HasDied = true
  44. end)
  45.  
  46. local bodyp = Instance.new("BodyPosition",PPart)
  47. bodyp.D = 0
  48. bodyp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  49. bodyp.P = 15000
  50.  
  51. repeat
  52. game:GetService("RunService").RenderStepped:Wait()
  53. pcall(function()
  54. bodyp.Position = Target.Character.PrimaryPart.Position
  55. end)
  56. until
  57.  
  58. HasDied == true
  59.  
  60. pcall(function()
  61. bodyp:Destroy()
  62. Player.Character:BreakJoints()
  63. end)
  64.  
  65. print('Killed')
  66.  
  67. end)
Add Comment
Please, Sign In to add comment