spoonish

Untitled

Apr 6th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Original Script Made by N3xul.
  2. --This script is a op script even kills you and can cause a bit of lag if you dont want lag then dont use this script
  3. -- Script Name: Classic Teapot Turret Reborn
  4. -- Last Updated:  
  5. --  _   _ ____             _    _____           _       _  
  6. -- | \ | |___ \           | |  / ____|         (_)     | |  
  7. -- |  \| | __) |_  ___   _| | | (___   ___ _ __ _ _ __ | |_
  8. -- | . ` ||__ <\ \/ / | | | |  \___ \ / __| '__| | '_ \| __|
  9. -- | |\  |___) |>  <| |_| | |  ____) | (__| |  | | |_) | |_
  10. -- |_| \_|____//_/\_\\__,_|_| |_____/ \___|_|  |_| .__/ \__|
  11. --                                               | |        
  12. --                                               |_|    
  13. local runDummyScript = function(f,scri)
  14. local oldenv = getfenv(f)
  15. local newenv = setmetatable({}, {
  16. __index = function(_, k)
  17. if k:lower() == 'script' then
  18. return scri
  19. else
  20. return oldenv[k]
  21. end
  22. end
  23. })
  24. setfenv(f, newenv)
  25. ypcall(function() f() end)
  26. end
  27. cors = {}
  28. mas = Instance.new("Model",game:GetService("Lighting"))
  29. mas.Name = "CompiledModel"
  30. o1 = Instance.new("Tool")
  31. o2 = Instance.new("Part")
  32. o3 = Instance.new("SpecialMesh")
  33. o4 = Instance.new("Sound")
  34. o5 = Instance.new("LocalScript")
  35. o6 = Instance.new("Script")
  36. o7 = Instance.new("HopperBin")
  37. o8 = Instance.new("LocalScript")
  38. o9 = Instance.new("HopperBin")
  39. o10 = Instance.new("Sound")
  40. o11 = Instance.new("LocalScript")
  41. o12 = Instance.new("HopperBin")
  42. o13 = Instance.new("Script")
  43. o14 = Instance.new("Sound")
  44. o1.Name = "GravityHammer"
  45. o1.Parent = mas
  46. o1.TextureId = "http://www.roblox.com/asset/?id=1256305"
  47. o1.GripForward = Vector3.new(-1, -0, -0)
  48. o1.GripPos = Vector3.new(0, 0, -3.25)
  49. o1.GripRight = Vector3.new(0, 1, 0)
  50. o1.GripUp = Vector3.new(0, 0, 1)
  51. o2.Name = "Handle"
  52. o2.Parent = o1
  53. o2.BrickColor = BrickColor.new("Dark stone grey")
  54. o2.Reflectance = 0.40000000596046
  55. o2.Position = Vector3.new(-7.53602743, 4.99960041, -31.5799809)
  56. o2.Rotation = Vector3.new(-90, 0.0500000007, 180)
  57. o2.FormFactor = Enum.FormFactor.Plate
  58. o2.Size = Vector3.new(1, 0.800000012, 10)
  59. o2.CFrame = CFrame.new(-7.53602743, 4.99960041, -31.5799809, -0.999999642, -7.56997451e-07, 0.000796274224, 0.000796274282, 9.09494702e-13, 0.999999702, -7.5623251e-07, 0.99999994, 6.00266503e-10)
  60. o2.BottomSurface = Enum.SurfaceType.Smooth
  61. o2.TopSurface = Enum.SurfaceType.Smooth
  62. o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  63. o2.Position = Vector3.new(-7.53602743, 4.99960041, -31.5799809)
  64. o2.Orientation = Vector3.new(-89.9599991, 90, 90)
  65. o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  66. o3.Parent = o2
  67. o3.MeshId = "http://www.roblox.com/asset/?id=1256290"
  68. o3.Scale = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  69. o3.TextureId = "http://www.roblox.com/asset/?id=1256283"
  70. o3.MeshType = Enum.MeshType.FileMesh
  71. o3.Scale = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  72. o4.Parent = o2
  73. o4.SoundId = "http://www.roblox.com/asset/?id=1255794"
  74. o4.Volume = 1
  75. o5.Name = "Local Gui"
  76. o5.Parent = o1
  77. table.insert(cors,coroutine.create(function()
  78. wait()
  79. runDummyScript(function()
  80.  
  81. end,o5)
  82. end))
  83. o6.Name = "SwordScript"
  84. o6.Parent = o1
  85. table.insert(cors,coroutine.create(function()
  86. wait()
  87. runDummyScript(function()
  88. -------- OMG HAX
  89.  
  90.  
  91.  
  92. r = game:service("RunService")
  93.  
  94.  
  95.  
  96.  
  97.  
  98. local damage = 5999999999999999999999999999999999999e99999999999999999999999999999999999999999999999999999999999999999999
  99.  
  100.  
  101.  
  102.  
  103.  
  104. local slash_damage = 10999999999999999e99999999999999999999999999999999999
  105.  
  106. local lunge_damage = 309999999999999999999e999999999999999999999999999999999999999
  107.  
  108.  
  109.  
  110. sword = script.Parent.Handle
  111.  
  112. Tool = script.Parent
  113.  
  114.  
  115.  
  116. SlashSound = sword.Sound
  117.  
  118.  
  119.  
  120. function blow(hit)
  121.  
  122.     Grip = Tool.Parent["Right Arm"].RightGrip:clone()
  123.  
  124.     humanoid = hit.Parent:findFirstChild("Humanoid")
  125.  
  126.     if(humanoid ~= nil and humanoid.Parent.Name == Tool.Parent.Name) then --don't hit yourself
  127.  
  128.         return
  129.  
  130.     end
  131.  
  132.    
  133.  
  134.     --if(Tool:findFirstChild("toolAnim") == nil) then return end
  135.  
  136.     if(humanoid ~= nil) then --if it's a person, damage him and stop
  137.  
  138.         propel(hit)
  139.  
  140.         print(humanoid.Parent.Name)
  141.  
  142.         humanoid.Health = humanoid.Health - 0
  143.  
  144.     else
  145.  
  146.         explode(hit) --explode only if it doesn't hit a person (ie, blowing holes through walls)
  147.  
  148.     end
  149.  
  150.    
  151.  
  152. end
  153.  
  154.  
  155.  
  156. function propel(part)
  157.  
  158.     if(part.Anchored) then return end --if it isn't anchored, make it flyyy
  159.  
  160.     direction = (part.Position - Tool.Parent.Torso.Position).unit
  161.  
  162.     direction = direction + Vector3.new(0,1,0)
  163.  
  164.     direction = direction * 200
  165.  
  166.     part.Velocity = part.Velocity + direction
  167.  
  168. end
  169.  
  170.  
  171.  
  172. debounce = true
  173.  
  174. function explode(part)
  175.  
  176.     if not debounce then return end
  177.  
  178.    
  179.  
  180.     debounce = false
  181.  
  182.     direction = (part.Position - Tool.Parent.Torso.Position).unit
  183.  
  184.     pos = direction * 12 + Tool.Parent.Torso.Position
  185.  
  186.     explosion = Instance.new("Explosion")
  187.  
  188.     explosion.BlastRadius = 4999999999999999999999999e999999999999999999999999999999999999999999999999999999999999999999999999999999999
  189.  
  190.     explosion.BlastPressure = 999
  191.  
  192.     explosion.Position = pos
  193.  
  194.     explosion.Parent = game.Workspace
  195.  
  196.     explosion.Hit:connect(function(part, distance) propel(part) end)
  197.  
  198.     wait(.1)
  199.  
  200.     Grip:clone().Parent = Tool.Parent["Right Arm"]
  201.  
  202.     debounce = true
  203.  
  204. end
  205.  
  206.  
  207.  
  208. function attack()
  209.  
  210.     SlashSound:play()
  211.  
  212.     local anim = Instance.new("StringValue")
  213.  
  214.     anim.Name = "toolanim"
  215.  
  216.     anim.Value = "Slash"
  217.  
  218.     anim.Parent = Tool
  219.  
  220. end
  221.  
  222.  
  223.  
  224. function lunge()
  225.  
  226.     attack()
  227.  
  228.     force = Instance.new("BodyPosition")
  229.  
  230.     force.maxForce = Vector3.new(1e+005,1e+004,1e+005)
  231.  
  232.     dir = Tool.Parent.Humanoid.targetPoint
  233.  
  234.     if((dir - sword.Position).magnitude > 15) then return end
  235.  
  236.     force.position = dir
  237.  
  238.     force.Parent = sword
  239.  
  240.     wait(.25)
  241.  
  242.     force.Parent = nil
  243.  
  244. end
  245.  
  246.  
  247.  
  248. function swordUp()
  249.  
  250.     Tool.GripForward = Vector3.new(-1,0,0)
  251.  
  252.     Tool.GripRight = Vector3.new(0,1,0)
  253.  
  254.     Tool.GripUp = Vector3.new(0,0,1)
  255.  
  256. end
  257.  
  258.  
  259.  
  260. function swordOut()
  261.  
  262.     Tool.GripForward = Vector3.new(0,0,1)
  263.  
  264.     Tool.GripRight = Vector3.new(0,-1,0)
  265.  
  266.     Tool.GripUp = Vector3.new(-1,0,0)
  267.  
  268. end
  269.  
  270.  
  271.  
  272. function swordAcross()
  273.  
  274.     -- parry
  275.  
  276. end
  277.  
  278.  
  279.  
  280.  
  281.  
  282. Tool.Enabled = true
  283.  
  284. local last_attack = 0
  285.  
  286. function onActivated()
  287.  
  288.  
  289.  
  290.     if not Tool.Enabled then
  291.  
  292.         return
  293.  
  294.     end
  295.  
  296.  
  297.  
  298.     Tool.Enabled = false
  299.  
  300.  
  301.  
  302.     local character = Tool.Parent;
  303.  
  304.     local humanoid = character.Humanoid
  305.  
  306.     if humanoid == nil then
  307.  
  308.         print("Humanoid not found")
  309.  
  310.         return
  311.  
  312.     end
  313.  
  314.  
  315.  
  316.     t = r.Stepped:wait()
  317.  
  318.     connection = sword.Touched:connect(blow)
  319.  
  320.     lunge()
  321.  
  322.  
  323.  
  324.     wait(.4)
  325.  
  326. connection:disconnect()
  327.  
  328.     last_attack = t
  329.  
  330.     Tool.Enabled = true
  331.  
  332.    
  333.  
  334.  
  335.  
  336. end
  337.  
  338. script.Parent.Activated:connect(onActivated)
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345. end,o6)
  346. end))
  347. o7.Name = "Fire Shield"
  348. o7.Parent = mas
  349. o8.Parent = o7
  350. table.insert(cors,coroutine.create(function()
  351. wait()
  352. runDummyScript(function()
  353. --clockwork
  354.  
  355. --Fix implemented by Luckymaxer
  356.  
  357. HopperBin = script.Parent
  358.  
  359. Debris = game:GetService("Debris")
  360.  
  361. function GetX(t)
  362.     return 41 * math.cos(t) - 18 * math.sin(t) - 83 * math.cos(2 * t) - 11 * math.cos(3 * t) + 27 * math.sin(3 * t)
  363. end
  364.  
  365. function GetY(t)
  366.     return 36 * math.cos(t) + 27 * math.sin(t) - 113 * math.cos(2 * t) + 30 * math.sin(2 * t) + 11 * math.cos(3 * t) - 27 * math.sin(3 * t)
  367. end
  368.  
  369. function GetZ(t)
  370.     return 45 * math.sin(t) - 30 * math.cos(2 * t) + 113 * math.sin(2 * t) - 11 * math.cos(3 * t) + 27 * math.sin(3 * t)
  371. end
  372.  
  373. Template = Instance.new("Explosion")
  374. Template.BlastRadius = 99999999999999999999999999999999999999999999999999999e999999999999999999999999999999999999999999999999999999999
  375. Template.BlastPressure = 99e99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  376. Template.ExplosionType = Enum.ExplosionType.NoCraters
  377.  
  378. Spaw = false
  379.  
  380. function TagHumanoid(humanoid, player)
  381.     local Creator_Tag = Instance.new("ObjectValue")
  382.     Creator_Tag.Name = "creator"
  383.     Creator_Tag.Value = player
  384.     Debris:AddItem(Creator_Tag, 2)
  385.     Creator_Tag.Parent = humanoid
  386. end
  387.  
  388. function UntagHumanoid(humanoid)
  389.     for i, v in pairs(humanoid:GetChildren()) do
  390.         if v:IsA("ObjectValue") and v.Name == "creator" then
  391.             v:Destroy()
  392.         end
  393.     end
  394. end
  395.  
  396. function FindCharacterAncestor(Parent)
  397.     if Parent and Parent ~= game:GetService("Workspace") then
  398.         local humanoid = Parent:FindFirstChild("Humanoid")
  399.         if humanoid then
  400.             return Parent, humanoid
  401.         else
  402.             return FindCharacterAncestor(Parent.Parent)
  403.         end
  404.     end
  405.     return nil
  406. end
  407.  
  408. function ExplosionHit(Explosion)
  409.     Explosion.Hit:connect(function(Hit)
  410.         if Hit and Hit.Parent then
  411.             local character, humanoid = FindCharacterAncestor(Hit)
  412.             if character and character ~= Character and humanoid and humanoid.Health > 0 then
  413.                 UntagHumanoid(humanoid)
  414.                 TagHumanoid(humanoid, Player)
  415.                 Hit:BreakJoints()
  416.             end
  417.         end
  418.     end)
  419. end
  420.  
  421. function Button1Down()
  422.     Spaw = not Spaw
  423.     i = 0
  424.     if Spaw then
  425.         while Spaw do
  426.             i = (i + 0.15)
  427.             local Explosion = Template:Clone()
  428.             Explosion.Position = Torso.Position + Vector3.new(GetX(i) / 5, GetY(i) / 5, GetZ(i) / 5)
  429.             ExplosionHit(Explosion)
  430.             Explosion.Parent = game:GetService("Workspace")
  431.             Explosion = Template:Clone()
  432.             Explosion.Position = Torso.Position - Vector3.new(GetX(i) / 5, GetY(i) / 5, GetZ(i) / 5)
  433.             ExplosionHit(Explosion)
  434.             Explosion.Parent = game:GetService("Workspace")
  435.             wait(0.025)
  436.         end
  437.     end
  438. end
  439.  
  440. function Selected(Mouse)
  441.     Backpack = HopperBin.Parent
  442.     Player = Backpack.Parent
  443.     Character = Player.Character
  444.     Humanoid = Character:FindFirstChild("Humanoid")
  445.     Torso = Character:FindFirstChild("Torso")
  446.     if not Player or not Character or not Humanoid or Humanoid.Health == 0 or not Torso then
  447.         return
  448.     end
  449.     Mouse.Button1Down:connect(function()
  450.         Button1Down()
  451.     end)
  452.     Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  453. end
  454.  
  455. HopperBin.Selected:connect(Selected)
  456. end,o8)
  457. end))
  458. o9.Name = "Katon Goukakyou No Jutsu"
  459. o9.Parent = mas
  460. o10.Parent = o9
  461. o10.SoundId = "http://www.roblox.com/asset/?id=1079802"
  462. o10.Volume = 0.20000000298023
  463. o11.Parent = o9
  464. table.insert(cors,coroutine.create(function()
  465. wait()
  466. runDummyScript(function()
  467. --clockwork
  468.  
  469. --Fix implemented by Luckymaxer
  470.  
  471. HopperBin = script.Parent
  472.  
  473. Sound = HopperBin:WaitForChild("Sound")
  474.  
  475. Debris = game:GetService("Debris")
  476.  
  477. function TagHumanoid(humanoid, player)
  478.     local Creator_Tag = Instance.new("ObjectValue")
  479.     Creator_Tag.Name = "creator"
  480.     Creator_Tag.Value = player
  481.     Debris:AddItem(Creator_Tag, 2)
  482.     Creator_Tag.Parent = humanoid
  483. end
  484.  
  485. function UntagHumanoid(humanoid)
  486.     for i, v in pairs(humanoid:GetChildren()) do
  487.         if v:IsA("ObjectValue") and v.Name == "creator" then
  488.             v:Destroy()
  489.         end
  490.     end
  491. end
  492.  
  493. function FindCharacterAncestor(Parent)
  494.     if Parent and Parent ~= game:GetService("Workspace") then
  495.         local humanoid = Parent:FindFirstChild("Humanoid")
  496.         if humanoid then
  497.             return Parent, humanoid
  498.         else
  499.             return FindCharacterAncestor(Parent.Parent)
  500.         end
  501.     end
  502.     return nil
  503. end
  504.  
  505. function ExplosionHit(Explosion)
  506.     Explosion.Hit:connect(function(Hit)
  507.         if Hit and Hit.Parent then
  508.             local character, humanoid = FindCharacterAncestor(Hit)
  509.             if character and character ~= Character and humanoid and humanoid.Health > 0 then
  510.                 UntagHumanoid(humanoid)
  511.                 TagHumanoid(humanoid, Player)
  512.                 Hit:BreakJoints()
  513.             end
  514.         end
  515.     end)
  516. end
  517.  
  518. function Explode(Position)
  519.     local Explosion = Instance.new("Explosion")
  520.     Explosion.BlastRadius = 10999999999999999e999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  521.     Explosion.BlastPressure = 99e9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  522.     Explosion.ExplosionType = Enum.ExplosionType.NoCraters
  523.     Explosion.Position = Position
  524.     ExplosionHit(Explosion)
  525.     Explosion.Parent = game:GetService("Workspace")
  526. end
  527.  
  528. function Button1Down(Mouse)
  529.     local StartPos = Head.Position
  530.     local Delta = Mouse.Hit.p - StartPos
  531.     local Unit = Delta.unit
  532.     Sound:Play()
  533.     for i = 0, 75 do
  534.         Explode(StartPos + Unit * 20 + i * Unit * i / 25)
  535.         wait(0.05)
  536.     end
  537. end
  538.  
  539. function Selected(Mouse)
  540.     Backpack = HopperBin.Parent
  541.     Player = Backpack.Parent
  542.     Character = Player.Character
  543.     Humanoid = Character:FindFirstChild("Humanoid")
  544.     Head = Character:FindFirstChild("Head")
  545.     if not Player or not Character or not Humanoid or Humanoid.Health == 0 or not Head then
  546.         return
  547.     end
  548.     Mouse.Button1Down:connect(function()
  549.         Button1Down(Mouse)
  550.     end)
  551.     Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  552. end
  553.  
  554. HopperBin.Selected:connect(Selected)
  555. end,o11)
  556. end))
  557. o12.Name = "SpinFire"
  558. o12.Parent = mas
  559. o13.Parent = o12
  560. table.insert(cors,coroutine.create(function()
  561. wait()
  562. runDummyScript(function()
  563. --clockwork
  564.  
  565.  
  566.  
  567. local bin = script.Parent
  568.  
  569. sfx = bin.Sound
  570.  
  571.  
  572.  
  573. function explode(pos)
  574.  
  575.     local lol = Instance.new("Explosion")
  576.  
  577.     lol.BlastRadius = 299999999999999999999999e99999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  578.  
  579.     lol.BlastPressure = 99e99999999999999999999999999999999999999999999999999
  580.  
  581.     lol.Position = pos
  582.  
  583.     lol.Parent = game.Workspace
  584.  
  585. end
  586.  
  587.  
  588.  
  589. function onButton1Down(mouse)
  590.  
  591.     local player = game.Players.LocalPlayer
  592.  
  593.     if player == nil then return end
  594.  
  595.     print("trigger")
  596.  
  597.     -- find the best cf
  598.  
  599.  
  600.  
  601.     sfx:play()
  602.  
  603.     look = CFrame.new(player.Character.Head.Position,mouse.Hit.p)
  604.  
  605.     for i=0,75 do
  606.  
  607.         x = math.sin(i / 3) * 8 * (75 - i) / 75
  608.  
  609.         y = math.cos(i / 3) * 8 * (75 - i) / 75
  610.  
  611.         helix = look * CFrame.new(x,y,-i)
  612.  
  613.        
  614.  
  615.         explode(helix.p)
  616.  
  617.  
  618.  
  619.         x = -math.sin(i / 3) * 8 * (75 - i) / 75
  620.  
  621.         y = -math.cos(i / 3) * 8 * (75 - i) / 75
  622.  
  623.         helix = look * CFrame.new(x,y,-i)
  624.  
  625.        
  626.  
  627.         explode(helix.p)
  628.  
  629.         wait(.02)
  630.  
  631.     end
  632.  
  633.     sfx:pause()
  634.  
  635. end
  636.  
  637.  
  638.  
  639. function onSelected(mouse)
  640.  
  641.     print("select")
  642.  
  643.     mouse.Icon = "rbxasset://textures\\GunCursor.png"
  644.  
  645.     mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  646.  
  647. end
  648.  
  649.  
  650.  
  651. bin.Selected:connect(onSelected)
  652.  
  653.  
  654. end,o13)
  655. end))
  656. o14.Parent = o12
  657. o14.SoundId = "http://www.roblox.com/asset/?id=12222095"
  658. o14.Volume = 0.60000002384186
  659. mas.Parent = workspace
  660. mas:MakeJoints()
  661. local mas1 = mas:GetChildren()
  662. for i=1,#mas1 do
  663.     mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  664.     ypcall(function() mas1[i]:MakeJoints() end)
  665. end
  666. mas:Destroy()
  667. for i=1,#cors do
  668. coroutine.resume(cors[i])
  669. end
  670. --Forcefield
  671. local f = Instance.new("ForceField")
  672. f.Parent = game.Players.localPlayer.Character
  673. --Teapot
  674. hat = Instance.new'Accessory'
  675. hat.Name = 'GoldTeapot'
  676. hat.AttachmentForward = Vector3.new(0,0,-1)
  677. hat.AttachmentPos = Vector3.new(0, 0.300000012, 0)
  678. hat.AttachmentUp = Vector3.new(0, 1, 0)
  679. hat.AttachmentRight = Vector3.new(1, 0, 0)
  680. handle = Instance.new('Part', hat)
  681. handle.Name = 'Handle'
  682. handle.Locked = true
  683. handle.CanCollide = true
  684. handle.Transparency = 0
  685. handle.BrickColor = BrickColor.new'Medium stone grey'
  686. handle.Size = Vector3.new(2, 0.800000012, 2)
  687. mesh = Instance.new('SpecialMesh', handle)
  688. mesh.MeshId = 'http://www.roblox.com/asset/?id=1594167'
  689. mesh.Scale = Vector3.new(1, 1, 1)
  690. mesh.VertexColor = Vector3.new(1, 1, 1)
  691. mesh.TextureId = 'http://www.roblox.com/asset/?id=1594166'
  692. att = Instance.new('Attachment', handle)
  693. att.Name = 'HatAt'
  694. att.Position = Vector3.new(8.65838956e-09, 0.400000095, -0.000272244215)
  695. att.Axis = Vector3.new(1, -7.87137555e-09, 0)
  696. att.SecondaryAxis = Vector3.new(7.87137555e-09, 1, 4.1444221e-16)
  697. hat.Parent = game:GetService'Players'.LocalPlayer.Character
Add Comment
Please, Sign In to add comment