Advertisement
dylan12312

Untitled

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