Guest User

Untitled

a guest
Dec 8th, 2019
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. local savedCF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  3. for i = 1,50 do
  4. game.ReplicatedStorage.remotes.changeStartValue:FireServer()
  5. for a,b in pairs(game.Workspace:GetChildren()) do
  6. if b:IsA("Folder") then
  7. for c,d in pairs(b:GetChildren()) do
  8. if d:FindFirstChild("enemyFolder") then
  9. for e,f in pairs(d.enemyFolder:GetChildren()) do
  10. if f:FindFirstChild("HumanoidRootPart") and f:FindFirstChild("Humanoid") and f.Name ~= "Ice Elemental" then
  11. if game.Players.LocalPlayer.Backpack:FindFirstChild("Battle Shout") then
  12. game.Players.LocalPlayer.Backpack["Battle Shout"].abilityEvent:FireServer()
  13. end
  14. if f.HumanoidRootPart.CFrame.y > -10 then
  15. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = f.HumanoidRootPart.CFrame
  16. f.HumanoidRootPart.CFrame = CFrame.new(0,-500,0)
  17. f.HumanoidRootPart.Anchored = false
  18. for i,v in pairs (f:children()) do
  19. pcall(function()
  20. v.Anchored = false
  21. v.CanCollide = false
  22. end)
  23. end
  24. end
  25. end
  26. end
  27. end
  28. end
  29. end
  30. end
  31. wait(0.4)
  32. end
  33.  
  34. --]]
  35. local savedCF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  36. for i = 1,350 do
  37. game.ReplicatedStorage.remotes.changeStartValue:FireServer()
  38. for a,b in pairs(game.Workspace:GetChildren()) do
  39. if b:IsA("Folder") then
  40. for c,d in pairs(b:GetChildren()) do
  41. if d:FindFirstChild("enemyFolder") then
  42. for e,f in pairs(d.enemyFolder:GetChildren()) do
  43. if f:FindFirstChild("HumanoidRootPart") and f:FindFirstChild("Humanoid") and f.Name ~= "Ice Elemental" then
  44.  
  45. if f.HumanoidRootPart.CFrame.y > -10 then
  46. local bv = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.UpperTorso)
  47. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  48. bv.Velocity = Vector3.new(0,0,0)
  49.  
  50. game.Players.LocalPlayer.Character.UpperTorso.Anchored = false
  51. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = f.Head.CFrame*CFrame.new(0,5,0)
  52. f.HumanoidRootPart.CFrame = CFrame.new(0,-500,0)
  53. f.HumanoidRootPart.Anchored = false
  54.  
  55. for i,v in pairs (f:children()) do
  56. pcall(function()
  57. v.Anchored = false
  58. v.CanCollide = false
  59. end)
  60. end
  61. game.Players.LocalPlayer.Character.UpperTorso.Anchored = false
  62.  
  63. end
  64. elseif f:FindFirstChild("HumanoidRootPart") and f:FindFirstChild("Humanoid") and f.Name == "Ice Elemental" then
  65. --local weld = game.Players.LocalPlayer.Character.RightLowerArm.RightElb
  66. game.Players.LocalPlayer.Character.UpperTorso.Anchored = false
  67.  
  68. print'asd'
  69. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  70. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = f.Head.CFrame*CFrame.new(0,10,0)
  71. f.Head.CanCollide = false
  72. game.Players.LocalPlayer.Character.UpperTorso.Anchored = false
  73. local bv = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.UpperTorso)
  74. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  75. bv.Velocity = Vector3.new(0,0,0)
  76. end
  77. end
  78. end
  79. end
  80. end
  81. end
  82. wait(0.15)
  83. end
RAW Paste Data