Advertisement
Baldeagle22

fling test 24

Oct 19th, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. --fe fling script, modified by CDrom202 for R6
  2.  
  3. power = 10000 -- change this to make it more or less powerful
  4.  
  5. game:GetService('RunService').Stepped:connect(function()
  6. game.Players.LocalPlayer.Character.Head.CanCollide = true
  7. game.Players.LocalPlayer.Character.Torso.CanCollide = true
  8. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = true
  9. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = true
  10. end)
  11.  
  12. wait(.1)
  13. local bambam = Instance.new("BodyThrust")
  14. bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  15. bambam.Force = Vector3.new(power,10,power)
  16. bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  17.  
  18. wait(.1)
  19. game.Workspace.baldeagle22.Humanoid.WalkSpeed = 500
  20.  
  21. game.Players.PlayerAdded:connect(function(p)
  22. p.CharacterAdded:connect(function(c)
  23. c.Humanoid.JumpPower = 200 -- [0]
  24. end)
  25. end)
  26.  
  27. --[[
  28. NOTES:
  29. - Change "[V]" to set the height of your character's jump. The default is 50.
  30. - Made by: Tagap1234
  31. --]]
  32.  
  33. function waitForChild(parent, childName)
  34. local child = parent:findFirstChild(childName)
  35. if child then return child end
  36. while true do
  37. child = parent.ChildAdded:wait()
  38. if child.Name==childName then return child end
  39. end
  40. end
  41.  
  42. -- declarations
  43.  
  44. local Figure = script.Parent
  45. local Head = waitForChild(Figure, "Head")
  46. local Humanoid = waitForChild(Figure, "Humanoid")
  47.  
  48. -- regeneration
  49. while true do
  50. local s = wait(1)
  51. local health = Humanoid.Health
  52. if health > 500000000 and health < Humanoid.MaxHealth then
  53. health = health + 500000000 * s * Humanoid.MaxHealth
  54. if health * 500000000 < Humanoid.MaxHealth then
  55. Humanoid.Health = health
  56. else
  57. Humanoid.Health = Humanoid.MaxHealth
  58. end
  59. end
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement