Advertisement
Guest User

Hyperbolic Teether fix

a guest
Jun 24th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.73 KB | None | 0 0
  1. u = true
  2. bin = script.Parent
  3. Backpack = bin.Parent
  4. Me = Backpack.Parent
  5. PlayerGui = Me.PlayerGui
  6. Ki = PlayerGui.Bars.Ki
  7. Data = Me.Data
  8. Character = Me.Character
  9. Humanoid = Character.Humanoid
  10. Torso = Character.Torso
  11. Head = Character.Head
  12. LeftArm = Character["Left Arm"]
  13. RightArm = Character["Right Arm"]
  14. LeftLeg = Character["Left Leg"]
  15. RightLeg = Character["Right Leg"]
  16. Neck = Torso.Neck
  17. RightShoulder = Torso["Right Shoulder"]
  18. LeftShoulder = Torso["Left Shoulder"]
  19. RightHip = Torso["Right Hip"]
  20. LeftHip = Torso["Left Hip"]
  21. Occupied = Character:WaitForChild("Occupied")
  22. NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  23. NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  24. LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  25. LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  27. RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  29. LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  30. RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  31. RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  32. Refresh = function()
  33.   RightHip:SetDesiredAngle(0)
  34.   LeftHip:SetDesiredAngle(0)
  35.   RightShoulder:SetDesiredAngle(0)
  36.   LeftShoulder:SetDesiredAngle(0)
  37.   Neck.C0 = NeckC0
  38.   Neck.C1 = NeckC1
  39.   RightShoulder.C0 = RightShoulderC0
  40.   RightShoulder.C1 = RightShoulderC1
  41.   LeftShoulder.C0 = LeftShoulderC0
  42.   LeftShoulder.C1 = LeftShoulderC1
  43.   RightHip.C0 = RightHipC0
  44.   RightHip.C1 = RightHipC1
  45.   LeftHip.C0 = LeftHipC0
  46.   LeftHip.C1 = LeftHipC1
  47. end
  48.  
  49. onButton1Down = function()
  50.   if u and Ki.Value >= 170 and Occupied.Value == false then
  51.     u = false
  52.     do
  53.       for i = 1, 6 do
  54.         RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(0, 0, -0.15 * i)
  55.         LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(0, 0, 0.15 * i)
  56.         RightHip.C0 = RightHipC0 * CFrame.Angles(0, 0, 0.31 * i)
  57.         LeftHip.C0 = LeftHipC0 * CFrame.Angles(0, 0, 0.035 * i)
  58.         wait(0.035)
  59.       end
  60.     end
  61.     Refresh()
  62.     do
  63.       for _,v in pairs(workspace:getChildren()) do
  64.         if v:IsA("Model") and v ~= Me.Character and v:FindFirstChild("Humanoid") and v:FindFirstChild("Occupied") and v:FindFirstChild("Torso") then
  65.           eTorso = v:findFirstChild("Torso")
  66.           eHumanoid = v:findFirstChild("Humanoid")
  67.           if Torso.Position - eTorso.Position.magnitude <= 8 then
  68.             Ki.Value = Ki.Value - 170
  69.             Occupied.Value = true
  70.             test = v
  71.             Torso.CFrame = CFrame.new(Torso.Position)
  72.             pcall(function()
  73.     test.Torso.CFrame = CFrame.new(test.Torso.Position)
  74.     test.Humanoid.Jump = true
  75.     test.Occupied.Value = true
  76.   end
  77. )
  78.             local le = Instance.new("Part", Torso)
  79.             le.Size = Vector3.new(1, 1, 1)
  80.             le.TopSurface = 0
  81.             le.BottomSurface = 0
  82.             le.Position = Torso.Position
  83.             pcall(function()
  84.     le.Position = test.Torso.Position
  85.   end
  86. )
  87.             le.Anchored = true
  88.             le.CanCollide = false
  89.             le:BreakJoints()
  90.             le.Transparency = 0.3
  91.             le.BrickColor = BrickColor.new("White")
  92.             mesh = Instance.new("CylinderMesh", le)
  93.             mesh.Scale = Vector3.new(15, 1000, 15)
  94.             local BAV = Instance.new("BodyAngularVelocity", Torso)
  95.             BAV.maxTorque = Vector3.new(0, math.huge, 0)
  96.             BAV.angularvelocity = Vector3.new(0, 260, 0)
  97.             local BP = Instance.new("BodyPosition")
  98.             BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  99.             BP.position = Torso.Position
  100.             BP.Parent = Torso
  101.             Humanoid.PlatformStand = true
  102.             pcall(function()
  103.     BP.position = test.Torso.Position - Vector3.new(0, 0, 2)
  104.   end
  105. )
  106.             Refresh()
  107.             pcall(function()
  108.     test.Torso.CFrame = Torso.CFrame * CFrame.new(0, 0, 2)
  109.   end
  110. )
  111.             w = Instance.new("Motor6D")
  112.             pcall(function()
  113.     _G.tag(test)
  114.     w.Part0 = test.Torso
  115.   end
  116. )
  117.             w.Part1 = Torso
  118.             w.C0 = w.C0 * CFrame.new(0, 0, 2.9)
  119.             w.Parent = Torso
  120.             RightHip.C0 = RightHip.C0 * CFrame.Angles(0, -0.6, 1.5)
  121.             LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, -0.6, 1.5)
  122.             spawn(function()
  123.     workspace.Strength:InvokeServer(tonumber("2"))
  124.   end
  125. )
  126.             spawn(function()
  127.     workspace.Agility:InvokeServer(tonumber("1"))
  128.   end
  129. )
  130.             game:GetService("Chat"):Chat(Head, "Hyperbolic...")
  131.             Head.Swing:Play()
  132.             for i = 1, 25 do
  133.               BP.position = BP.position + Vector3.new(0, 3, 0)
  134.               wait(0.033333333333333)
  135.             end
  136.             Head.Swing:Stop()
  137.             pcall(function()
  138.     test.Humanoid:TakeDamage(8)
  139.   end
  140. )
  141.             wait(1)
  142.             game:GetService("Chat"):Chat(Head, "TWISTER!")
  143.             Head.Swing:Play()
  144.             w.C0 = w.C0 * CFrame.Angles(0, 0, 3.1415)
  145.             for i = 1, 8.3333333333333 do
  146.               mesh.Scale = mesh.Scale + Vector3.new(0.5, 0, 0.5)
  147.               le.Transparency = le.Transparency + 0.03
  148.               pcall(function()
  149.     test.Humanoid:TakeDamage(2.8)
  150.   end
  151. )
  152.               BP.position = BP.position + Vector3.new(0, -9, 0)
  153.               wait(0.05)
  154.             end
  155.             Head.Swing:Stop()
  156.             Head.Throw:Play()
  157.             BP:Destroy()
  158.             BAV:Destroy()
  159.             le:Destroy()
  160.             pcall(function()
  161.     test.Humanoid.PlatformStand = false
  162.     test.Humanoid.Sit = true
  163.   end
  164. )
  165.             pcall(function()
  166.     BV = Instance.new("BodyVelocity", test.Torso)
  167.     BV.velocity = Vector3.new(math.random(-300, 400), -30, math.random(-400, 300))
  168.     game.Debris:AddItem(BV, 0.9)
  169.   end
  170. )
  171.             Humanoid.PlatformStand = false
  172.             w:Destroy()
  173.             Character:MoveTo(Torso.Position + Vector3.new(0, 5, 0))
  174.             pcall(function()
  175.     e = Instance.new("Explosion", test.Torso)
  176.     e.Position = test.Torso.Position
  177.     e.BlastPressure = 0
  178.   end
  179. )
  180.             Refresh()
  181.             pcall(function()
  182.     test.Occupied.Value = false
  183.   end
  184. )
  185.             Occupied.Value = false
  186.             wait(5.33)
  187.             break
  188.           end
  189.         end
  190.       end
  191.     end
  192.     do
  193.       wait(2)
  194.       u = true
  195.     end
  196.   end
  197. end
  198.  
  199. onSelected = function(mouse)
  200.   if u then
  201.     mouse.Icon = "http://www.roblox.com/asset/?id=133931805"
  202.   else
  203.     mouse.Icon = "http://www.roblox.com/asset/?id=133931820"
  204.   end
  205.   mouse.Button1Down:connect(function()
  206.     onButton1Down()
  207.   end
  208. )
  209. end
  210.  
  211. script.Parent.Selected:connect(onSelected)
  212. --//Hyperbolic Twister fix by 0Kushy_Silver//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement