Advertisement
MasonWall19

Untitled

Jun 17th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.86 KB | None | 0 0
  1. staff script
  2. --Made by LuisPambid[L]--
  3.  
  4. --Player Settings
  5. local modelName="Winter Staff" --Name here
  6. repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
  7. local player=game.Players.LocalPlayer
  8. local char=player.Character
  9.  
  10. --CharacterParts
  11. local humanoid=char.Humanoid
  12. local head=char.Head
  13. local torso=char.Torso
  14. local LA=char:findFirstChild("Left Arm")
  15. local RA=char:findFirstChild("Right Arm")
  16. local LL=char:findFirstChild("Left Leg")
  17. local RL=char:findFirstChild("Right Leg")
  18.  
  19. --Joints
  20. local LS=torso:findFirstChild("Left Shoulder")
  21. local RS=torso:findFirstChild("Right Shoulder")
  22. local LH=torso:findFirstChild("Left Hip")
  23. local RH=torso:findFirstChild("Right Hip")
  24. LS.Part0=torso RS.Part0=torso LH.Part0=torso RH.Part0=torso
  25.  
  26. --Local Functions
  27. local s=function(f) Spawn(f) end
  28. local c=function(f) coroutine.resume(coroutine.create(f)) end
  29. pcall(function() player.Backpack[modelName]:remove() end)
  30. pcall(function() char["CharacterParts"]:remove() end)
  31. pcall(function() char[modelName]:remove() end)
  32. pcall(function() player.PlayerGui[modelName]:remove() end)
  33. pcall(function() for i, v in pairs(char:children()) do if v:isA("BasePart") then v.Transparency=0 end end end)
  34. --Settings
  35. local model=Instance.new("Model", char) model.Name="CharacterParts"
  36. local model2=Instance.new("Model", char) model2.Name=modelName
  37. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=modelName
  38. local gui=Instance.new("ScreenGui") gui.Name=modelName
  39. local skincolor="Really black"
  40. local body={}
  41. local animate={}
  42. local obj={}
  43. local onTrail=false
  44. local onKey=false
  45. local onHit=false
  46. local onBlock=false
  47. local onHold=false
  48. local colorSet={
  49. Handle="Really black";
  50. Blade="White";
  51. Extra="Black";
  52. }
  53. local combo=0
  54. local dmg=math.random(10000, 10000)
  55. local mouse
  56.  
  57. local add={
  58. Part=function(par, a, c, col, t, s, cf, ms)
  59. local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  60. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  61. return p
  62. end;
  63. Wedge=function(par, a, c, col, t, s, cf, ms)
  64. local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  65. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  66. return p
  67. end;
  68. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  69. local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.BackgroundTransparency=t g.Size=s g.Position=pos end)
  70. return g
  71. end;
  72. Weld=function(par, p1, cf)
  73. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  74. return w
  75. end;
  76. Mesh=function(ins, par, s, of, t, id, tid)
  77. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new(1, 1, 1) m.Offset=of or Vector3.new() m.MeshId=id or "" m.TextureId=tid or "" m.MeshType=t end)
  78. return m
  79. end;
  80. Sound=function(parent, id, pitch, volume)
  81. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  82. return s
  83. end;
  84. }
  85.  
  86. --Sounds
  87. local Sounds={
  88. Slash="rbxasset://sounds//swordslash.wav";
  89. Hit="http://www.roblox.com/asset/?id=11113679 ";
  90. Equip="rbxasset://sounds/unsheath.wav";
  91. Charge="http://www.roblox.com/asset/?id=2101137";
  92. ElectricShortage="http://roblox.com/asset/?id=10209481";
  93. ElectricSound="http://www.roblox.com/asset/?id=10756118";
  94. Electric="http://www.roblox.com/asset/?id=2800815";
  95. Abscond="http://www.roblox.com/asset/?id=2767090";
  96. Cannon="http://www.roblox.com/asset/?id=2920959";
  97. Bash="http://www.roblox.com/asset/?id=25270310";
  98. Suirize="http://roblox.com/asset/?id=10209605";
  99. Heli="http://www.roblox.com/asset/?id=27112125";
  100. }
  101.  
  102. --Decals
  103. local Decals={
  104. Slash="http://www.roblox.com/asset/?id=25539335";
  105. }
  106.  
  107. --MeshIds
  108. local Meshes={
  109. Charge="http://www.roblox.com/asset/?id=20329976";
  110. Noob="http://www.roblox.com/asset/?id=29515710";
  111. Ring="http://www.roblox.com/asset/?id=3270017";
  112. Crown="http://www.roblox.com/asset/?id=1323306";
  113. Spring="http://www.roblox.com/Asset/?id=9753878";
  114. Sword="rbxasset://fonts/sword.mesh";
  115. Shield="http://www.roblox.com/asset/?id=50798797";
  116. }
  117.  
  118. ------------------------CreateParts------------------------
  119. body.Torso=add.Part(model2, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
  120. body.TorsoW=add.Weld(body.Torso, torso, nil)
  121. function createParts()
  122. for i, v in pairs(char:children()) do if v:isA("CharacterMesh") then v:remove() end end
  123. torso.Transparency=1 body.Torso.Transparency=0
  124. --Parts--
  125. gui.Parent=player.PlayerGui
  126. body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  127. body.LA, body.RA=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  128. body.LL, body.RL=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  129.  
  130. --Welds--
  131. body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
  132. body.LAW, body.RAW=add.Weld(body.LA, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.RA, body.Torso, CFrame.new(1.5, .5, 0))
  133. body.LLW, body.RLW=add.Weld(body.LL, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.RL, body.Torso, CFrame.new(.5, -1.5, 0))
  134.  
  135. --Welds2--
  136. add.Weld(body.Head, head, nil)
  137. add.Weld(LA, body.LA, CFrame.new(0, -.5, 0))
  138. add.Weld(RA, body.RA, CFrame.new(0, -.5, 0))
  139. LH.Part0=body.Torso
  140. RH.Part0=body.Torso
  141.  
  142. --Sign--
  143. body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.2, 1, .2))
  144. add.Weld(body.Part, body.Torso, CFrame.new(.25, 0, -.45))
  145. body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.7, .2, .2))
  146. add.Weld(body.Part, body.Torso, CFrame.new(0, -.5, -.45))
  147.  
  148. --Animation--
  149. animate={
  150. ["Head"]=function(cf)
  151. body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
  152. end;
  153. ["Torso"]=function(cf)
  154. body.TorsoW.C1=(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  155. end;
  156. ["LA"]=function(cf)
  157. body.LAW.C1=CFrame.new(-1.5, .5, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  158. end;
  159. ["RA"]=function(cf)
  160. body.RAW.C1=CFrame.new(1.5, .5, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  161. end;
  162. ["LL"]=function(cf)
  163. LLW=add.Weld(LL, body.LL, CFrame.new(0, -1, 0))
  164. body.LLW.C1=CFrame.new(-.5, -1, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  165. c(function()
  166. wait()
  167. LLW:remove()
  168. end)
  169. end;
  170. ["RL"]=function(cf)
  171. RLW=add.Weld(RL, body.RL, CFrame.new(0, -1, 0))
  172. body.RLW.C1=CFrame.new(.5, -1, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  173. c(function()
  174. wait()
  175. RLW:remove()
  176. end)
  177. end;
  178. }
  179. --GuiLabels--
  180. obj.AL=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "Attack(Click)", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
  181. obj.AL2=add.Gui("TextLabel", obj.AL, "Really black", "Really black", "White", "Size18", "Block(F)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  182. obj.AL3=add.Gui("TextLabel", obj.AL2, "Really black", "Really black", "White", "Size18", "Smash(Q)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  183. obj.AL4=add.Gui("TextLabel", obj.AL3, "Really black", "Really black", "White", "Size18", "WinterSpike(E)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  184. obj.AL5=add.Gui("TextLabel", obj.AL4, "Really black", "Really black", "White", "Size18", "Blast(R)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  185. obj.AL6=add.Gui("TextLabel", obj.AL5, "Really black", "Really black", "White", "Size18", "WinterBoard(Z)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  186. --WeaponDesgin--
  187. for i, v in pairs(model2:children()) do
  188. if i~=1 then return end
  189. end
  190. obj.H=add.Part(model2, false, false, colorSet.Handle, 0, Vector3.new(.2, 5, .2))
  191. obj.HM=add.Mesh("CylinderMesh", obj.H)
  192. obj.HW=add.Weld(obj.H, torso, CFrame.new(0, 0, .5)*CFrame.Angles(0, 0, -math.rad(45)))
  193.  
  194. obj.Extra=add.Part(model2, false, false, colorSet.Handle, 0, Vector3.new(.2, 1.5, .2))
  195. obj.ExtraM=add.Mesh("CylinderMesh", obj.Extra)
  196. obj.ExtraW=add.Weld(obj.Extra, obj.H, CFrame.new(0, 2.6, .5)*CFrame.Angles(math.rad(45), 0, 0))
  197. obj.Con=add.Part(model2, false, false, colorSet.Handle, 0, Vector3.new(.25, .25, .25))
  198. obj.ConM=add.Mesh("SpecialMesh", obj.Con, nil, nil, "Sphere")
  199. obj.ConW=add.Weld(obj.Con, obj.Extra, CFrame.new(0, .75, 0))
  200.  
  201. obj.Extra=add.Part(model2, false, false, colorSet.Handle, 0, Vector3.new(.2, 1.5, .2))
  202. obj.ExtraM=add.Mesh("CylinderMesh", obj.Extra)
  203. obj.ExtraW=add.Weld(obj.Extra, obj.H, CFrame.new(0, 3.8, 1))
  204. obj.Con=add.Part(model2, false, false, colorSet.Handle, 0, Vector3.new(.25, .25, .25))
  205. obj.ConM=add.Mesh("SpecialMesh", obj.Con, nil, nil, "Sphere")
  206. obj.ConW=add.Weld(obj.Con, obj.Extra, CFrame.new(0, .75, 0))
  207.  
  208. obj.Extra=add.Part(model2, false, false, colorSet.Handle, 0, Vector3.new(.2, 1.5, .2))
  209. obj.ExtraM=add.Mesh("CylinderMesh", obj.Extra)
  210. obj.ExtraW=add.Weld(obj.Extra, obj.H, CFrame.new(0, 5, .5)*CFrame.Angles(-math.rad(45), 0, 0))
  211. obj.Con=add.Part(model2, false, false, colorSet.Handle, 0, Vector3.new(.25, .25, .25))
  212. obj.ConM=add.Mesh("SpecialMesh", obj.Con, nil, nil, "Sphere")
  213. obj.ConW=add.Weld(obj.Con, obj.Extra, CFrame.new(0, .75, 0))
  214.  
  215. obj.Extra=add.Part(model2, false, false, colorSet.Handle, 0, Vector3.new(.2, 1.5, .2))
  216. obj.ExtraM=add.Mesh("CylinderMesh", obj.Extra)
  217. obj.ExtraW=add.Weld(obj.Extra, obj.H, CFrame.new(0, 5, -.5)*CFrame.Angles(math.rad(45), 0, 0))
  218.  
  219. obj.H2=add.Part(model2, false, false, colorSet.Extra, 0, Vector3.new(.2, 5, .2))
  220. obj.H2M=add.Mesh("SpecialMesh", obj.H2, Vector3.new(.5, 5, .5), nil, "File", Meshes.Spring)
  221. obj.H2W=add.Weld(obj.H2, obj.H)
  222. end
  223.  
  224. ------------------------Functions------------------------
  225. function removeParts()
  226. pcall(function()
  227. if torso then
  228. LS.Part0=torso
  229. RS.Part0=torso LH.Part0=torso
  230. RH.Part0=torso
  231. torso.Transparency=0
  232. body.Torso.Transparency=1
  233. end
  234. player.PlayerGui[modelName]:remove()
  235. for i, v in pairs(model:children()) do
  236. v:remove()
  237. end
  238. end)
  239. end
  240. function play(soundid, pitch, vol)
  241. local sound=add.Sound(workspace, soundid, pitch or 1, volume or 1)
  242. sound:play()
  243. s(function() wait(5) sound:remove() end)
  244. end
  245. function fade(part, incr)
  246. if part:isA("BasePart") then
  247. for i=part.Transparency, 1, incr do wait() part.Transparency=i end
  248. elseif part:isA("Model") then
  249. for i, v in pairs(part:children() or part) do
  250. if v:isA("BasePart") then
  251. for i=part.Transparency, 1, incr do wait() v.Transparency=i end
  252. end
  253. end
  254. end
  255. end
  256. function appear(part, incr)
  257. if part:isA("BasePart") then
  258. for i=part.Transparency, 0, -incr do wait() part.Transparency=i end
  259. elseif part:isA("Model") then
  260. for i, v in pairs(part:children() or part) do
  261. if v:isA("BasePart") then
  262. for i=part.Transparency, 0, -incr do wait() v.Transparency=i end
  263. end
  264. end
  265. end
  266. end
  267. function computePos(pos, pos2)
  268. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  269. return CFrame.new(pos, pos3)
  270. end
  271. function rayCast(pos, dir, max, ingore)
  272. return workspace:findPartOnRay(Ray.new(pos, dir.unit*(max or 9999)), ignore)
  273. end
  274. function nearPos(pos, dis)
  275. local temp
  276. local distance=dis
  277. for i, v in pairs(workspace:children()) do
  278. if v:isA("Model") then
  279. temp=v:findFirstChild("Torso")
  280. local humanoid=v:findFirstChild("Humanoid")
  281. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  282. distance=(temp.CFrame.p-pos).magnitude
  283. return temp.Parent
  284. end
  285. end
  286. end
  287. end
  288. function lightningGen(startPos, endPos, col)
  289. local magnitude=(startPos-endPos).magnitude
  290. local distance=(startPos+endPos)/2
  291. local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
  292. local startPosProx=startPos
  293. for i=1, 9 do
  294. local startPosProx2=startPosProx local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  295. local findSize=pattern.Size.z/10 local findOffSet=pattern.CFrame.lookVector*-1
  296. local compute=i*findSize*findOffSet local newStartPos=startPos
  297. local newEndPos=CFrame.new(random+compute+newStartPos).p
  298. local magnitude=(startPosProx2-newEndPos).magnitude
  299. local distance=(startPosProx2+newEndPos)/2
  300. local lightning=add.Part(workspace, true, false, col or "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
  301. s(function()
  302. fade(lightning, .1) lightning:remove()
  303. end)
  304. startPosProx=newEndPos
  305. end
  306. pattern:remove()
  307. end
  308. function trail(pos, cf, col, thick)
  309. onTrail=true
  310. s(function()
  311. local old=(pos.CFrame*(cf or CFrame.new())).p
  312. while onTrail do wait()
  313. local new=(pos.CFrame*(cf or CFrame.new())).p
  314. local mag=(old-new).magnitude
  315. local dis=(old+new)/2 local trail=add.Part(char, true, false, col or "White", 0, Vector3.new(1, mag, 1), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0))
  316. trail.Name="Effect" local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(thick or 1, 1, thick or 1), nil, nil)
  317. old=new
  318. s(function()
  319. for i=1, 0, -.1 do wait() tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i) end trail:remove()
  320. end)
  321. s(function()
  322. fade(trail, .1)
  323. end)
  324. end
  325. end)
  326. end
  327. function stickHit(from, to)
  328. local stickW=add.Weld(from, to, to.CFrame:inverse()*from.CFrame)
  329. stickW.C0=from.CFrame:inverse()*from.CFrame
  330. return stickW
  331. end
  332. function glowMesh(prt, size, speed)
  333. local glow=prt:clone() add.Weld(prt, glow)
  334. glow.Parent=workspace
  335. glow.Anchored=false
  336. glow.CanCollide=false
  337. for i, v in pairs(glow:children()) do
  338. if v:isA("SpecialMesh") or v:isA("BlockMesh") or v:isA("CylinderMesh") then
  339. s(function()
  340. for i=0, size, speed do wait() v.Scale=v.Scale+Vector3.new(i, i, i) end
  341. end)
  342. s(function()
  343. fade(glow, .1) glow:remove()
  344. end)
  345. end
  346. end
  347. end
  348. function charge(prt, cf, col, start, endval, incr)
  349. local aura=add.Part(workspace, false, false, col or "Bright yellow", 0, Vector3.new(1, 1, 1), cf or torso.CFrame)
  350. local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(start, .5, start), nil, "File") auraM.MeshId=Meshes.Charge
  351. add.Weld(aura, prt or torso, cf*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0))
  352. s(function()
  353. for i=start, endval, incr do wait()
  354. auraM.Scale=Vector3.new(i, auraM.Scale.y, i)
  355. end
  356. aura:remove()
  357. end)
  358. s(function()
  359. fade(aura, .1)
  360. end)
  361. end
  362. function makeCircle(prt, prts, dis, incr)
  363. local radius=dis+(prts+incr)
  364. for i=1, prts do
  365. local prt2=prt:clone()
  366. prt2.Parent=model
  367. local x = math.sin((360/prts + 360/prts*i)/(180/math.pi))*radius
  368. local y = 0
  369. local z = math.cos((360/prts + 360/prts*i)/(180/math.pi))*radius
  370. prt2.CFrame=prt.CFrame:toWorldSpace(CFrame.new(x,y,z))
  371. prt:remove()
  372. return prt2
  373. end
  374. end
  375. function antiExplosion(model)
  376. local ffs={}
  377. for i, v in pairs(model:children()) do
  378. pcall(function()
  379. local ff2=Instance.new("ForceField", v.Handle)
  380. table.insert(ffs, ff2) end)
  381. if v:isA("BasePart") then
  382. local ff=Instance.new("ForceField", v)
  383. table.insert(ffs, ff)
  384. end
  385. end
  386. return ffs
  387. end
  388. function dmgHit(prt)
  389. prt.Touched:connect(function(h)
  390. if onKey==true and h.Parent:findFirstChild("Humanoid") and onHit==false and h.Parent~=char then
  391. onHit=true
  392. local fakeM=Instance.new("Model", workspace)
  393. fakeM.Name=-dmg
  394. local hHuman=h.Parent:findFirstChild("Humanoid")
  395. hHuman.Health=hHuman.Health-dmg
  396. local hTorso=h.Parent:findFirstChild("Torso")
  397. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  398. local label=add.Part(fakeM, true, false, "Bright red", 0, Vector3.new(.5, .5, .5), h.CFrame*CFrame.new(math.random(-4, 4), 4, math.random(-4, 4))) label.Name="Head"
  399. --Freeze
  400. play(Sounds.Abscond, 1, 1)
  401. local f=add.Part(workspace, true, false, "Really black", .5, Vector3.new(6, 6, 6), hTorso.CFrame) hTorso.Anchored=true
  402. s(function() for i=.5, 1, .01 do wait() f.Transparency=i end f:remove() hTorso.Anchored=false end)
  403. game.Debris:addItem(fakeM, 1)
  404. wait(.1)
  405. onHit=false
  406. end
  407. end)
  408. end
  409. function blockHit(prt)
  410. prt.Touched:connect(function(h)
  411. if onKey==true and not h.Parent:findFirstChild("Humanoid") and onHit==false and h.Parent~=char then
  412. onHit=true
  413. play(Sounds.Hit, 1, 1)
  414. print'Blocked'
  415. local bp=Instance.new("BodyPosition", h) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=(CFrame.new(torso.CFrame.p, h.CFrame.p)*CFrame.new(0, 0, -math.random(100, 200))).p
  416. local bg=Instance.new("BodyGyro", h) bg.maxTorque=Vector3.new(math.huge, math.huge, math.huge) bg.cframe=CFrame.new(h.CFrame.p, torso.CFrame.p)
  417. game.Debris:addItem(bp, .2) game.Debris:addItem(bg, .2)
  418. wait(.1)
  419. onHit=false
  420. end
  421. end)
  422. end
  423. function idle()
  424. animate.LA(CFrame.Angles(-math.rad(15), 0, -math.rad(15)))
  425. animate.RA(CFrame.Angles(math.rad(15), 0, math.rad(15)))
  426. end
  427. function Smash()
  428. humanoid.WalkSpeed=0
  429. for i=0, 1, .1 do wait()
  430. animate.Torso(CFrame.new(0, 5*i, 0))
  431. animate.LA(CFrame.new(.5*i, 1*i, -.5*i)*CFrame.Angles(math.rad(135)*i, 0, math.rad(45)*i))
  432. animate.RA(CFrame.new(-.5*i, 1*i, -.5*i)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i))
  433. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.pi/2, -math.rad(45)*i, 0)
  434. end
  435. play(Sounds.Cannon, .3, 1)
  436. for i=0, 1, .2 do wait()
  437. animate.Torso(CFrame.new(0, 5-6*i, 0))
  438. animate.LA(CFrame.new(.5, 1-1.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, math.rad(45)))
  439. animate.RA(CFrame.new(-.5, 1-1.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, -math.rad(45)))
  440. animate.LL(CFrame.Angles(-math.rad(90)*i, 0, 0))
  441. animate.RL(CFrame.new(0, 1*i, -1*i))
  442. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.pi/2, -math.rad(45), 0)
  443. end
  444. local b=add.Part(workspace, true, false, "Really black", .5, Vector3.new(80, 80, 80), torso.CFrame*CFrame.new(0, -3, 0)*CFrame.Angles(-math.rad(90), 0, 0)+torso.CFrame.lookVector*1.5)
  445. local bM=add.Mesh("SpecialMesh", b, Vector3.new(1, 1, 1), nil, nil, Meshes.Ring)
  446. local b2=add.Part(workspace, true, false, "Really black", .5, Vector3.new(80, 80, 80), torso.CFrame*CFrame.new(0, -3, 0)+torso.CFrame.lookVector*1.5)
  447. local b2M=add.Mesh("SpecialMesh", b2, Vector3.new(1, 2, 1), nil, nil, Meshes.Crown)
  448. dmgHit(b) dmgHit(b2)
  449. s(function()
  450. for i=1, 80, 2 do wait()
  451. bM.Scale=Vector3.new(i, i, i)
  452. b2M.Scale=Vector3.new(i, 2, i)
  453. end
  454. b:remove() b2:remove()
  455. end)
  456. for i=1, 0, -.1 do wait()
  457. animate.Torso(CFrame.new(0, -1*i, 0))
  458. animate.LA(CFrame.new(.5*i, -.5*i, -.5*i)*CFrame.Angles(math.rad(90*i), 0, math.rad(45)*i))
  459. animate.RA(CFrame.new(-.5*i, -.5*i, -.5*i)*CFrame.Angles(math.rad(90*i), 0, -math.rad(45)*i))
  460. animate.LL(CFrame.Angles(-math.rad(90)*i, 0, 0))
  461. animate.RL(CFrame.new(0, 1*i, -1*i))
  462. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.pi/2, -math.rad(45)*i, 0)
  463. end
  464. humanoid.WalkSpeed=16
  465. idle()
  466. end
  467. function WinterSpike()
  468. humanoid.WalkSpeed=0
  469. local bg=Instance.new("BodyGyro", torso) bg.maxTorque=Vector3.new(math.huge, math.huge, math.huge) bg.D=100
  470. for i=0, 1, .05 do wait()
  471. play(Sounds.Suirize, 1, 1)
  472. bg.cframe=computePos(torso.CFrame.p, mouse.Hit.p)
  473. animate.RA(CFrame.Angles(math.rad(180)*i, 0, 0))
  474. local b=add.Part(workspace, true, false, "Really black", .5, Vector3.new(10, 10, 10), torso.CFrame*CFrame.new(0, -3, 0)*CFrame.Angles(-math.rad(90), 0, 0)+torso.CFrame.lookVector*(120*i))
  475. local bM=add.Mesh("SpecialMesh", b, Vector3.new(10, 10, 10), nil, nil, Meshes.Ring)
  476. local b2=add.Part(workspace, true, false, "Really black", .5, Vector3.new(10, 10, 10), torso.CFrame*CFrame.new(0, -3, 0)+torso.CFrame.lookVector*(120*i))
  477. local b2M=add.Mesh("SpecialMesh", b2, Vector3.new(1, 2, 1), nil, nil, Meshes.Crown)
  478. local b3=add.Part(workspace, true, false, "Really black", .5, Vector3.new(1, .8, 4), torso.CFrame*CFrame.new(0, -3, 0)*CFrame.Angles(-math.rad(90), 0, 0)+torso.CFrame.lookVector*(120*i))
  479. local b3M=add.Mesh("SpecialMesh", b3, Vector3.new(1, 1, 1), nil, nil, Meshes.Sword)
  480. dmgHit(b) dmgHit(b2) dmgHit(b3)
  481. s(function()
  482. for i=1, 10, .5 do wait()
  483. b2M.Scale=Vector3.new(i, 2, i)
  484. b3.CFrame=b3.CFrame*CFrame.new(0, 0, i/20)
  485. end
  486. b:remove() b2:remove() b3:remove()
  487. end)
  488. end
  489. bg:remove()
  490. for i=1, 0, -.1 do wait()
  491. animate.RA(CFrame.Angles(math.rad(180)*i, 0, 0))
  492. end
  493. humanoid.WalkSpeed=16
  494. idle()
  495. end
  496. function Blast()
  497. humanoid.WalkSpeed=0
  498. local bg=Instance.new("BodyGyro", torso) bg.maxTorque=Vector3.new(math.huge, math.huge, math.huge) bg.D=100
  499. for i=0, 1, .1 do wait()
  500. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  501. animate.Head(CFrame.Angles(0, -math.rad(45)*i, 0))
  502. animate.RA(CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i))
  503. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.rad(90+45*i), 0, 0)
  504. end
  505. local pressure=0
  506. play(Sounds.Heli, .5, 1)
  507. if pressure>50 then onHold=false end
  508. while onHold do wait(.1)
  509. pressure=pressure+.1
  510. dmg=dmg+.5
  511. local ss=add.Part(workspace, true, false, "Really black", 0, Vector3.new(pressure, pressure, pressure), torso.CFrame+torso.CFrame.lookVector*10)
  512. local ssM=add.Mesh("SpecialMesh", ss, nil, nil, "Sphere")
  513. local e=add.Part(workspace, false, false, "Really black", 0, Vector3.new(2, 2, 2), ss.CFrame*CFrame.new(math.random(-pressure-10, pressure+10), math.random(-pressure-10, pressure+10), math.random(-pressure-10, pressure+10))*CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
  514. local bp=Instance.new("BodyPosition", e) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=ss.Position
  515. s(function()
  516. for i=0, 1, .1 do wait()
  517. ss.Transparency=i
  518. e.Transparency=i
  519. end
  520. ss:remove() e:remove()
  521. end)
  522. bg.cframe=computePos(torso.CFrame.p, mouse.Hit.p)
  523. end
  524. local ss=add.Part(workspace, false, false, "Really black", .5, Vector3.new(pressure, pressure, pressure), torso.CFrame+torso.CFrame.lookVector*10)
  525. local ssM=add.Mesh("SpecialMesh", ss, nil, nil, "Sphere")
  526. trail(ss, nil, "Really black", pressure)
  527. local bf=Instance.new("BodyForce", ss) bf.force=Vector3.new(0, ss:getMass()*196.25, 0)
  528. local bv=Instance.new("BodyVelocity", ss) bv.maxForce=bv.maxForce*math.huge bv.velocity=ss.CFrame.lookVector*100
  529. ss.Touched:connect(function(h)
  530. if h.Parent:findFirstChild("Humanoid") and onHit==false and h.Parent~=char then
  531. onHit=true
  532. local fakeM=Instance.new("Model", workspace)
  533. fakeM.Name=-dmg
  534. local hHuman=h.Parent:findFirstChild("Humanoid")
  535. hHuman.Health=hHuman.Health-dmg
  536. local hTorso=h.Parent:findFirstChild("Torso")
  537. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  538. local label=add.Part(fakeM, true, false, "Bright red", 0, Vector3.new(.5, .5, .5), h.CFrame*CFrame.new(math.random(-4, 4), 4, math.random(-4, 4))) label.Name="Head"
  539. --Freeze
  540. play(Sounds.Abscond, 1, 1)
  541. local f=add.Part(workspace, true, false, "Really black", .5, Vector3.new(6, 6, 6), hTorso.CFrame) hTorso.Anchored=true
  542. s(function() for i=.5, 1, .01 do wait() f.Transparency=i end f:remove() hTorso.Anchored=false end)
  543. game.Debris:addItem(fakeM, 1)
  544. wait(.1)
  545. onHit=false
  546. end
  547. end)
  548. s(function() wait(5) onTrail=false ss:remove() dmg=math.random(10, 15) end)
  549. bg:remove()
  550. for i=1, 0, -.1 do wait()
  551. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  552. animate.Head(CFrame.Angles(0, -math.rad(45)*i, 0))
  553. animate.RA(CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i))
  554. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.rad(90+45*i), 0, 0)
  555. end
  556. humanoid.WalkSpeed=16
  557. idle()
  558. end
  559. function Block()
  560. for i=0, 1, .1 do wait()
  561. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  562. animate.Head(CFrame.Angles(0, -math.rad(45)*i, 0))
  563. animate.RA(CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i))
  564. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.rad(90+45*i), 0, 0)
  565. end
  566. local bg=Instance.new("BodyGyro", torso) bg.maxTorque=Vector3.new(math.huge, math.huge, math.huge) bg.D=100
  567. local cf=torso.CFrame*CFrame.Angles(-math.rad(90), 0, 0)+torso.CFrame.lookVector*8
  568. local shield=add.Part(workspace, false, true, "Really black", .2, Vector3.new(4, 4, 4.5), cf)
  569. local shieldM=add.Mesh("SpecialMesh", shield, shield.Size, nil, nil, Meshes.Shield)
  570. local shieldW=add.Weld(shield, torso, CFrame.Angles(-math.rad(90), 0, 0)*CFrame.new(0, 8, 0))
  571. blockHit(shield)
  572. s(function()
  573. while onBlock do wait()
  574. bg.cframe=computePos(torso.CFrame.p, mouse.Hit.p)
  575. end
  576. end)
  577. while onBlock do wait(.5)
  578. glowMesh(shield, 1, .1)
  579. end
  580. wait(.5)
  581. shield:remove()
  582. bg:remove()
  583. for i=1, 0, -.1 do wait()
  584. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  585. animate.Head(CFrame.Angles(0, -math.rad(45)*i, 0))
  586. animate.RA(CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i))
  587. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.rad(90+45*i), 0, 0)
  588. end
  589. idle()
  590. end
  591. function WinterBoard()
  592. for i=0, 1, .1 do wait()
  593. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  594. animate.Head(CFrame.Angles(0, -math.rad(45)*i, 0))
  595. animate.RA(CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i))
  596. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.rad(90+45*i), 0, 0)
  597. end
  598. local flyboard=Instance.new("Model", char) flyboard.Name="WinterBoard"
  599. obj.Board=add.Part(flyboard, false, false, "Really black", 0, Vector3.new(2, .5, 4))
  600. obj.BoardW=add.Weld(obj.Board, torso, CFrame.new(0, -3, 0))
  601. obj.W=add.Wedge(flyboard, false, false, "Really black", 0, Vector3.new(.5, 4, 1))
  602. obj.WW=add.Weld(obj.W, obj.Board, CFrame.new(-1.5, 0, 0)*CFrame.Angles(0, math.pi/2, -math.pi/2))
  603. obj.W=add.Wedge(flyboard, false, false, "Really black", 0, Vector3.new(.5, 4, 1))
  604. obj.WW=add.Weld(obj.W, obj.Board, CFrame.new(1.5, 0, 0)*CFrame.Angles(0, -math.pi/2, math.pi/2))
  605. obj.W=add.Wedge(flyboard, false, false, "Really black", 0, Vector3.new(.5, 2, 1))
  606. obj.WW=add.Weld(obj.W, obj.Board, CFrame.new(-1, 0, 2.5)*CFrame.Angles(0, math.pi, -math.pi/2))
  607. obj.W=add.Wedge(flyboard, false, false, "Really black", 0, Vector3.new(.5, 2, 1))
  608. obj.WW=add.Weld(obj.W, obj.Board, CFrame.new(1, 0, 2.5)*CFrame.Angles(0, math.pi, math.pi/2))
  609. obj.S=add.Part(flyboard, false, false, "Really black", 0, Vector3.new(.5, .5, .5))
  610. obj.SM=add.Mesh("CylinderMesh", obj.S)
  611. obj.SW=add.Weld(obj.S, obj.Board, CFrame.new(1, 0, 2.5)*CFrame.Angles(math.pi/2, 0, 0))
  612. obj.S2=add.Part(flyboard, false, false, "Really black", 0, Vector3.new(.5, .5, .5))
  613. obj.S2M=add.Mesh("CylinderMesh", obj.S2)
  614. obj.S2W=add.Weld(obj.S2, obj.Board, CFrame.new(-1, 0, 2.5)*CFrame.Angles(math.pi/2, 0, 0))
  615. obj.sS=add.Part(flyboard, false, false, "White", 0, Vector3.new(.45, .55, .45))
  616. obj.sSM=add.Mesh("CylinderMesh", obj.sS)
  617. obj.sSW=add.Weld(obj.sS, obj.Board, CFrame.new(1, 0, 2.5)*CFrame.Angles(math.pi/2, 0, 0))
  618. obj.sS2=add.Part(flyboard, false, false, "White", 0, Vector3.new(.45, .55, .45))
  619. obj.sS2M=add.Mesh("CylinderMesh", obj.sS2)
  620. obj.sS2W=add.Weld(obj.sS2, obj.Board, CFrame.new(-1, 0, 2.5)*CFrame.Angles(math.pi/2, 0, 0))
  621. trail(obj.S, nil, "Really black", .5)
  622. trail(obj.S2, nil, "Really black", .5)
  623. local bg=Instance.new("BodyGyro", torso) bg.maxTorque=Vector3.new(math.huge, math.huge, math.huge) bg.D=500
  624. local bv=Instance.new("BodyVelocity", torso) bv.maxForce=bv.maxForce*math.huge
  625. while onHold do wait()
  626. bv.velocity=torso.CFrame.lookVector*50
  627. bg.cframe=mouse.Hit*CFrame.Angles(0, 0, torso.RotVelocity.y*.5)
  628. end
  629. bg:remove() bv:remove()
  630. flyboard:remove()
  631. onTrail=false
  632. for i=1, 0, -.1 do wait()
  633. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  634. animate.Head(CFrame.Angles(0, -math.rad(45)*i, 0))
  635. animate.RA(CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i))
  636. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.rad(90+45*i), 0, 0)
  637. end
  638. idle()
  639. end
  640. function keyDown(key)
  641. local key=key:lower()
  642. if key=="q" and not onKey then
  643. onKey=true
  644. Smash()
  645. onKey=false
  646. end
  647. if key=="e" and not onKey then
  648. onKey=true
  649. WinterSpike()
  650. onKey=false
  651. end
  652. if key=="r" and not onKey then
  653. onKey=true onHold=true
  654. Blast()
  655. onKey=false
  656. end
  657. if key=="f" and not onKey then
  658. onKey=true onBlock=true
  659. Block()
  660. onKey=false
  661. end
  662. if key=="z" and not onKey then
  663. onKey=true onHold=true
  664. WinterBoard()
  665. onKey=false
  666. end
  667. end
  668. function keyUp(key)
  669. local key=key:lower()
  670. if key=="r" and onKey and onHold then onHold=false end
  671. if key=="f" and onKey and onBlock then onBlock=false end
  672. if key=="z" and onKey and onHold then onHold=false end
  673. end
  674. bin.Selected:connect(function(m)
  675. onKey=false
  676. mouse=m
  677. createParts()
  678. for i=0, 1, .1 do wait()
  679. animate.RA(CFrame.Angles(-math.rad(25)*i, 0, -math.rad(45)*i))
  680. end
  681. obj.HW.Part1=RA
  682. obj.HW.C1=CFrame.new(0, -1, 0)*CFrame.Angles(-math.pi/2, 0, 0)
  683. for i=1, 0, -.1 do wait()
  684. animate.RA(CFrame.Angles(-math.rad(25)*i, 0, -math.rad(45)*i))
  685. end
  686. mouse.KeyDown:connect(keyDown)
  687. mouse.KeyUp:connect(keyUp)
  688. idle()
  689. end)
  690. bin.Deselected:connect(function()
  691. for i=0, 1, .1 do wait()
  692. animate.RA(CFrame.Angles(-math.rad(25)*i, 0, -math.rad(45)*i))
  693. end
  694. obj.HW.Part1=torso
  695. obj.HW.C1=CFrame.new(0, 0, .5)*CFrame.Angles(0, 0, -math.rad(45))
  696. for i=1, 0, -.1 do wait()
  697. animate.RA(CFrame.Angles(-math.rad(25)*i, 0, -math.rad(45)*i))
  698. end
  699. removeParts()
  700. end)
  701. --mediafire?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement