EdwardGaming

Untitled

Sep 10th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.75 KB | None | 0 0
  1.  
  2. ----------mediafire-------------------------wait()
  3. Workspace.CurrentCamera.CameraType = 4
  4. script.Parent = nil
  5. name = 'Lightning Blade'
  6. attacking = false
  7. PLAYERS = Game:service'Players'
  8. ply = PLAYERS.LocalPlayer
  9. char = ply.Character
  10. torso = char.Torso
  11.  
  12. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  13. mcos,msin,mtan,md,mr = math.cos,math.sin,math.tan,math.rad,math.random
  14. debris = game:service'Debris'
  15. floatforce = 196.25
  16.  
  17. rs,ls = torso['Right Shoulder'],torso['Left Shoulder']
  18. rarm = char["Right Arm"]
  19. larm = char["Left Arm"]
  20. rleg = char["Right Leg"]
  21. lleg = char["Left Leg"]
  22.  
  23. rs = torso["Right Shoulder"]
  24. ls = torso["Left Shoulder"]
  25. rh = torso["Right Hip"]
  26. lh = torso["Left Hip"]
  27. neck = torso["Neck"]
  28. rw,lw = nil,nil
  29. rhw,lhw = nil,nil
  30.  
  31. asset = 'rbxassetid://'
  32. normposr = cfn(1.5,.5,0)
  33. normposl = cfn(-1.5,.5,0)
  34. normposl2 = cfn(.5,-1.5,0)
  35. normposr2 = cfn(-.5,-1.5,0)
  36. normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
  37.  
  38. pcall(function() char.HAWK:Destroy() end)
  39. m = Instance.new("Model",char) m.Name = 'HAWK'
  40.  
  41. for i = 0,1 do --------UTILITIES START-------
  42. function fade(a,b,c,d)
  43. if type(a) ~= 'table' then
  44. for i = b,c,d do
  45. a.Transparency = i
  46. wait()
  47. end
  48. else
  49. for i = b,c,d do
  50. for _,v in pairs(a) do
  51. v.Transparency = i
  52. end
  53. wait()
  54. end
  55. end
  56. end
  57.  
  58. function FilterTab(tab,what)
  59. Result = {}
  60. local function filter2(a)
  61. if type(a) == 'string' then
  62. return a
  63. else
  64. return a.className
  65. end
  66. end
  67.  
  68. for i,v in pairs(tab) do
  69. if type(what) ~= 'table' then
  70. if v:IsA(filter2(what)) then
  71. table.insert(Result,v)
  72. end
  73. else
  74. for i,q in pairs(what) do
  75. if v:IsA(filter2(q)) then
  76. table.insert(Result,v)
  77. end
  78. end
  79. end
  80. end
  81. return Result
  82. end
  83.  
  84.  
  85. function colorslide(object,targetcolor,bool)
  86. local function a()
  87. if type(object) ~= 'table' then
  88. rgb1,rgb2 =object.Color, BrickColor.new(targetcolor).Color
  89. for i = 0,1,.2 do
  90. object.Color = Color3.new(
  91. (rgb1.r * (1-i))+(rgb2.r * i),
  92. (rgb1.g * (1-i))+(rgb2.g * i),
  93. (rgb1.b * (1-i))+(rgb2.b * i)
  94. )
  95. wait()
  96. end
  97. object.Color = rgb2
  98. else
  99. rgb1,rgb2 = object[1].Color,BrickColor.new(targetcolor).Color
  100. for i = 0,1,.2 do
  101. for _,v in pairs(object) do
  102. v.Color = Color3.new(
  103. (rgb1.r * (1-i))+(rgb2.r * i),
  104. (rgb1.g * (1-i))+(rgb2.g * i),
  105. (rgb1.b * (1-i))+(rgb2.b * i)
  106. )
  107. end
  108. wait()
  109. end
  110. for _,v in pairs(object) do v.Color = rgb2 end
  111. end
  112. end
  113. if bool then T.C(a) else a() end
  114. end
  115.  
  116. function l(a,x,y,z,b)
  117. if b == nil then
  118. return a.CFrame*cfn(x,y,z)
  119. else
  120. return a*cfn(x,y,z)
  121. end
  122. end
  123. function zeero(mot,a) local oldvelocity = mot.MaxVelocity mot.MaxVelocity = 1.7E+308
  124. if a == nil then mot.DesiredAngle = 0
  125. else mot.DesiredAngle = a
  126. end
  127. while mot.DesiredAngle ~= mot.CurrentAngle do wait() end
  128. mot.MaxVelocity = oldvelocity
  129. end
  130. function ventta(mot)
  131. while mot.DesiredAngle ~= mot.CurrentAngle do wait() end
  132. end
  133.  
  134. function genNew(ClassName, Parent, Properties)
  135. local nObj = Instance.new(ClassName, Parent)
  136. if Properties["FormFactor"] then
  137. nObj["FormFactor"] = Properties["FormFactor"]
  138. end
  139. for Prop, Value in pairs(Properties) do
  140. nObj[Prop] = Value
  141. end
  142. return nObj
  143. end
  144.  
  145. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  146. if typee == 'wedge' then
  147. c = Instance.new("WedgePart",m)
  148. elseif typee == 'seat' then
  149. c = Instance.new("Seat",m)
  150. elseif typee == 'vseat' then
  151. c = Instance.new("VehicleSeat",m)
  152. else
  153. c = Instance.new("Part",m)
  154. end
  155. c.TopSurface,c.BottomSurface = 0,0
  156. c.Locked = true
  157. c.formFactor = "Custom"
  158. c.Size = Vector3.new(x,y,z)
  159. if color ~= "random" then
  160. c.BrickColor = BrickColor.new(color)
  161. else c.BrickColor = BrickColor:random()
  162. end
  163. c.Transparency = transparency
  164. c.CanCollide = cancollide
  165. if anchored ~= nil then c.Anchored = anchored end
  166. if parent ~= nil then c.Parent = parent end
  167. return c
  168. end
  169. ,
  170. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  171. ,
  172. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  173. w = Instance.new("Motor",m)
  174. if parent ~= nil then w.Parent = parent end
  175. w.Part0,w.Part1 = part0,part1
  176. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  177. w.MaxVelocity = .1
  178. return w
  179. end
  180. ,
  181. ["BG"] = function(parent)
  182. local c = Instance.new("BodyGyro",parent)
  183. c.P = 20e+003
  184. c.cframe = parent.CFrame
  185. c.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  186. return c
  187. end
  188. ,
  189. ["BP"] = function(parent,position)
  190. local bp = Instance.new("BodyPosition",parent)
  191. bp.maxForce = Vector3.new()*math.huge
  192. bp.position = position
  193. return bp
  194. end
  195. ,
  196. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  197. f = Instance.new("Fire",parent)
  198. f.Size = size
  199. f.Heat = heat
  200. if enabled ~= nil then f.Enabled = enabled end
  201. if color ~= nil then f.Color = BrickColor.new(color).Color end
  202. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  203. return f
  204. end
  205. ,
  206.  
  207. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  208. if meshid == "cylinder" then
  209. mesh = Instance.new("CylinderMesh",parent)
  210. mesh.Scale = Vector3.new(x,y,z)
  211. return mesh
  212. elseif meshid == 'block' then
  213. mesh = Instance.new("SpecialMesh",parent)
  214. mesh.MeshId = 'rbxassetid://9856898'
  215. mesh.Scale = v3n(x*parent.Size.x,y*parent.Size.y,z*parent.Size.z)*2
  216. if meshtexture then mesh.TextureId = 'rbxassetid://'..textureids[meshtexture] end
  217. return mesh
  218. end
  219. mesh = Instance.new("SpecialMesh",parent)
  220.  
  221. if meshid == 'wedge' then
  222. mesh.MeshType = 'Wedge'
  223. elseif meshid == 'sphere' then
  224. mesh.MeshType = 3
  225. elseif type(meshid) == "number" then
  226. mesh.MeshId = "rbxassetid://"..meshid
  227. else
  228. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  229. end
  230. mesh.Scale = Vector3.new(x,y,z)
  231. if meshtexture then
  232. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  233. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  234. end
  235. return mesh
  236. end,
  237.  
  238. ["Dec"] = function(parent,face,id,transparency)
  239. c = Instance.new("Decal",parent)
  240. c.Face = face
  241. c.Texture = id
  242. if transparency then c.Transparency = transparency end
  243. return c
  244. end
  245. }
  246.  
  247. function FindHumanoid(a,b)
  248. local hum
  249. for i,v in pairs(a:children()) do
  250. if v:IsA'Humanoid' then
  251. if not b then
  252. if v.Parent ~= char then hum = v break end
  253. else hum = v break end
  254. end
  255. end
  256. return hum
  257. end
  258. function damage(hit,amount,delay,color) ---- VAHINKO DAMAGE
  259. hum = FindHumanoid(hit)
  260. if hum then
  261. if delay then
  262. local found = CheckTag(hum,'tag')
  263. if not found then
  264. local tag = AddTag(hum,'tag')
  265. debris:AddItem(tag,delay)
  266. hum.Health = hum.Health - amount
  267. local hed = hum.Parent.Head
  268. local bbg = genNew('BillboardGui',hed,{
  269. Adornee = hed;
  270. Size = udim(3,3);
  271. StudsOffset = v3n(mr(-2,2),mr(3,5),mr(-2,2));
  272. })
  273.  
  274. local img = genNew('TextLabel',bbg,{
  275. Text = amount;
  276. TextScaled = true;
  277. TextColor = bcol(color or 'White');
  278. Size = UDim2.new(3,0,3,0);
  279. BackgroundTransparency = 1;
  280. })
  281. T.C(function() wait(.1) for i = 3,.1,-.1 do bbg.Size = udim(i,i) wait() end bbg:Destroy() end)
  282.  
  283. end
  284. else hum.Health = hum.Health - amount
  285. end
  286.  
  287. return hum
  288. end
  289. end
  290.  
  291. rtorso = torso
  292.  
  293. function scale(msh,str,a,b,c,bool)
  294. local amount
  295. local dims = {x=0,y=0,z=0}
  296. local func = function()
  297. for word in str:gmatch('%d+') do
  298. amount = word
  299. end
  300. amount = not amount and 1 or amount
  301. for word in str:gmatch('%w') do
  302. if word == 'x' or word == 'y' or word == 'z' then
  303. dims[word] = amount
  304. end
  305. end
  306. if type(mesh) ~= 'table' then
  307. for i = a,b,c or .01 do
  308. msh.Scale = v3n(dims.x*i,dims.y*i,dims.z*i)
  309. wait()
  310. end
  311. else
  312. for i = a,b,c or .01 do
  313. for _,v in pairs(mesh) do
  314. v.Scale = v3n(dims.x*i,dims.y*i,dims.z*i)
  315. end
  316. wait()
  317. end
  318. end
  319. end
  320. if bool then T.C(func) else func() end
  321. end
  322.  
  323.  
  324. lock = {["R"] =
  325. function(a)
  326. if a == 1 then
  327. rabrick = T.P(1.1,1.1,1.1,"Dark stone grey",1,false,false)
  328. rw = T.W(rabrick,rtorso,1.5,.5,0,0,0,0)
  329. T.W(rarm,rabrick,0,-.5,0,0,0,0)
  330. elseif a == 2 then
  331. rlbrick = T.P(1,1,1,"Dark stone grey",1,false,false)
  332. rhw = T.W(rlbrick,rtorso,.5,-1.5,0,0,0,0)
  333. T.W(rleg,rlbrick,0,-.5,0,0,0,0)
  334. elseif a == 0 then
  335. rs.Parent = rtorso
  336. rw.Parent = nil
  337. rabrick:Destroy() rabrick = nil
  338. elseif a == -1 then
  339. rhw.Parent = nil
  340. rh.Parent = rtorso
  341. rlbrick:Destroy() rlbrick = nil
  342. end
  343. end
  344. , ["L"] = function(a)
  345. if a == 1 then
  346. labrick = T.P(1,1,1,"Dark stone grey",1,false,false)
  347. lw = T.W(labrick,rtorso,-1.5,.5,0,0,0,0)
  348. T.W(larm,labrick,0,-.5,0,0,0,0)
  349. elseif a == 2 then
  350. llbrick = T.P(1,1,1,"Dark stone grey",1,false,false)
  351. lhw = T.W(llbrick,rtorso,-.5,-1.5,0,0,0,0)
  352. T.W(lleg,llbrick,0,-.5,0,0,0,0)
  353. elseif a == 0 then
  354. ls.Parent = rtorso
  355. lw.Parent = nil
  356. labrick:Destroy() labrick = nil
  357. elseif a == -1 then
  358. lhw.Parent = nil
  359. lh.Parent = rtorso
  360. llbrick:Destroy() llbrick = nil
  361. end
  362. end
  363. }
  364.  
  365. cfn,ang = CFrame.new,CFrame.Angles
  366. function spaas(position,radius,number,number2,color)
  367. mode = Instance.new("Model",m)
  368.  
  369. for i = 1,number2 do
  370. local pos = position+v3n(mr(-radius,radius),mr(-radius,radius),mr(-radius,radius))
  371. local mag = (position-pos).magnitude
  372.  
  373. local col = color or 'Toothpaste'
  374. local laz = T.P(.1,mag,.1,col,0,false,true,mode)
  375.  
  376. T.FM(laz,'cylinder',.3,1,.3)
  377. laz.CFrame = (cfn(position,pos)*cfn(0,0,-mag/2))*ang(math.pi/2,0,0)
  378.  
  379. cframe = (laz.CFrame*cfn(0,-mag/2,0)).p
  380. pos2 = cframe+v3n(mr(-radius,radius),mr(-radius,radius),mr(-radius,radius))
  381. mag2 = (cframe-pos2).magnitude
  382. local laz2 = T.P(.1,mag2,.1,col,0,false,true,mode)
  383. T.FM(laz2,'cylinder',.3,1,.3)
  384. laz2.CFrame = (cfn(cframe,pos2)*cfn(0,0,-mag2/2))*ang(math.pi/2,0,0)
  385.  
  386. previo = laz2
  387. for i = 1,number do
  388. cframe = (previo.CFrame*cfn(0,-mag/2,0)).p
  389. pos2 = cframe+v3n(mr(-radius,radius),mr(-radius,radius),mr(-radius,radius))
  390. mag2 = (cframe-pos2).magnitude
  391.  
  392. local laz2 = T.P(.1,mag2,.1,col,0,false,true,mode)
  393. T.FM(laz2,'cylinder',.3,1,.3)
  394. laz2.CFrame = (cfn(cframe,pos2)*cfn(0,0,-mag2/2))*ang(math.pi/2,0,0)
  395.  
  396. previo = laz2
  397. end
  398.  
  399. end
  400. debris:AddItem(mode,.1)
  401. return mode
  402. end
  403.  
  404. function lightning(startpos,endpos,times,offse,livetime,col)
  405. local curpos = startpos
  406. for i = 1,times do
  407. mag = (startpos-endpos).magnitude offs = {-offse,offse}
  408. offset = v3n(offs[mr(1,2)],offs[mr(1,2)],offs[mr(1,2)])
  409. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  410. apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  411. if times == i then
  412. mag2 = (curpos-endpos).magnitude
  413. laz.Size = v3n(.1,.1,mag2)
  414. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  415. else
  416. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  417. end
  418. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p debris:AddItem(laz,livetime)
  419. end
  420. end
  421.  
  422. ------MESHIDS---
  423. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  424. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  425. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  426. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  427. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549,['cheese'] = 1090700,["pan"] = 24342877,["ketchup"] = 29690481,
  428. ["duck"] = 9419831,["unicorn"]=84003494,["luatophat"] = 42157240,["rooster"] = 24101267}---some meshids
  429. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153,
  430. ["cheese"] = 1090703,['rooster'] = 24258160}
  431.  
  432.  
  433. function AddTag(object,tagname) local tag = Instance.new("BoolValue",object) tag.Name = tagname return tag end
  434. function CheckTag(object,tagname) local found = object:FindFirstChild(tagname) if found then return found else return _ end end
  435. function RemoveTag(object,tagname) local found = CheckTag(object,tagname) if found then found:Remove() end end
  436.  
  437. waitbp = function(a,r) while (a.Parent.Position-a.position).magnitude > r do wait() end end
  438.  
  439. function FindGround(position,radius,ignore)
  440. if ignore then
  441. ig = ignore table.insert(ig,m)
  442. else ig = {m}
  443. end
  444. local ray = Ray.new(position,Vector3.FromNormalId(Enum.NormalId.Bottom)*radius)
  445. local obj,pos2 = Workspace:FindPartOnRayWithIgnoreList(ray,ig)
  446. if obj and pos2 then return obj,pos2 else return nil end
  447. end
  448.  
  449. function calcp(a,b) --- Direction CFrame
  450. return cfn(a,v3n(b.x,a.y,b.z))
  451. end
  452.  
  453. --------ANIMATING FUNCTION--------
  454. tw = function(Weld, Stop, Step,a)
  455. local func = function()
  456. local Start = Weld.C0
  457. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  458. local Stop = Stop
  459. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  460.  
  461. for i = 0, 1, Step or .1 do
  462. Weld.C0 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
  463. (Start.p.Y * (1 - i)) + (Stop.p.Y * i),
  464. (Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  465. (X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
  466. (Z1 * (1 - i)) + (Z2 * i) )
  467. wait()
  468. end
  469.  
  470. Weld.C0 = Stop
  471. end
  472. if a then T.C(function() func() end) else func() end
  473. end
  474. ------------------------------------
  475.  
  476. function weldall(q)
  477. if q == 1 then a,b = 1,2 else a,b = -1,0 end
  478. for i = a,b do lock.R(i) lock.L(i) end
  479. end
  480. function FindPlayers(a,b,c) --- Finds Players near a part
  481. local list = {}
  482. for i,v in pairs(Workspace:children()) do
  483. if v:IsA("Model") then
  484. for _,q in pairs(v:children()) do
  485. if q:IsA("Humanoid") then
  486. if q.Health > -1 then
  487. if c and q.Parent ~= char then
  488. if (q.Torso.Position-a).magnitude < b then
  489. table.insert(list,v)
  490. end
  491. elseif not c then
  492. if (q.Torso.Position-a).magnitude < b then
  493. table.insert(list,v)
  494. end
  495. end
  496. end
  497. end
  498. end
  499. end
  500. end
  501. return list
  502. end
  503. end
  504.  
  505. rweld = _
  506. faketorso = _
  507. function faketor()
  508. if rtorso == torso then
  509. torso.Transparency = 1
  510. faketorso = T.P(2,2,1,'White',0,false,false,char) faketorso.Name = 'Fakey'
  511. rweld = T.W(faketorso,torso,0,0,0,0,0,0)
  512. rtorso = faketorso
  513. for i,v in pairs({lh,ls,rh,rs}) do v.Part0 = rtorso end
  514. elseif rtorso ~= torso then
  515. rtorso = torso
  516. for i,v in pairs({lh,ls,rh,rs}) do v.Part0 = rtorso end
  517. faketorso:Remove()
  518. rweld:Remove()
  519. torso.Transparency = 0
  520. end
  521. end
  522. faketor()
  523.  
  524. hop = Instance.new("HopperBin",ply.Backpack)
  525. hop.Name = name
  526.  
  527. hdl = T.P(.25,2.5,.25,'Really red',0,false,false) T.FM(hdl,'cylinder',1,1,1)
  528. hw = T.W(hdl,rarm,0,-1,0,-math.pi/2,math.pi/2,0)
  529.  
  530. p = T.P(.4,.5,.4,'White',0,false,false)
  531. T.W(p,hdl,0,-1.25,0,0,0,0)
  532.  
  533. p2 = T.P(.1,.4,.1,'Really red',0,false,false) T.FM(p2,'cylinder',1,1,1)
  534. w = T.W(p2,p,.15,-.2,0,0,0,md(40)) w.C1 = w.C1*cfn(0,-.18,0)
  535. p22 = T.P(.1,.1,.11,'Black',0,false,false) T.FM(p22,'cylinder',1.01,.5,1.01)
  536. T.W(p22,p2,0,-.1,0,0,0,0)
  537.  
  538. p2 = T.P(.1,.4,.1,'Really red',0,false,false) T.FM(p2,'cylinder',1,1,1)
  539. w = T.W(p2,p,-.15,-.2,0,0,0,md(-40)) w.C1 = w.C1*cfn(0,-.18,0)
  540. p22 = T.P(.1,.1,.11,'Black',0,false,false) T.FM(p22,'cylinder',1.01,.5,1.01)
  541. T.W(p22,p2,0,-.1,0,0,0,0)
  542.  
  543. p3 = T.P(.5,1,.3,'Really red',0,false,false) T.FM(p3,'block',1,1,1)
  544. T.W(p3,hdl,0,1.25,0,0,0,0)
  545.  
  546. p32 = T.P(.3,1,.3,'Really red',0,false,false,m,'wedge')
  547. T.W(p32,p3,-.4,0,0,0,math.pi/2,0)
  548.  
  549. p32 = T.P(.3,1,.3,'Really red',0,false,false,m,'wedge')
  550. T.W(p32,p3,.4,0,0,0,-math.pi/2,0)
  551.  
  552. p4 = T.P(.4,.9,.2,'White',0,false,false)
  553. T.W(p4,p3,0,0,.15,0,0,0)
  554. p4 = T.P(.4,.9,.2,'White',0,false,false)
  555. T.W(p4,p3,0,0,-.15,0,0,0)
  556.  
  557. blade = T.P(.5,4,.5,'White',0,false,false) T.FM(blade,'block',1,1,.3)
  558. T.W(blade,p3,0,2.5,0,0,0,0)
  559.  
  560. tip1 = T.P(.5,1,.25,'White',0,false,false) T.FM(tip1,'wedge',.3,1,1)
  561. T.W(tip1,blade,-.25/2,2.5,0,0,math.pi/2,0)
  562.  
  563. tip1 = T.P(.5,1,.25,'White',0,false,false) T.FM(tip1,'wedge',.3,1,1)
  564. T.W(tip1,blade,.25/2,2.5,0,0,-math.pi/2,0)
  565.  
  566. lock.R(1) lock.L(1)
  567.  
  568. function retur()
  569.  
  570. if neck2 then
  571. tw(neck2,cfn()*ang(0,md(-75),0),.1,'')
  572. end
  573.  
  574. tw(rweld,cfn()*ang(0,md(75),0),.1,'')
  575. tw(hw,cfn()*ang(math.pi/2,0,0),.1,'')
  576. tw(lw,cfn()*ang(md(-30),0,md(90)),.1,'')
  577. tw(rw,cfn()*ang(md(-130),md(30),0))
  578.  
  579. if neck2 then necko(0) end
  580.  
  581. end
  582. retur()
  583.  
  584. touch = T.P(.5,5,.5,'White',1,false,false)
  585. T.W(touch,blade,0,.5,0,0,0,0)
  586.  
  587. T.C(function()
  588. while wait(3) do
  589. for i = 2.5,-2.5,-5/10 do
  590. spaas((touch.CFrame*cfn(0,i,0)).p,1,1,1,'Deep blue')
  591. wait()
  592. end
  593. end end)
  594.  
  595. function blast()
  596. local con = touch.Touched:connect(function(hit) local hum = damage(hit.Parent,10,.1)
  597. if hum then if not CheckTag(hum,'t') then local t = AddTag(hum,'t')
  598. T.C(function() local norm = hum.WalkSpeed hum.WalkSpeed = 0 wait(2)
  599. hum.WalkSpeed = norm t:Destroy() end)
  600. end
  601. end
  602. end)
  603. tw(rweld,cfn()*ang(0,md(-80),0),.1,'')
  604. tw(hw,cfn(0,-1.5,0)*ang(math.pi/2,md(90),0),.1,'')
  605. tw(rw,cfn()*ang(md(-90),md(90),0))
  606. con:disconnect()
  607. retur()
  608. end
  609.  
  610. function slash()
  611. local con = touch.Touched:connect(function(hit) local hum = damage(hit.Parent,30,.1)
  612. if hum then
  613. hum.Torso.Velocity = calcp(torso.Position,hum.Torso.Position).lookVector*100
  614. T.C(function() hum.Sit = true wait(1) hum.Sit = false end)
  615. end
  616.  
  617. end)
  618. ---ATTACK---
  619. tw(hw,cfn()*ang(math.pi/2,md(40),0),.1,'')
  620. tw(rweld,cfn()*ang(0,md(-50),0),.1,'')
  621. tw(rw,cfn()*ang(md(-90),md(-40),0),.1,'')
  622. tw(lw,cfn()*ang(0,0,md(30)))
  623. tw(rw,cfn()*ang(md(-110),md(85),0),.1,'')
  624. tw(hw,cfn(0,-1,0)*ang(math.pi/2,md(70),0),1.,'')
  625. tw(rweld,cfn()*ang(0,md(90),0))
  626. con:disconnect()
  627. retur()
  628. end
  629.  
  630. function suprai(mouse) if not mouse.Target then return end
  631. tw(lw,cfn()*ang(md(-160),md(30),0))
  632. char:MoveTo(mouse.hit.p)
  633. retur()
  634. end
  635.  
  636. function fireball() cf = lw.C0
  637. tw(lw,cf*ang(0,md(40),0))
  638. local p = T.P(1,1,1,'Earth blue',0,false,false) T.FM(p,'sphere',1,1,1)
  639. T.F(p,1,1,'Silver','Flame reddish orange')
  640. wl = T.W(p,larm,0,-1,0,0,0,0)
  641. tw(lw,cf*ang(0,md(-20),0),1/3)
  642. wl:Destroy()
  643. p.Touched:connect(function(hit) local hum = damage(hit.Parent,20,1)
  644. if hum then
  645. local ef = T.P(1,1,1,'Flame reddish orange',0,false,true) local msh = T.FM(ef,'skull',1,1,1)
  646. ef.CFrame = cfn(p.Position)
  647. p:Destroy()
  648. for i = 0,1,.1 do ef.Transparency = i msh.Scale = v3n(i*30,i*30,i*30) wait() end
  649. if not CheckTag(hum,'o') then local t = AddTag(hum,'o')
  650.  
  651. T.C(function() local waiting = false local speed = hum.WalkSpeed hum.WalkSpeed = -math.abs(speed) waiting = true
  652. T.C(function() wait(5) waiting = false end)
  653. while waiting do for i = 1,5 do
  654. local p = T.P(1,1,1,'Black',0,false,true) p.CFrame = hum.Torso.CFrame*cfn(mr(-5,5),mr(-5,5),mr(-5,5))
  655. T.C(function() fade(p,0,1,.1) p:Destroy() end)
  656. end
  657. wait(.5)
  658. end
  659. hum.WalkSpeed = math.abs(speed)
  660. t:Destroy()
  661. end)
  662.  
  663. end
  664. ef:Destroy()
  665. end
  666. end)
  667.  
  668. Instance.new("BodyForce",p).force = torso.CFrame.lookVector*60+v3n(0,p:GetMass()*floatforce,0)
  669. debris:AddItem(p,3)
  670. tw(lw,cf)
  671. end
  672.  
  673. neck2 = _
  674. function necko(a) if a == 1 then
  675. neck2 = T.W(char.Head,faketorso,0,1.5,0,0,0,0) normposn2 = neck2.C0
  676. elseif a == 0 then
  677. neck2:Remove() neck2 = _
  678. end end
  679.  
  680.  
  681. function BEWM() lock.L(1) lock.R(1)
  682. tw(rweld,cfn(),.1,'')
  683. tw(lhw,cfn(0,1,0),.1,'')
  684. tw(hw,cfn(0,-1,0)*ang(0,md(45),0),.1,'')
  685. tw(rw,cfn(0,.7,0)*ang(md(-90),md(-40),0),.1,'')
  686. tw(lw,cfn(0,.7,0)*ang(md(-90),md(40),0))
  687.  
  688. local rcf,lcf = rw.C0,lw.C0
  689.  
  690. necko(1)
  691. tw(rweld,cfn(0,-5,0),.1,'')
  692. tw(rw,rcf*ang(md(-50),0,0),.1,'')
  693. tw(lw,lcf*ang(md(-50),0,0),.1,'')
  694. tw(neck2,cfn(0,0,-.3)*ang(md(-30),0,0))
  695.  
  696. tw(hw,cfn(0,-1,0)*ang(0,0,md(50)),.1,'')
  697. tw(rw,cfn(0,.1,0)*ang(md(-30),md(-20),0),.1,'')
  698. tw(lw,lcf*ang(md(30),0,0),.1,'')
  699. tw(rweld,cfn(),.1,'')
  700. tw(neck2,cfn(0,0,.3)*ang(md(30),0,0))
  701. retur()
  702. end
  703.  
  704. klist = {
  705. {'f',function() blast() end};
  706. {'g',function(a) suprai(a) end};
  707. {'q',function() fireball() end};
  708. {'e',function() BEWM() end};
  709. }
  710.  
  711. hop.Selected:connect(function(mouse)
  712. mouse.Button1Up:connect(function() holding = false end)
  713. mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
  714. mouse.KeyDown:connect(function(key)
  715. if attacking then return end
  716. for i,v in pairs(klist) do
  717. if key == v[1] then attacking = true v[2](mouse) attacking = false end
  718. end
  719. end)
  720. mouse.Button1Down:connect(function()
  721. if attacking then return end
  722. attacking = true slash(mouse) attacking = false end)
  723. end)
  724. --mediafire
Add Comment
Please, Sign In to add comment