Advertisement
ScriptBuilderSHEHAB

ice god staff

Jul 25th, 2016
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.05 KB | None | 0 0
  1. --==Gifted by the ice god==--
  2.  
  3. --==By jarredbcv and ephraim1090==--
  4.  
  5. Player = game:GetService("Players").LocalPlayer
  6.  
  7. Char = Player.Character
  8.  
  9. RShoulder = Char.Torso['Right Shoulder']
  10.  
  11. Tool = Instance.new("HopperBin",Player.Backpack)
  12.  
  13. Tool.Name = "The Ice God's Legendary Staff"
  14.  
  15.  
  16.  
  17.  
  18. --==l0lkeys==--
  19.  
  20. function onClicked(mouse)
  21.  
  22. if (not vDebounce) then
  23.  
  24. vDebounce = true
  25.  
  26. Char.Humanoid.MaxHealth=2e200
  27.  
  28. wait() Char.Humanoid.Health=2e200
  29.  
  30. animation = Instance.new("Animation")
  31.  
  32. animation.Name = "SlashAnim"
  33.  
  34. animation.AnimationId = "http://www.roblox.com/Asset?ID=75416338"
  35.  
  36. animTrack = Char.Humanoid:LoadAnimation(animation)
  37.  
  38. animTrack:Play()
  39.  
  40. wait(1.5)
  41.  
  42. coroutine.resume(coroutine.create(function(c)
  43.  
  44. for i =1,75 do wait()
  45.  
  46. c=Instance.new("Part",Char)
  47.  
  48. c.CFrame=S.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  49.  
  50. c.Size=Vector3.new(1,1,1)
  51.  
  52. c.CanCollide=false
  53.  
  54. cm=Instance.new("SpecialMesh",c)
  55.  
  56. cm.MeshId="http://www.roblox.com/asset/?id=19251107"
  57.  
  58. cm.TextureId="http://www.roblox.com/asset/?id=19251094"
  59.  
  60. cm.Scale=Vector3.new(.3,.3,.3)
  61.  
  62. po=Instance.new("BodyPosition",c)
  63.  
  64. po.position=S.Position
  65.  
  66. game.Debris:AddItem(c,.5)
  67.  
  68. wait()
  69.  
  70. end
  71.  
  72. end))
  73.  
  74. cc=Instance.new("Part",Char)
  75.  
  76. cc.CFrame=S.CFrame
  77.  
  78. cc.FormFactor="Custom"
  79.  
  80. cc.Size=Vector3.new(3,3,3)
  81.  
  82. cc.Transparency=.5
  83.  
  84. cc.BrickColor=BrickColor.new("Toothpaste")
  85.  
  86. cc.Anchored=true
  87.  
  88. cc.CanCollide=false
  89.  
  90. ccm=Instance.new("SpecialMesh",cc)
  91.  
  92. ccm.MeshId="http://www.roblox.com/asset/?id=1185246"
  93.  
  94. ccm.Scale=Vector3.new(0,0,0)
  95.  
  96. for i =1,75 do wait()
  97.  
  98. cc.CFrame=S.CFrame
  99.  
  100. ccm.Scale=ccm.Scale+Vector3.new(.1,.1,.1)
  101.  
  102. wait()
  103.  
  104. end
  105.  
  106. cc.Anchored=false
  107.  
  108. po=Instance.new("BodyPosition",cc)
  109.  
  110. po.position=mouse.Hit.p
  111.  
  112. po.maxForce=Vector3.new(1e1000,1e1000,1e1000)
  113.  
  114. function touch(hit)
  115.  
  116. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  117.  
  118. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-10
  119.  
  120. game.Debris:AddItem(cc,1)
  121.  
  122. end
  123.  
  124. end
  125.  
  126. cc.Touched:connect(touch)
  127.  
  128. animTrack:Stop()
  129.  
  130. game.Debris:AddItem(cc,1)
  131.  
  132. wait(1)
  133.  
  134. Char.Humanoid.MaxHealth=100
  135.  
  136. vDebounce = false
  137.  
  138. end
  139.  
  140. end
  141.  
  142.  
  143. function onKeyDown(key)
  144.  
  145. key = key:lower()
  146.  
  147. if key == "f" then
  148.  
  149. wal = not wal
  150.  
  151. if wal == true then
  152.  
  153. wl=Instance.new("Part",workspace)
  154.  
  155. wl.BrickColor=BrickColor.new("Toothpaste")
  156.  
  157. wl.Material="Ice"
  158.  
  159. wl.Size=Vector3.new(10,7,2)
  160.  
  161. wl.Anchored=true
  162.  
  163. wl.CFrame=Char.Torso.CFrame*CFrame.new(0,0,-5)
  164.  
  165. wl2=wl:Clone()
  166.  
  167. wl2.Parent=Workspace
  168.  
  169. wl2.Size=Vector3.new(2,7,10)
  170.  
  171. wl2.CFrame=Char.Torso.CFrame*CFrame.new(-5,0,0)
  172.  
  173. wl3=wl2:Clone()
  174.  
  175. wl3.Parent=Workspace
  176.  
  177. wl3.CFrame=Char.Torso.CFrame*CFrame.new(5,0,0)
  178.  
  179. wl4=wl:Clone()
  180.  
  181. wl4.Parent=Workspace
  182.  
  183. wl4.CFrame=Char.Torso.CFrame*CFrame.new(0,0,5)
  184.  
  185. else
  186.  
  187. for i=1,10 do wait()
  188.  
  189. wl.Transparency=wl.Transparency +.1
  190.  
  191. wl2.Transparency=wl2.Transparency +.1
  192.  
  193. wl3.Transparency=wl3.Transparency +.1
  194.  
  195. wl4.Transparency=wl4.Transparency +.1
  196.  
  197. wait()
  198.  
  199. end
  200.  
  201. wl:remove()
  202.  
  203. wl2:remove()
  204.  
  205. wl3:remove()
  206.  
  207. wl4:remove()
  208.  
  209. end
  210.  
  211. end
  212.  
  213. if key == "r" then
  214.  
  215. dccas=Instance.new("Part",Char)
  216.  
  217. dccas.CFrame=Char.Torso.CFrame*CFrame.new(0,-3,0)
  218.  
  219. dccas.FormFactor="Custom"
  220.  
  221. dccas.Size=Vector3.new(3,1,3)
  222.  
  223. dccas.Transparency=1
  224.  
  225. dccas.CanCollide=false
  226.  
  227. dSdsWeld = Instance.new("Weld", Char)
  228.  
  229. dSdsWeld.Part0 = S
  230.  
  231. dSdsWeld.Part1 = dccas
  232.  
  233. dSdsWeld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  234.  
  235. animation = Instance.new("Animation")
  236.  
  237. animation.Name = "SlashAnim"
  238.  
  239. animation.AnimationId = "http://www.roblox.com/Asset?ID=94161333"
  240.  
  241. animTrack = Char.Humanoid:LoadAnimation(animation)
  242.  
  243. animTrack:Play()
  244.  
  245. game.Debris:AddItem(dccas,1)
  246.  
  247. function touch(hit)
  248.  
  249. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  250.  
  251. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-10
  252.  
  253. game.Debris:AddItem(cc,1)
  254.  
  255. end
  256.  
  257. end
  258.  
  259. dccas.Touched:connect(touch)
  260.  
  261. coroutine.resume(coroutine.create(function(c)
  262.  
  263. for i =1,20 do wait()
  264.  
  265. p = Instance.new("Part",workspace)
  266.  
  267. p.FormFactor="Custom"
  268.  
  269. p.Size=Vector3.new(.5,.5,.5)
  270.  
  271. p.Transparency=.3
  272.  
  273. p.CanCollide=false
  274.  
  275. p.Anchored=true
  276.  
  277. p.CFrame = (S.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  278.  
  279. cm=Instance.new("SpecialMesh",p)
  280.  
  281. cm.MeshId="http://www.roblox.com/asset/?id=19251107"
  282.  
  283. cm.TextureId="http://www.roblox.com/asset/?id=19251094"
  284.  
  285. cm.Scale=Vector3.new(.3,.3,.3)
  286.  
  287. game.Debris:AddItem(p,.5)
  288.  
  289. wait()
  290.  
  291. end
  292.  
  293. end))
  294.  
  295. end
  296.  
  297. end
  298.  
  299.  
  300. Tool.Selected:connect(function(mouse)
  301.  
  302. mouse.KeyDown:connect(onKeyDown)
  303.  
  304. mouse.Button1Down:connect(function() onClicked(mouse) end)
  305.  
  306. mouse.KeyDown:connect(function(k)
  307.  
  308. if string.byte(k) == 48 then
  309.  
  310. loop2=false
  311.  
  312. ccas=Instance.new("Part",Char)
  313.  
  314. ccas.CFrame=Char.Torso.CFrame*CFrame.new(0,-3,0)
  315.  
  316. ccas.FormFactor="Custom"
  317.  
  318. ccas.Size=Vector3.new(3,1,3)
  319.  
  320. ccas.Material="Ice"
  321.  
  322. ccas.BrickColor=BrickColor.new("Toothpaste")
  323.  
  324. ccas.CanCollide=false
  325.  
  326. SdsWeld = Instance.new("Weld", Char)
  327.  
  328. SdsWeld.Part0 = Char.Torso
  329.  
  330. SdsWeld.Part1 = ccas
  331.  
  332. SdsWeld.C0 = CFrame.new(0, -3, 0) * CFrame.Angles(0, 0, 0)
  333.  
  334. bg=Instance.new("BodyVelocity",Char.Torso)
  335.  
  336. bg.maxForce=Vector3.new(1e1000,1e1000,1e1000)
  337.  
  338.  
  339.  
  340. loop3=false
  341.  
  342. coroutine.resume(coroutine.create(function(c)
  343.  
  344. while wait() do
  345.  
  346. if loop3 == true then break end
  347.  
  348. cd=Instance.new("Part",Char)
  349.  
  350. cd.CFrame=ccas.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  351.  
  352. cd.Size=Vector3.new(1,1,1)
  353.  
  354. cd.CanCollide=false
  355.  
  356. cm=Instance.new("SpecialMesh",cd)
  357.  
  358. cm.MeshId="http://www.roblox.com/asset/?id=19251107"
  359.  
  360. cm.TextureId="http://www.roblox.com/asset/?id=19251094"
  361.  
  362. cm.Scale=Vector3.new(.75,.75,.75)
  363.  
  364. game.Debris:AddItem(cd,.5)
  365.  
  366. wait()
  367.  
  368. end
  369.  
  370. end))
  371.  
  372.  
  373.  
  374. mouse.KeyDown:connect(function(k)
  375.  
  376. if string.byte(k) == 101 then
  377.  
  378. loop2=true
  379.  
  380. bg.velocity=Vector3.new(0,10,0)
  381.  
  382. end
  383.  
  384. end)
  385.  
  386. mouse.KeyUp:connect(function(k)
  387.  
  388. if string.byte(k) == 101 then
  389.  
  390. loop2=false
  391.  
  392. coroutine.resume(coroutine.create(function(c)
  393.  
  394. while wait() do
  395.  
  396. if loop2 == true then break end
  397.  
  398. bg.velocity=Char.Torso.CFrame.lookVector *80
  399.  
  400. end
  401.  
  402. end))
  403.  
  404. end
  405.  
  406. end)
  407.  
  408.  
  409. coroutine.resume(coroutine.create(function(c)
  410.  
  411. while wait() do
  412.  
  413. if loop2 == true then break end
  414.  
  415. bg.velocity=Char.Torso.CFrame.lookVector *80
  416.  
  417. end
  418.  
  419. end))
  420.  
  421. end
  422.  
  423. end)
  424.  
  425. mouse.KeyUp:connect(function(k)
  426.  
  427. if string.byte(k) == 48 then
  428.  
  429. game.Debris:AddItem(bg,.1)
  430.  
  431. game.Debris:AddItem(ccas,.1)
  432.  
  433. loop3=true
  434.  
  435. loop2=true
  436.  
  437. end
  438.  
  439. end)
  440.  
  441. asd=Instance.new("Model",Char)
  442.  
  443. Handle = Instance.new("Part", asd)
  444.  
  445. Handle.FormFactor = "Custom"
  446.  
  447. Handle.Size = Vector3.new(4.5, -1, 1)
  448.  
  449. Handle.TopSurface = "Smooth"
  450.  
  451. Handle.BottomSurface = "Smooth"
  452.  
  453. Handle.BrickColor = BrickColor.new("Toothpaste")
  454.  
  455. Handle.Reflectance = 0
  456.  
  457. Handle.CanCollide=false
  458.  
  459. Handle:BreakJoints()
  460.  
  461. Mesh = Instance.new("SpecialMesh", Handle)
  462.  
  463. Mesh.MeshType = "Cylinder"
  464.  
  465. Mesh.Scale = Vector3.new(1, 1, 1)
  466.  
  467. HandleWeld = Instance.new("Weld", Char)
  468.  
  469. HandleWeld.Part0 = Char["Right Arm"]
  470.  
  471. HandleWeld.Part1 = Handle
  472.  
  473. HandleWeld.C0 = CFrame.new(0, -1, -.5) * CFrame.Angles(0, math.pi/2, 0)
  474.  
  475. Blade = Instance.new("Part", asd)
  476.  
  477. Blade.FormFactor = "Custom"
  478.  
  479. Blade.Size = Vector3.new(-3, -4, 1)
  480.  
  481. Blade.TopSurface = "Smooth"
  482.  
  483. Blade.BottomSurface = "Smooth"
  484.  
  485. Blade.CanCollide=false
  486.  
  487. Blade.BrickColor = BrickColor.new("Institutional white")
  488.  
  489. Blade.Reflectance = 0
  490.  
  491. Blade:BreakJoints()
  492.  
  493. Mesh = Instance.new("BlockMesh", Blade)
  494.  
  495. Mesh.Scale = Vector3.new(-1, -1, -1)
  496.  
  497. BladeWeld = Instance.new("Weld", Char)
  498.  
  499. BladeWeld.Part0 = Char["Right Arm"]
  500.  
  501. BladeWeld.Part1 = Blade
  502.  
  503. BladeWeld.C0 = CFrame.new(0, -1, -4) * CFrame.Angles(0, 0, math.rad(90))
  504.  
  505. Detail = Instance.new("Part", asd)
  506.  
  507. Detail.FormFactor = "Custom"
  508.  
  509. Detail.CanCollide=false
  510.  
  511. Detail.Size = Vector3.new(-3, -4, 1)
  512.  
  513. Detail.TopSurface = "Smooth"
  514.  
  515. Detail.BottomSurface = "Smooth"
  516.  
  517. Detail.BrickColor = BrickColor.new("Institutional white")
  518.  
  519. Detail.Reflectance = 0
  520.  
  521. Detail:BreakJoints()
  522.  
  523. Mesh = Instance.new("BlockMesh", Detail)
  524.  
  525. Mesh.Scale = Vector3.new(-1, -1, -1)
  526.  
  527. DetailWeld = Instance.new("Weld", Char)
  528.  
  529. DetailWeld.Part0 = Char["Right Arm"]
  530.  
  531. DetailWeld.Part1 = Detail
  532.  
  533. DetailWeld.C0 = CFrame.new(0, -1, -3) * CFrame.Angles(0, 0, math.rad(30))
  534.  
  535. L = Instance.new("Part", asd)
  536.  
  537. L.FormFactor = "Custom"
  538.  
  539. L.Size = Vector3.new(-3, -4, 1)
  540.  
  541. L.CanCollide=false
  542.  
  543. L.TopSurface = "Smooth"
  544.  
  545. L.BottomSurface = "Smooth"
  546.  
  547. L.BrickColor = BrickColor.new("Institutional white")
  548.  
  549. L.Reflectance = 0
  550.  
  551. L:BreakJoints()
  552.  
  553. Mesh = Instance.new("BlockMesh", L)
  554.  
  555. Mesh.Scale = Vector3.new(-1, -1, -1)
  556.  
  557. LWeld = Instance.new("Weld", Char)
  558.  
  559. LWeld.Part0 = Char["Right Arm"]
  560.  
  561. LWeld.Part1 = L
  562.  
  563. LWeld.C0 = CFrame.new(0, -1, -4) * CFrame.Angles(0, 0, math.rad(30))
  564.  
  565. M = Instance.new("Part", asd)
  566.  
  567. M.FormFactor = "Custom"
  568.  
  569. M.Size = Vector3.new(-3, -4, 1)
  570.  
  571. M.CanCollide=false
  572.  
  573. M.TopSurface = "Smooth"
  574.  
  575. M.BottomSurface = "Smooth"
  576.  
  577. M.BrickColor = BrickColor.new("Institutional white")
  578.  
  579. M.Reflectance = 0
  580.  
  581. M:BreakJoints()
  582.  
  583. Mesh = Instance.new("BlockMesh", M)
  584.  
  585. Mesh.Scale = Vector3.new(-1, -1, -1)
  586.  
  587. MWeld = Instance.new("Weld", Char)
  588.  
  589. MWeld.Part0 = Char["Right Arm"]
  590.  
  591. MWeld.Part1 = M
  592.  
  593. MWeld.C0 = CFrame.new(0, -1, -3) * CFrame.Angles(0, 0, 0)
  594.  
  595. S = Instance.new("Part", asd)
  596.  
  597. S.FormFactor = "Custom"
  598.  
  599. S.Size = Vector3.new(-3, -4, 1)
  600.  
  601. S.CanCollide=false
  602.  
  603. S.TopSurface = "Smooth"
  604.  
  605. S.BottomSurface = "Smooth"
  606.  
  607. S.BrickColor = BrickColor.new("Institutional white")
  608.  
  609. S.Reflectance = 0
  610.  
  611. S:BreakJoints()
  612.  
  613. Mesh = Instance.new("SpecialMesh", S)
  614.  
  615. Mesh.Scale = Vector3.new(1, 1, 1)
  616.  
  617. Mesh.MeshId="http://www.roblox.com/asset/?id=19251107"
  618.  
  619. Mesh.TextureId="http://www.roblox.com/asset/?id=19251094"
  620.  
  621. SWeld = Instance.new("Weld", Char)
  622.  
  623. SWeld.Part0 = Char["Right Arm"]
  624.  
  625. SWeld.Part1 = S
  626.  
  627. SWeld.C0 = CFrame.new(0, -1, -4.5) * CFrame.Angles(0, 0, 0)
  628.  
  629. loop=false
  630.  
  631. coroutine.resume(coroutine.create(function(c)
  632.  
  633. while wait() do
  634.  
  635. if loop == true then break end
  636.  
  637. for i =1,10 do wait()
  638.  
  639. SWeld.C0 = CFrame.new(0, -1, -4.5) * CFrame.Angles(0, i/1, 0)
  640.  
  641. wait()
  642.  
  643. end
  644.  
  645. end
  646.  
  647. end))
  648.  
  649. end)
  650.  
  651. Tool.Deselected:connect(function(_)
  652.  
  653. loop=true
  654.  
  655. asd:remove()
  656.  
  657. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement