Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. print[[
  2. click = attack
  3. hold ctrl = run
  4. double jump = high jump
  5. q = eat near person
  6. ]]
  7.  
  8. plr = game.Players.LocalPlayer char = plr.Character mouse = plr:GetMouse()
  9.  
  10. id = char.Head.face.Texture
  11.  
  12. attacking = false
  13. enabled = false
  14. faces = {0}
  15. speed = 5
  16. speed2 = 10
  17. tool = Instance.new('HopperBin',plr.Backpack) tool.Name = 'Tendril'
  18.  
  19. tool.Selected:connect(function() char.Head.face.Texture = 'rbxassetid://417365650' enabled = true end)
  20. tool.Deselected:connect(function() char.Head.face.Texture = id enabled = false char.Humanoid.WalkSpeed = 16 end)
  21.  
  22. mouse.KeyDown:connect(function(key)
  23. if key == '2' and enabled then
  24. char.Humanoid.WalkSpeed = 150
  25. end
  26. end)
  27.  
  28. mouse.KeyUp:connect(function(key)
  29. if key == '2' then
  30. char.Humanoid.WalkSpeed = 16
  31. end
  32. end)
  33.  
  34. eat = Instance.new('Sound',char.Head) eat.SoundId = 'rbxassetid://422622480'
  35.  
  36. function blood(a)
  37. for i=1,3,1 do
  38. local b = Instance.new('Part',workspace)
  39. b.Material = 'SmoothPlastic' b.BrickColor = BrickColor.new('Crimson')
  40. b.Size = Vector3.new(.3,.3,.3)
  41. b.CFrame = a.CFrame
  42. local done = false game:GetService'RunService'.Stepped:connect(function() if done == false then done = true
  43. wait(1)
  44. b:Destroy()
  45. end end)
  46. wait()
  47. end
  48. end
  49.  
  50. function asd()
  51. for i=1,1,1 do
  52. local done = false game:GetService'RunService'.Stepped:connect(function() if done == false then done = true
  53. local target = mouse.hit * CFrame.new(math.random(-4,4),math.random(-4,4),math.random(-4,4))
  54. local parts = {}
  55. local cf = char.Torso.CFrame * CFrame.new(0,-.3,0) * CFrame.Angles(0,math.rad(faces[i]),0)
  56. local count = 0
  57. local prev = char.Torso.CFrame * CFrame.new(0,-.3,0)
  58.  
  59. char.Torso.Anchored = true
  60.  
  61. repeat
  62. if #parts % speed == 0 then wait() end
  63. count = count + 1
  64. local a = Instance.new('Part',script) a.Anchored = true
  65.  
  66. a.Material = 'Pebble' a.BrickColor = BrickColor.new'Crimson'
  67. prev = cf
  68. cf = cf:lerp(CFrame.new(cf.p,target.p) * CFrame.Angles(0,math.rad(180),0),.5) * CFrame.new(0,0,10)
  69. local magnitude = (cf.p - prev.p).magnitude
  70. a.Size = Vector3.new(1,1,magnitude)
  71. a.CFrame = CFrame.new((prev * CFrame.new(math.random(-0,0),math.random(-0,0),0)).p,cf.p) * CFrame.new(0,0,-magnitude / 2)
  72. table.insert(parts,a)
  73.  
  74. local sound = Instance.new('Sound',a) sound.SoundId = 'rbxassetid://314390675'
  75.  
  76. local descendants = {}
  77. local function getdescendants(instance)
  78. for _, child in ipairs(instance:GetChildren()) do
  79. table.insert(descendants, child)
  80. getdescendants(child)
  81. end
  82. end
  83. getdescendants(workspace)
  84.  
  85. for i=1,#descendants,1 do
  86. local b = descendants[i]
  87. if b.Name == 'Torso' and b:IsDescendantOf(char) == false then
  88. if (b.Position - a.Position).magnitude < 10 then
  89. b.Parent.Humanoid.Health = b.Parent.Humanoid.Health - 2 sound:Play()
  90. char.Humanoid.Health = char.Humanoid.Health + 5
  91. end
  92. end
  93. end
  94.  
  95. until count > 50 --[[or (cf.p - target.p).magnitude < 5]]-- or attacking == false
  96.  
  97. for i=#parts,1,-1 do
  98. if i % speed2 == 0 then wait() end
  99. parts[i]:Destroy()
  100. end
  101.  
  102. enabled = true
  103. attacking = false
  104. if #script:GetChildren() == 0 then
  105. char.Torso.Anchored = false
  106. end
  107.  
  108. end end)
  109. end
  110.  
  111. end
  112.  
  113. mouse.Button1Down:connect(function()
  114. if enabled == true then
  115. if attacking == false then
  116.  
  117. asd()
  118.  
  119. end
  120. end
  121. end)
  122.  
  123. dj = false
  124. eating = false
  125.  
  126. mouse.KeyDown:connect(function(key)
  127. if enabled == true and key == 'q' and eating == false then
  128. local target = mouse.Target
  129. if target then
  130. if target.Parent:FindFirstChild('Humanoid') and (target.Position - char.Torso.Position).magnitude < 5 and not target:IsDescendantOf(char) then
  131.  
  132. if target.Name ~= 'Torso' and target.Name ~= 'Head' then
  133. target:BreakJoints()
  134. end
  135.  
  136. eating = true
  137.  
  138. wait()
  139.  
  140. target.CanCollide = false
  141. local weld = Instance.new('Weld',target)
  142. weld.Part0 = char.Head weld.Part1 = target
  143. weld.C0 = CFrame.new(0,0,-1.5)
  144. char.Humanoid.Health = char.Humanoid.Health + 16
  145. blood(target)
  146. eat:Play()
  147. target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 16
  148.  
  149. wait(.3)
  150.  
  151. weld:Destroy()
  152. eating = false
  153.  
  154. if target.Name ~= 'Torso' and target.Name ~= 'Head' then
  155. target:Destroy()
  156. end
  157.  
  158. if target.Parent.Humanoid.Health == 0 then
  159. target:Destroy()
  160. end
  161.  
  162. end
  163. end
  164. end
  165.  
  166. if enabled == true and key == ' ' and char.Torso.Velocity.Y > -150 then
  167. if dj == true then
  168. char.Torso.Velocity = char.Torso.Velocity + Vector3.new(0,300,0)
  169. end
  170. dj = true
  171. wait(.5)
  172. dj = false
  173. end
  174.  
  175. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement