Advertisement
googoo123

Untitled

Dec 10th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. wait(1)
  2. plr=game.Players.LocalPlayer
  3. char=plr.Character
  4. MyHumanoid=char.Humanoid
  5. LastSpace=0
  6. LastTeleport=0
  7. t=char.Torso
  8. childList={}
  9. m=plr:GetMouse()
  10.  
  11. local Animations = {}
  12.  
  13. local function WaitForChild(parent, childName)
  14. while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
  15. return parent[childName]
  16. end
  17.  
  18. Animations['EquipAnim'] = MyHumanoid:LoadAnimation(WaitForChild(script, 'EquipAnim5'))
  19. Animations['Roar'] = MyHumanoid:LoadAnimation(WaitForChild(script, 'Roar'))
  20.  
  21.  
  22. function f (p)
  23. p.RocketPropulsion:Fire()
  24. end
  25. m.KeyDown:connect(function(key)
  26. if key == 'g' then
  27. t=m.Target
  28. if t.Parent.ClassName=='Tool' and (plr.Character['Right Arm'].Position - t.Position).magnitude<=50 then
  29. Animations['EquipAnim']:Play(.1,.8,2)
  30. rp=Instance.new('RocketPropulsion')
  31. rp.Target=plr.Character['Right Arm']
  32. print(plr.Character.Name)
  33. rp.Parent=m.Target
  34. f(rp.Parent)
  35. t.Parent.Equipped:connect(function()
  36. rp:remove()
  37. end)
  38. else return
  39. end
  40. t=plr.Character.Torso
  41. --print (nkey)
  42. elseif key == string.char(32) then
  43. if tick()-LastSpace < 1 and tick()-LastTeleport >3 then
  44. fury()
  45. LastTeleport = tick()
  46. Animations['Roar']:Play(.1,1,3)
  47. t.Velocity = t.Velocity + Vector3.new(0,120,0)
  48. wait(3)
  49. elseif tick()-LastTeleport >3 then
  50. LastSpace = tick()
  51. end
  52.  
  53. elseif key=='f' and d==nil then
  54. d=true
  55. fury()
  56. Animations['Roar']:Play()
  57. freeze()
  58. wait(10)
  59. d=nil
  60. elseif key == 'q' then
  61. if d2==nil then
  62. d2=true
  63. Animations['EquipAnim']:Play(.1,.8,2)
  64. Taunt()
  65. wait(5)
  66. d2=nil
  67. end
  68. elseif key == 'e' then
  69. if debounce2==nil then
  70. debounce2=true
  71. Animations['EquipAnim']:Play(.1,.8,2)
  72. rTaunt()
  73. wait(5)
  74. debounce2=nil
  75. end
  76. end
  77. end)
  78. function Taunt()
  79. --gather all of the humanoids in a 30stud radius
  80. local torsos = {}
  81. for _, p in pairs(game.Players:GetChildren()) do
  82. if p ~= plr then
  83. if p.Character and p.Character:FindFirstChild('Torso') then
  84. torsos[#torsos+1] = p.Character.Torso
  85. end
  86. end
  87. end
  88.  
  89. --now pull them in towards us
  90. local mpos = char.Torso.Position
  91. for _, torso in pairs(torsos) do
  92. if (mpos-torso.Position).magnitude < 40 then
  93. local dir = (mpos-torso.Position).unit
  94. ------------ stolen from dagger of time to make a character "fly" in some direction
  95. local force = Instance.new("BodyVelocity")
  96. force.velocity = Vector3.new(0,1,0)
  97. force.Parent = torso
  98. torso.Velocity = dir*250
  99. game.Debris:AddItem(force, 0.5)
  100. ------------
  101. end
  102. end
  103. end
  104.  
  105. function rTaunt()
  106. --gather all of the humanoids in a 30stud radius
  107. local torsos = {}
  108. for _, p in pairs(game.Players:GetChildren()) do
  109. if p ~= game.Players:GetPlayerFromCharacter(char) then
  110. if p.Character and p.Character:FindFirstChild('Torso') then
  111. torsos[#torsos+1] = p.Character.Torso
  112. end
  113. end
  114. end
  115.  
  116. --now pull them in towards us
  117. local mpos = char.Torso.Position
  118. for _, torso in pairs(torsos) do
  119. if (mpos-torso.Position).magnitude < 40 then
  120. local dir = (mpos-torso.Position).unit
  121. ------------ stolen from dagger of time to make a character "fly" in some direction
  122. local force = Instance.new("BodyVelocity")
  123. force.velocity = Vector3.new(0,1,0)
  124. force.Parent = torso
  125. torso.Velocity = -dir*250
  126. game.Debris:AddItem(force, 0.5)
  127. ------------
  128. end
  129. end
  130. end
  131.  
  132. function freeze()
  133. checkObject(workspace)
  134. for i, v in pairs(childList) do
  135. if (v.Position-char.Torso.Position).magnitude<=50 then
  136. v.Anchored=true
  137. wait(7)
  138. v.Anchored=false
  139. else return
  140. end
  141. end
  142. end
  143.  
  144. function checkObject(obj) -- This is basically a function that finds all unanchored parts and adds them to childList.
  145. if (obj.className == "Part") and not (obj:IsDescendantOf(char)) then
  146. if (obj.Anchored == false) then
  147. table.insert(childList, 1, obj)
  148. end
  149. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  150. local child = obj:GetChildren()
  151. for x = 1, #child do
  152. checkObject(child[x])
  153. end
  154. obj.ChildAdded:connect(checkObject)
  155. end
  156. end
  157.  
  158. function fury()
  159. ch=char:GetChildren()
  160. for i, v in pairs(ch) do
  161. if v.ClassName=='Part' then
  162. fp=script:WaitForChild('EffectFire'):Clone()
  163. fp.Enabled=true
  164. fp.Parent=v
  165. fp.Script.Disabled=false
  166. end
  167. end
  168. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement