daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Dec 19th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local Mouse = player:GetMouse()
  4. local hum = character:FindFirstChild("Humanoid")
  5. local HR = character:findFirstChild("HumanoidRootPart")
  6. local Head = character:FindFirstChild("Head")
  7. local Torso = character:FindFirstChild("Torso")
  8. local RightArm = character["Right Arm"]
  9. local RightLeg = character["Right Leg"]
  10. local LeftArm = character["Left Arm"]
  11. local LeftLeg = character["Left Leg"]
  12. local LeftArm = character['Left Arm']
  13. local LeftLeg = character['Left Leg']
  14. RightShoulder = Torso['Right Shoulder']
  15. LeftShoulder = Torso['Left Shoulder']
  16. attacking = false
  17.  
  18.  
  19. Animate = character.Animate
  20.  
  21. enabled = true
  22.  
  23. BBomb = 0
  24. planted = false
  25. cooldown = 0
  26. cooldown2 = 0
  27. cooldown3 = 0
  28. cooldown4 = 0
  29. Globalcooldown = 0
  30. animation = Instance.new("Animation",script.Parent) -- OraOraOra
  31. animation.AnimationId = 'rbxassetid://730728813'
  32. animation2 = Instance.new("Animation",script.Parent) -- Right Swing
  33. animation2.AnimationId = 'rbxassetid://730734152'
  34. animation3 = Instance.new("Animation",script.Parent) -- Detonate
  35. animation3.AnimationId = 'rbxassetid://730734653'
  36. animation4 = Instance.new("Animation", script.Parent) -- Bubble bomb
  37. animation4.AnimationId = 'rbxassetid://730735120'
  38. animation5 = Instance.new("Animation", script.Parent) --
  39. animation5.AnimationId = 'rbxassetid://'
  40. animation6 = Instance.new("Animation", script.Parent)
  41. animation6.AnimationId = 'rbxassetid://'
  42. animation7 = Instance.new("Animation", script.Parent)
  43. animation7.AnimationId = 'rbxassetid://'
  44. local animTrack = hum:LoadAnimation(animation)
  45. hum.MaxHealth = 250
  46. wait()
  47. hum.Health = 250
  48. script.Weld.Disabled = false
  49. function anim(id)
  50.     local anim = Instance.new('Animation',script.Parent)
  51.     anim.AnimationId = 'rbxassetid://' .. id
  52.     local lol = hum:LoadAnimation(anim)
  53.     lol:Play()
  54.     debris(anim,4)
  55. end
  56. function debris(thing,kek)
  57.     game:GetService('Debris'):AddItem(thing,kek)
  58. end
  59. function sound(id,parent,volume,pitch)
  60.     local sound = Instance.new('Sound',parent)
  61.     sound.SoundId = 'rbxassetid://' .. id
  62.     sound.Volume = volume
  63.     sound.Pitch = pitch
  64.     sound:Play()
  65.     debris(sound,15)
  66. end
  67. function showdamage(damage,hed)
  68.     local bg = Instance.new('BillboardGui')
  69.     bg.Parent = hed
  70.     bg.Size = UDim2.new(1,0,1,0)
  71.     bg.Adornee = hed
  72.     bg.StudsOffset = Vector3.new(math.random(-3,3), math.random(3, 5), math.random(-3, 3))
  73.     local txt = Instance.new('TextLabel')
  74.     txt.Parent = bg
  75.     txt.Size = UDim2.new(3, 3, 3, 3)
  76.     txt.BackgroundTransparency = 1
  77.     txt.Text = tostring(damage)
  78.     txt.TextStrokeTransparency = 0
  79.     txt.TextXAlignment = Enum.TextXAlignment.Center
  80.     txt.TextYAlignment = Enum.TextYAlignment.Center
  81.     txt.FontSize = Enum.FontSize.Size32
  82.     txt.Font = "ArialBold"
  83.     txt.TextColor3 = BrickColor.new('Bright yellow').Color
  84.     txt.TextStrokeColor3 = BrickColor.new('Really black').Color
  85.     coroutine.resume(coroutine.create(function()
  86.         wait(0.01)
  87.         for i = 0, 10, 1 do
  88.             wait(.1)
  89.             txt.TextStrokeTransparency = txt.TextStrokeTransparency + 0.1
  90.             txt.TextTransparency = txt.TextTransparency + 0.1
  91.     end
  92.     bg:Destroy()
  93.     end))
  94. end
  95. function damage(hit,minim,maxim,cdown,Type)
  96.     --[[
  97.         hit = target
  98.         minim = lowest possible damage
  99.         maxim = highest possible damage
  100.         cdown = hit cooldown, how long to wait before you can damage again
  101.         type = type of damage, like lifesteal/heal/knockdown
  102.         example of usage :
  103.         local connect = hitbox.Touched:connect(function(hit)
  104.             damage(hit.Parent,35,45,2.2,'LifeSteal')
  105.         end)
  106.     --]]
  107.     for i,v in pairs(hit:GetChildren()) do
  108.         if v:IsA("Humanoid") and hit.Name ~= player.Name then
  109.             local find = v:FindFirstChild('hit')
  110.             if not find then
  111.                 local enemyhum = v
  112.                 enemyhum.Died:connect(function()
  113.                     if enemyhum.Parent.Name ~= 'hi' and enemyhum:FindFirstChild('lolno') == nil then
  114.                         player.leaderstats.Notoriety.Value = player.leaderstats.Notoriety.Value + 100
  115.                         local kek = Instance.new('BoolValue')
  116.                         kek.Parent = enemyhum
  117.                         kek.Name = 'lolno'
  118.                     end
  119.                 end)
  120.                 local bool = Instance.new('BoolValue')
  121.                 bool.Parent = enemyhum
  122.                 bool.Name = 'hit'
  123.                 local ko = Instance.new('ObjectValue')
  124.                 ko.Value = player
  125.                 ko.Parent = enemyhum
  126.                 debris(ko,cdown)
  127.                 debris(bool,cdown)
  128.                 local damage = math.random(minim,maxim)
  129.                 math.floor(damage)
  130.                 showdamage(damage,v.Parent:FindFirstChild('Head'))
  131.                 if Type == 'Normal' then
  132.                     enemyhum:TakeDamage(damage)
  133.                 elseif Type == 'Knockdown' then
  134.                     enemyhum:TakeDamage(damage)
  135.                     enemyhum.Sit = true
  136.                 elseif Type == 'Knockback' then
  137.                     enemyhum:TakeDamage(damage)
  138.                     local bv = Instance.new('BodyVelocity',enemyhum)
  139.                     bv.Velocity = HR.CFrame.lookVector * 90
  140.                     bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  141.                     debris(bv,0.34)
  142.                 elseif Type == 'Heal' then
  143.                     local healdam = damage * -1
  144.                     enemyhum:TakeDamage(healdam)
  145.                 elseif Type == 'Lifesteal' then
  146.                     enemyhum:TakeDamage(damage)
  147.                     hum:TakeDamage((damage * -1) * 0.65)
  148.                 end
  149.             end
  150.         end
  151.     end
  152. end
  153. function removecontrol()
  154.     hum.WalkSpeed = 0
  155.     hum.JumpPower = 0
  156. end
  157. function resumecontrol()
  158.     hum.WalkSpeed = 16
  159.     hum.JumpPower = 50
  160. end
  161. function rushattack()
  162.     if hum.PlatformStand == true then return end
  163.     if attacking then return end
  164.     if cooldown ~= 0 then return end
  165.     if character:FindFirstChild('pose') ~= nil then return end
  166.     if Torso.Anchored == false then
  167.         attacking = true
  168.         cooldown = 1
  169.        
  170.         local rush = hum:LoadAnimation(animation)
  171.         rush:Play()
  172.        
  173.         local p1 = Instance.new("Part")
  174.         game.Debris:AddItem(p1,4)
  175.         p1.CanCollide = false
  176.         p1.Anchored = false
  177.         p1.Parent = RightArm
  178.         p1.Size = RightArm.Size
  179.         p1.Transparency = 1
  180.        
  181.         local w11 = Instance.new("Weld", p1)
  182.         w11.Part0 = RightArm
  183.         w11.Part1 = p1
  184.        
  185.         local p2 = Instance.new("Part")
  186.         game.Debris:AddItem(p2,4)
  187.         p2.CanCollide = false
  188.         p2.Anchored = false
  189.         p2.Parent = LeftArm
  190.         p2.Size = LeftArm.Size
  191.         p2.Transparency = 1
  192.        
  193.         local w22 = Instance.new("Weld", p2)
  194.         w22.Part0 = LeftArm
  195.         w22.Part1 = p2
  196.        
  197.         cmten = true
  198.         p1.Touched:connect(function(hit)
  199.             if not cmten then return end
  200.             local ehum = hit.Parent:findFirstChild("Humanoid")
  201.             if ehum and ehum ~= hum then
  202.                 cmten = false
  203.                 damage(hit.Parent,2,3,0.1,'Normal')
  204.                 sound(367499850,hit,1,1)
  205.                 wait(0.15)
  206.                 cmten = true
  207.             end
  208.         end)
  209.        
  210.         cmten2 = true
  211.         p2.Touched:connect(function(hit)
  212.             if not cmten2 then return end
  213.             local ehum = hit.Parent:findFirstChild("Humanoid")
  214.             if ehum and ehum ~= hum then
  215.                 cmten2 = false
  216.                 damage(hit.Parent,2,3,0.1,'Normal')
  217.                 sound(367499850,hit,1,1)
  218.                 wait(0.15)
  219.                 cmten2 = true
  220.             end
  221.         end)
  222.        
  223.         wait(4)
  224.         rush:Stop()
  225.         attacking = false
  226.         wait(3)
  227.         cooldown = 0
  228.     end
  229. end
  230. function transmutation()
  231.     if hum.PlatformStand == true then return end
  232.     if attacking then return end
  233.     if cooldown2 ~= 0 then return end
  234.     if character:FindFirstChild('pose') ~= nil then return end
  235.     if RightArm.Anchored == true then return end
  236.     if not planted then
  237.         attacking = true
  238.         planted = true
  239.         anim(730734152)
  240.         local h = Instance.new("Part")
  241.         h.CanCollide = false
  242.         h.Anchored = false
  243.         h.Size = RightArm.Size
  244.         h.Transparency = 1
  245.         h.Parent = character
  246.         game.Debris:AddItem(h, 0.8)
  247.         local w = Instance.new("Weld")
  248.         w.Parent = h
  249.         w.Part0 = RightArm
  250.         w.Part1 = h
  251.        
  252.         b1ten = true
  253.         h.Touched:connect(function(hit)
  254.             if not b1ten then return end
  255.             local ehum = hit.Parent:findFirstChild("Humanoid")
  256.             if not hit:IsDescendantOf(character) and hit.Size.X < 25 and hit.Size.Y < 25 and hit.Size.Z < 25 then
  257.                 b1ten = false
  258.                 sound(367499850,RightArm,1.3,0.9)
  259.                 Mine = hit     
  260.                 wait(1)
  261.                 b1ten = true
  262.             end
  263.         end)
  264.         wait(1)
  265.         attacking = false
  266.     elseif planted then
  267.     if Mine == nil then
  268.         planted = false
  269.         return
  270.     end
  271.     attacking = true
  272.     cooldown2 = 1
  273.     planted = false
  274.     anim(730734653)
  275.     sound(596905502,RightArm,2,1)
  276.     wait(0.8)
  277.     local Boomboom = Instance.new("Explosion")
  278.     Boomboom.Parent = Torso.Parent
  279.     Boomboom.Position = Mine.Position
  280.     Boomboom.ExplosionType = "CratersAndDebris"
  281.     Boomboom.BlastRadius = 15
  282.     Boomboom.BlastPressure = 30000
  283.     Boomboom.DestroyJointRadiusPercent = 0
  284.     game.Debris:AddItem(Boomboom, 3)
  285.     Boomboom.Hit:connect(function(hit)
  286.         damage(hit.Parent,75,90,1,'Knockdown')
  287.     end)
  288.     sound(596903906,Boomboom,1,1)
  289.  
  290.     wait(0.4)
  291.     Mine = nil
  292.     planted = false
  293.     attacking = false
  294.     wait(6)
  295.     cooldown2 = 0
  296.     end
  297. end
  298. function manualbomb()
  299.    
  300. end
  301. function contactbomb()
  302.     if hum.PlatformStand == true then return end
  303.     if attacking == true then return end
  304.     if character:FindFirstChild('pose') ~= nil then return end
  305.     if cooldown3 ~= 0 then return end
  306.     attacking = true
  307.     cooldown3 = 1
  308.     local poze = hum:LoadAnimation(animation4)
  309.     poze:Play()
  310.     removecontrol()
  311.     wait(1)
  312.     local boob = script.Bubble:Clone()
  313.     boob.Parent = workspace
  314.     boob.Name = 'Stoppable'
  315.     boob.CFrame = HR.CFrame * CFrame.new(0,0,-3)
  316.     debris(boob,10)
  317.     local asd = Instance.new('BodyVelocity',boob)
  318.     asd.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  319.     asd.Velocity = HR.CFrame.lookVector * 100
  320.     local connect = boob.Touched:Connect(function(hit)
  321.         local target = hit.Parent:FindFirstChild('Torso')
  322.         if target == Torso then target = nil end
  323.         local waitunoob = Instance.new('BoolValue',target)
  324.         waitunoob.Name = 'fagola'
  325.         print('hold it righ thr pardnr1111')
  326.         debris(waitunoob,2)
  327.         if target:FindFirstChild('fagola') ~= nil then
  328.             boob:Destroy()
  329.             local Boomboom = Instance.new("Explosion",workspace)
  330.             Boomboom.Position = target.Position
  331.             Boomboom.ExplosionType = "CratersAndDebris"
  332.             Boomboom.BlastRadius = 15
  333.             Boomboom.BlastPressure = 30000
  334.             Boomboom.DestroyJointRadiusPercent = 0
  335.             game.Debris:AddItem(Boomboom, 5)
  336.             sound(596903906,Boomboom,1,1)
  337.             Boomboom.Hit:connect(function(hit)
  338.                 damage(hit.Parent,75,100,1,'Knockdown')
  339.             end)
  340.         end
  341.     end)
  342.     wait(1)
  343.     poze:Stop()
  344.     resumecontrol()
  345.     attacking = false
  346.     wait(10)
  347.     cooldown3 = 0
  348. end
  349. function key(key)
  350.     if attacking then return end
  351.     if key == 'q' and Torso.Anchored == false then
  352.         rushattack()
  353.     elseif key == 'e' and RightArm.Anchored == false then
  354.         transmutation()
  355.     elseif key == 'r' and Torso.Anchored == false then
  356.         contactbomb()
  357.     elseif key == 'g' and Torso.Anchored == false then
  358.         manualbomb()
  359.     end
  360. end
  361. Mouse.KeyDown:connect(key)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top