Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 89.75 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89. Player=owner
  90. Character=Player.Character
  91. PlayerGui=Player.PlayerGui
  92. Backpack=Player.Backpack
  93. Torso=Character.Torso
  94. Head=Character.Head
  95. Humanoid=Character.Humanoid
  96. m=Instance.new('Model',Character)
  97. LeftArm=Character["Left Arm"]
  98. LeftLeg=Character["Left Leg"]
  99. RightArm=Character["Right Arm"]
  100. RightLeg=Character["Right Leg"]
  101. LS=Torso["Left Shoulder"]
  102. LH=Torso["Left Hip"]
  103. RS=Torso["Right Shoulder"]
  104. RH=Torso["Right Hip"]
  105. Face = Head.face
  106. Neck=Torso.Neck
  107. it=Instance.new
  108. attacktype=1
  109. vt=Vector3.new
  110. cf=CFrame.new
  111. euler=CFrame.fromEulerAnglesXYZ
  112. angles=CFrame.Angles
  113. cloaked=false
  114. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  115. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  116. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  117. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  118. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  119. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  120. RootPart=Character.HumanoidRootPart
  121. RootJoint=RootPart.RootJoint
  122. RootCF=euler(-1.57,0,3.14)
  123. attack = false
  124. attackdebounce = false
  125. deb=false
  126. equipped=true
  127. hand=false
  128. MMouse=nil
  129. combo=0
  130. mana=0
  131. trispeed=1
  132. pathtrans=.7
  133. attackmode='none'
  134. local idle=0
  135. local Anim="Idle"
  136. local Effects={}
  137. local gun=false
  138. local shoot=false
  139. player=nil
  140. cloak=false
  141. lightcolor='Bright blue'
  142. --save shoulders
  143. RSH, LSH=nil, nil
  144. --welds
  145. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  146. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  147. LH=Torso["Left Hip"]
  148. RH=Torso["Right Hip"]
  149. TorsoColor=Torso.BrickColor
  150. function NoOutline(Part)
  151. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  152. end
  153. player=Player
  154. ch=Character
  155. RSH=ch.Torso["Right Shoulder"]
  156. LSH=ch.Torso["Left Shoulder"]
  157. --
  158. RSH.Parent=nil
  159. LSH.Parent=nil
  160. --
  161. RW.Name="Right Shoulder"
  162. RW.Part0=ch.Torso
  163. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  164. RW.C1=cf(0, 0.5, 0)
  165. RW.Part1=ch["Right Arm"]
  166. RW.Parent=ch.Torso
  167. --
  168. LW.Name="Left Shoulder"
  169. LW.Part0=ch.Torso
  170. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  171. LW.C1=cf(0, 0.5, 0)
  172. LW.Part1=ch["Left Arm"]
  173. LW.Parent=ch.Torso
  174.  
  175. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  176. local fp=it("Part")
  177. fp.formFactor=formfactor
  178. fp.Parent=parent
  179. fp.Reflectance=reflectance
  180. fp.Transparency=transparency
  181. fp.CanCollide=false
  182. fp.Locked=true
  183. fp.BrickColor=brickcolor
  184. fp.Name=name
  185. fp.Size=size
  186. fp.Position=Torso.Position
  187. NoOutline(fp)
  188. fp.Material="SmoothPlastic"
  189. fp:BreakJoints()
  190. return fp
  191. end
  192.  
  193. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  194. local mesh=it(Mesh)
  195. mesh.Parent=part
  196. if Mesh=="SpecialMesh" then
  197. mesh.MeshType=meshtype
  198. if meshid~="nil" then
  199. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  200. end
  201. end
  202. mesh.Offset=offset
  203. mesh.Scale=scale
  204. return mesh
  205. end
  206.  
  207. function weld(parent,part0,part1,c0)
  208. local weld=it("Weld")
  209. weld.Parent=parent
  210. weld.Part0=part0
  211. weld.Part1=part1
  212. weld.C0=c0
  213. return weld
  214. end
  215.  
  216. local Color1=Torso.BrickColor
  217.  
  218. local bodvel=Instance.new("BodyVelocity")
  219. local bg=Instance.new("BodyGyro")
  220.  
  221. function swait(num)
  222. if num==0 or num==nil then
  223. game:service'RunService'.Stepped:wait(0)
  224. else
  225. for i=0,num do
  226. game:service'RunService'.Stepped:wait(0)
  227. end
  228. end
  229. end
  230.  
  231.  
  232. so = function(id,par,vol,pit)
  233. coroutine.resume(coroutine.create(function()
  234. local sou = Instance.new("Sound",par or workspace)
  235. sou.Volume=vol
  236. sou.Pitch=pit or 1
  237. sou.SoundId=id
  238. swait()
  239. sou:play()
  240. game:GetService("Debris"):AddItem(sou,6)
  241. end))
  242. end
  243.  
  244. function clerp(a,b,t)
  245. local qa = {QuaternionFromCFrame(a)}
  246. local qb = {QuaternionFromCFrame(b)}
  247. local ax, ay, az = a.x, a.y, a.z
  248. local bx, by, bz = b.x, b.y, b.z
  249. local _t = 1-t
  250. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  251. end
  252.  
  253. function QuaternionFromCFrame(cf)
  254. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  255. local trace = m00 + m11 + m22
  256. if trace > 0 then
  257. local s = math.sqrt(1 + trace)
  258. local recip = 0.5/s
  259. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  260. else
  261. local i = 0
  262. if m11 > m00 then
  263. i = 1
  264. end
  265. if m22 > (i == 0 and m00 or m11) then
  266. i = 2
  267. end
  268. if i == 0 then
  269. local s = math.sqrt(m00-m11-m22+1)
  270. local recip = 0.5/s
  271. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  272. elseif i == 1 then
  273. local s = math.sqrt(m11-m22-m00+1)
  274. local recip = 0.5/s
  275. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  276. elseif i == 2 then
  277. local s = math.sqrt(m22-m00-m11+1)
  278. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  279. end
  280. end
  281. end
  282.  
  283. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  284. local xs, ys, zs = x + x, y + y, z + z
  285. local wx, wy, wz = w*xs, w*ys, w*zs
  286. local xx = x*xs
  287. local xy = x*ys
  288. local xz = x*zs
  289. local yy = y*ys
  290. local yz = y*zs
  291. local zz = z*zs
  292. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  293. end
  294.  
  295. function QuaternionSlerp(a, b, t)
  296. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  297. local startInterp, finishInterp;
  298. if cosTheta >= 0.0001 then
  299. if (1 - cosTheta) > 0.0001 then
  300. local theta = math.acos(cosTheta)
  301. local invSinTheta = 1/math.sin(theta)
  302. startInterp = math.sin((1-t)*theta)*invSinTheta
  303. finishInterp = math.sin(t*theta)*invSinTheta
  304. else
  305. startInterp = 1-t
  306. finishInterp = t
  307. end
  308. else
  309. if (1+cosTheta) > 0.0001 then
  310. local theta = math.acos(-cosTheta)
  311. local invSinTheta = 1/math.sin(theta)
  312. startInterp = math.sin((t-1)*theta)*invSinTheta
  313. finishInterp = math.sin(t*theta)*invSinTheta
  314. else
  315. startInterp = t-1
  316. finishInterp = t
  317. end
  318. end
  319. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  320. end
  321.  
  322. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  323. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  324. end
  325.  
  326. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  327. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  328. prt.Anchored=true
  329. prt.CFrame=cframe
  330. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  331. --http://www.roblox.com/asset/?id=4770560
  332. game:GetService("Debris"):AddItem(prt,2)
  333. CF=prt.CFrame
  334. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  335. for i=0,1,0.2 do
  336. wait()
  337. Part.CFrame=CF*cf(0,0,-0.4)
  338. end
  339. for i=0,1,delay do
  340. wait()
  341. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  342. Mesh.Scale=Mesh.Scale
  343. end
  344. for i=0,1,0.1 do
  345. wait()
  346. Part.Transparency=i
  347. end
  348. Part.Parent=nil
  349. end),prt,msh,CF)
  350. end
  351.  
  352. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  353. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  354. prt.Anchored=true
  355. prt.CFrame=cframe
  356. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  357. game:GetService("Debris"):AddItem(prt,5)
  358. coroutine.resume(coroutine.create(function(Part,Mesh)
  359. for i=0,1,delay do
  360. wait()
  361. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  362. Part.Transparency=i
  363. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  364. end
  365. Part.Parent=nil
  366. end),prt,msh)
  367. end
  368.  
  369. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  370. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  371. prt.Anchored=false
  372. prt.CFrame=cframe
  373. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  374. local wld=weld(prt,prt,Parent,cframe)
  375. game:GetService("Debris"):AddItem(prt,5)
  376. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  377. for i=0,1,delay do
  378. wait()
  379. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  380. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  381. Part.Transparency=i
  382. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  383. end
  384. Part.Parent=nil
  385. end),prt,msh,wld)
  386. end
  387.  
  388. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  389. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  390. prt.Anchored=false
  391. prt.CFrame=cframe
  392. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  393. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  394. game:GetService("Debris"):AddItem(prt,5)
  395. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  396. for i=0,1,delay do
  397. wait()
  398. Weld.C0=euler(i*20,0,0)
  399. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  400. Part.Transparency=i
  401. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  402. end
  403. Part.Parent=nil
  404. end),prt,msh,wld)
  405. end
  406.  
  407. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  408. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  409. prt.Anchored=true
  410. prt.CFrame=cframe
  411. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  412. game:GetService("Debris"):AddItem(prt,2)
  413. coroutine.resume(coroutine.create(function(Part,Mesh)
  414. for i=0,1,delay do
  415. wait()
  416. Part.CFrame=Part.CFrame
  417. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  418. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  419. prt2.Anchored=true
  420. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  421. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  422. game:GetService("Debris"):AddItem(prt2,2)
  423. coroutine.resume(coroutine.create(function(Part,Mesh)
  424. for i=0,1,0.1 do
  425. wait()
  426. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  427. end
  428. Part.Parent=nil
  429. end),prt2,msh2)
  430. end
  431. for i=0,1,delay*2 do
  432. wait()
  433. Part.CFrame=Part.CFrame
  434. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  435. end
  436. Part.Parent=nil
  437. end),prt,msh)
  438. end
  439.  
  440. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  441. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  442. prt.Anchored=true
  443. prt.CFrame=cframe
  444. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  445. game:GetService("Debris"):AddItem(prt,2)
  446. coroutine.resume(coroutine.create(function(Part,Mesh)
  447. for i=0,1,delay do
  448. wait()
  449. Part.CFrame=Part.CFrame
  450. Part.Transparency=i
  451. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  452. end
  453. Part.Parent=nil
  454. end),prt,msh)
  455. end
  456.  
  457. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  458. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  459. prt.Anchored=true
  460. prt.CFrame=cframe*euler(x2,y2,z2)
  461. --"http://www.roblox.com/asset/?id=168892465"
  462. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  463. game:GetService("Debris"):AddItem(prt,2)
  464. coroutine.resume(coroutine.create(function(Part,Mesh)
  465. for i=0,1,0.03 do
  466. wait()
  467. Part.CFrame=Part.CFrame
  468. Part.Transparency=i
  469. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  470. end
  471. Part.Parent=nil
  472. end),prt,msh)
  473. end
  474.  
  475. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  476. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  477. prt.Anchored=true
  478. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  479. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  480. game:GetService("Debris"):AddItem(prt,2)
  481. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  482. CF=Part.CFrame
  483. Numbb=0
  484. randnumb=math.random()/10
  485. rand1=math.random()/10
  486. for i=0,1,rand1 do
  487. wait()
  488. CF=CF*cf(0,math.random()/2,0)
  489. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  490. Part.CFrame=CF*euler(Numbb,0,0)
  491. Part.Transparency=i
  492. Numbb=Numbb+randnumb
  493. end
  494. Part.Parent=nil
  495. end),prt,CF,Numbb,randnumb)
  496. end
  497.  
  498. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  499. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  500. prt.Anchored=true
  501. prt.CFrame=cframe
  502. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  503. game:GetService("Debris"):AddItem(prt,5)
  504. coroutine.resume(coroutine.create(function(Part,Mesh)
  505. for i=0,1,delay do
  506. wait()
  507. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  508. Part.Transparency=i
  509. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  510. end
  511. Part.Parent=nil
  512. end),prt,msh)
  513. end
  514.  
  515. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  516. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  517. prt.Anchored=true
  518. prt.CFrame=cframe
  519. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  520. game:GetService("Debris"):AddItem(prt,2)
  521. coroutine.resume(coroutine.create(function(Part,Mesh)
  522. for i=0,1,delay do
  523. wait()
  524. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  525. Part.Transparency=i
  526. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  527. end
  528. Part.Parent=nil
  529. end),prt,msh)
  530. end
  531.  
  532. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  533. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  534. prt.Anchored=true
  535. prt.CFrame=cframe*cf(x,y,z)
  536. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  537. game:GetService("Debris"):AddItem(prt,5)
  538. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  539. local num=math.random()
  540. local num2=math.random(-3,2)+math.random()
  541. local numm=0
  542. for i=0,1,delay*2 do
  543. swait()
  544. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  545. Part.Transparency=i
  546. numm=numm+0.01
  547. end
  548. Part.Parent=nil
  549. Mesh.Parent=nil
  550. end),prt,msh,x,y,z)
  551. end
  552.  
  553. function dmgstart(dmg,what)
  554. hitcon = what.Touched:connect(function(hit)
  555. local hum = hit.Parent:FindFirstChild("Humanoid")
  556. if hum and not hum:IsDescendantOf(Character) then
  557. hum:TakeDamage(dmg)
  558. end
  559. end)
  560. end
  561.  
  562. function dmgstop()
  563. hitcon:disconnect()
  564. end
  565.  
  566. user=owner
  567. char=user.Character
  568. m=Instance.new('Model',char)
  569.  
  570. blocks = {}
  571. function Part(Type, Parent, Name, Transparency, Reflectance, Size, CFrame, Material, BrickColor3)
  572. prt = Instance.new(Type,Parent)
  573. prt.Name = Name
  574. prt.FormFactor = "Custom"
  575. prt.Transparency = Transparency
  576. prt.Reflectance = Reflectance
  577. prt.Size = Size
  578. prt.CFrame = CFrame
  579. prt.Material = Material
  580. prt.TopSurface = 'SmoothNoOutlines'
  581. prt.BottomSurface = 'SmoothNoOutlines'
  582. prt.LeftSurface = 'SmoothNoOutlines'
  583. prt.RightSurface = 'SmoothNoOutlines'
  584. prt.FrontSurface = 'SmoothNoOutlines'
  585. prt.BackSurface = 'SmoothNoOutlines'
  586. prt.BrickColor = BrickColor.new(tostring(BrickColor3))
  587. prt.Anchored = false
  588. prt.CanCollide = false
  589. table.insert(blocks, prt)
  590. return #blocks
  591. end
  592.  
  593. function weldBetween(a, b)
  594. weld = Instance.new("ManualWeld")
  595. weld.Part0 = a
  596. weld.Part1 = b
  597. weld.C0 = CFrame.new()
  598. weld.C1 = b.CFrame:inverse() * a.CFrame
  599. weld.Parent = a
  600. return weld;
  601. end
  602.  
  603. local function CFrameFromTopBack(at, top, back)
  604. local right = top:Cross(back)
  605. return CFrame.new(at.x, at.y, at.z,
  606. right.x, top.x, back.x,
  607. right.y, top.y, back.y,
  608. right.z, top.z, back.z)
  609. end
  610.  
  611. function Triangle(a, b, c)
  612. local edg1 = (c-a):Dot((b-a).unit)
  613. local edg2 = (a-b):Dot((c-b).unit)
  614. local edg3 = (b-c):Dot((a-c).unit)
  615. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  616. a, b, c = a, b, c
  617. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  618. a, b, c = b, c, a
  619. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  620. a, b, c = c, a, b
  621. else
  622. assert(false, "unreachable")
  623. end
  624.  
  625. local len1 = (c-a):Dot((b-a).unit)
  626. local len2 = (b-a).magnitude - len1
  627. local width = (a + (b-a).unit*len1 - c).magnitude
  628.  
  629. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  630.  
  631. local list = {}
  632.  
  633. if len1 > 0.01 then
  634. local w1 = Instance.new('WedgePart', m)
  635. game:GetService("Debris"):AddItem(w1,5)
  636. w1.Material = "SmoothPlastic"
  637. w1.FormFactor = 'Custom'
  638. w1.BrickColor = BrickColor.new("Toothpaste")
  639. w1.Transparency = 0
  640. w1.Reflectance = 0
  641. w1.Material = "SmoothPlastic"
  642. w1.CanCollide = false
  643. NoOutline(w1)
  644. local sz = Vector3.new(0.2, width, len1)
  645. w1.Size = sz
  646. local sp = Instance.new("SpecialMesh",w1)
  647. sp.MeshType = "Wedge"
  648. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  649. w1:BreakJoints()
  650. w1.Anchored = true
  651. w1.Parent = workspace
  652. w1.Transparency = 0.7
  653. table.insert(Effects,{w1,"Disappear",.01})
  654. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  655. table.insert(list,w1)
  656. end
  657.  
  658. if len2 > 0.01 then
  659. local w2 = Instance.new('WedgePart', m)
  660. game:GetService("Debris"):AddItem(w2,5)
  661. w2.Material = "SmoothPlastic"
  662. w2.FormFactor = 'Custom'
  663. w2.BrickColor = BrickColor.new("Toothpaste")
  664. w2.Transparency = 0
  665. w2.Reflectance = 0
  666. w2.Material = "SmoothPlastic"
  667. w2.CanCollide = false
  668. NoOutline(w2)
  669. local sz = Vector3.new(0.2, width, len2)
  670. w2.Size = sz
  671. local sp = Instance.new("SpecialMesh",w2)
  672. sp.MeshType = "Wedge"
  673. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  674. w2:BreakJoints()
  675. w2.Anchored = true
  676. w2.Parent = workspace
  677. w2.Transparency = 0.7
  678. table.insert(Effects,{w2,"Disappear",.01})
  679. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  680. table.insert(list,w2)
  681. end
  682. return unpack(list)
  683. end
  684.  
  685. function NoOutline(Part)
  686. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  687. end
  688.  
  689. local Handle = Instance.new("Part", m)
  690. Handle:BreakJoints()
  691. Handle.TopSurface = "Smooth"
  692. Handle.Material = "SmoothPlastic"
  693. Handle.Name = 'Handle'
  694. Handle.Transparency = '0'
  695. Handle.BottomSurface = "Smooth"
  696. Handle.FormFactor = "Custom" Handle.CanCollide = false
  697. Handle.BrickColor = BrickColor.new("Really black")
  698. Handle.Size = Vector3.new(0.347999871, 0.696000099, 0.232000008)
  699. local Handleweld = Instance.new("ManualWeld")
  700. Handleweld.Part0 = Character["Right Arm"]
  701. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  702. Handleweld.C1 = CFrame.new(0.987845421, -0.306541443, -0.0906600952, -1.08667452e-020, 0.999992371, -2.05761918e-011, 1.13746401e-010, -2.04624998e-011, -1, -0.99999249, -9.1779009e-021, -1.14058374e-010)
  703. Handleweld.Parent = Character["Right Arm"]
  704.  
  705. local HandleMesh = Instance.new("CylinderMesh",Handle)
  706. HandleMesh.Name = "Mesh"
  707. HandleMesh.Offset = Vector3.new(0, 0, 0)
  708. HandleMesh.Scale = Vector3.new(1, 1, 1)
  709.  
  710. local EnergyBlade = Instance.new("Part", m)
  711. EnergyBlade:BreakJoints()
  712. EnergyBlade.TopSurface = "Smooth"
  713. EnergyBlade.Material = "SmoothPlastic"
  714. EnergyBlade.Transparency = '0.30000001192093'
  715. EnergyBlade.Name = 'EnergyBlade'
  716. EnergyBlade.BottomSurface = "Smooth"
  717. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  718. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  719. EnergyBlade.Size = Vector3.new(0.347999871, 2.204, 0.200000003)
  720. local EnergyBladeweld = Instance.new("ManualWeld")
  721. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  722. EnergyBladeweld.C1 = CFrame.new(-0.115883589, -2.02999496, -0.0057220459, 0.999984741, -2.81582917e-012, -7.16509824e-021, 3.0434856e-012, 1, -1.32355987e-010, 1.59434039e-020, 1.32983319e-010, 0.99998498)
  723. EnergyBladeweld.Parent = EnergyBlade
  724. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  725. EnergyBladeMesh.Name = "Mesh"
  726. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  727. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  728.  
  729. local EnergyBlade = Instance.new("Part", m)
  730. EnergyBlade:BreakJoints()
  731. EnergyBlade.TopSurface = "Smooth"
  732. EnergyBlade.Material = "SmoothPlastic"
  733. EnergyBlade.Transparency = '0.5'
  734. EnergyBlade.Name = 'EnergyBlade'
  735. EnergyBlade.BottomSurface = "Smooth"
  736. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  737. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  738. EnergyBlade.Size = Vector3.new(0.463999867, 0.232000053, 0.200000003)
  739. local EnergyBladeweld = Instance.new("ManualWeld")
  740. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  741. EnergyBladeweld.C1 = CFrame.new(-0.637008905, -2.55199051, -0.00542831421, 0.999984741, -3.22502476e-011, 1.42107378e-014, 3.24776907e-011, 1, 4.27509764e-011, -7.10536002e-015, -4.21135973e-011, 0.99998498)
  742. EnergyBladeweld.Parent = EnergyBlade
  743. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  744. EnergyBladeMesh.Name = "Mesh"
  745. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  746. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  747.  
  748. local EnergyBlade = Instance.new("Part", m)
  749. EnergyBlade:BreakJoints()
  750. EnergyBlade.TopSurface = "Smooth"
  751. EnergyBlade.Material = "SmoothPlastic"
  752. EnergyBlade.Transparency = '0.5'
  753. EnergyBlade.Name = 'EnergyBlade'
  754. EnergyBlade.BottomSurface = "Smooth"
  755. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  756. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  757. EnergyBlade.Size = Vector3.new(0.347999871, 2.204, 0.200000003)
  758. local EnergyBladeweld = Instance.new("ManualWeld")
  759. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  760. EnergyBladeweld.C1 = CFrame.new(0.232154608, -2.02999496, -0.00569915771, 0.999984741, -3.41856231e-012, -7.23384551e-021, 3.6462118e-012, 1, -8.98658647e-011, 1.50691127e-020, 9.04928563e-011, 0.99998498)
  761. EnergyBladeweld.Parent = EnergyBlade
  762. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  763. EnergyBladeMesh.Name = "Mesh"
  764. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  765. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  766.  
  767. local EnergyBlade = Instance.new("Part", m)
  768. EnergyBlade:BreakJoints()
  769. EnergyBlade.TopSurface = "Smooth"
  770. EnergyBlade.Material = "SmoothPlastic"
  771. EnergyBlade.Transparency = '0.5'
  772. EnergyBlade.Name = 'EnergyBlade'
  773. EnergyBlade.BottomSurface = "Smooth"
  774. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  775. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  776. EnergyBlade.Size = Vector3.new(0.231999859, 0.232000053, 0.200000003)
  777. local EnergyBladeweld = Instance.new("ManualWeld")
  778. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  779. EnergyBladeweld.C1 = CFrame.new(-0.405785561, -3.01598358, -0.00569915771, 0.999984741, -6.75242154e-012, 4.26322389e-014, 6.98006149e-012, 1, -1.3368967e-010, -3.55268454e-014, 1.34328382e-010, 0.99998498)
  780. EnergyBladeweld.Parent = EnergyBlade
  781. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  782. EnergyBladeMesh.Name = "Mesh"
  783. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  784. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  785.  
  786. local EnergyBlade = Instance.new("Part", m)
  787. EnergyBlade:BreakJoints()
  788. EnergyBlade.TopSurface = "Smooth"
  789. EnergyBlade.Material = "SmoothPlastic"
  790. EnergyBlade.Transparency = '0.5'
  791. EnergyBlade.Name = 'EnergyBlade'
  792. EnergyBlade.BottomSurface = "Smooth"
  793. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  794. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  795. EnergyBlade.Size = Vector3.new(0.231999859, 0.232000053, 0.200000003)
  796. local EnergyBladeweld = Instance.new("ManualWeld")
  797. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  798. EnergyBladeweld.C1 = CFrame.new(-0.405785561, -2.08798981, -0.00569915771, 0.999984741, -5.92108654e-012, 4.26322389e-014, 6.14873343e-012, 1, -1.31955946e-010, -3.55268488e-014, 1.32594657e-010, 0.99998498)
  799. EnergyBladeweld.Parent = EnergyBlade
  800. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  801. EnergyBladeMesh.Name = "Mesh"
  802. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  803. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  804.  
  805. local EnergyBlade = Instance.new("Part", m)
  806. EnergyBlade:BreakJoints()
  807. EnergyBlade.TopSurface = "Smooth"
  808. EnergyBlade.Material = "SmoothPlastic"
  809. EnergyBlade.Transparency = '0.5'
  810. EnergyBlade.Name = 'EnergyBlade'
  811. EnergyBlade.BottomSurface = "Smooth"
  812. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  813. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  814. EnergyBlade.Size = Vector3.new(0.463999867, 0.580000103, 0.200000003)
  815. local EnergyBladeweld = Instance.new("ManualWeld")
  816. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  817. EnergyBladeweld.C1 = CFrame.new(-0.0576572418, -3.42163086, -0.00572967529, 0.999984741, -3.41856231e-012, -7.23384551e-021, 3.6462118e-012, 1, -8.98658647e-011, 1.50691127e-020, 9.04928563e-011, 0.99998498)
  818. EnergyBladeweld.Parent = EnergyBlade
  819. local EnergyBladeMesh = Instance.new("BlockMesh",EnergyBlade)
  820. EnergyBladeMesh.Name = "Mesh"
  821. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  822. EnergyBladeMesh.Scale = Vector3.new(1, 1, 0.579999983)
  823.  
  824. local Hitbox = Instance.new("Part", m)
  825. Hitbox:BreakJoints()
  826. Hitbox.TopSurface = "Smooth"
  827. Hitbox.Material = "SmoothPlastic"
  828. Hitbox.Transparency = '1'
  829. Hitbox.Name = 'Hitbox'
  830. Hitbox.BottomSurface = "Smooth"
  831. Hitbox.FormFactor = "Custom" Hitbox.CanCollide = false
  832. Hitbox.BrickColor = BrickColor.new("Toothpaste")
  833. Hitbox.Size = Vector3.new(1.39199984, 2.78399992, 0.200000003)
  834. local Hitboxweld = Instance.new("ManualWeld")
  835. Hitboxweld.Part0 = Handle Hitboxweld.Part1 = Hitbox Hitboxweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  836. Hitboxweld.C1 = CFrame.new(-0.173881292, -2.78398895, -0.0057220459, 0.999984741, -2.81582917e-012, -7.16509824e-021, 3.0434856e-012, 1, -1.32355987e-010, 1.59434039e-020, 1.32983319e-010, 0.99998498)
  837. Hitboxweld.Parent = Hitbox
  838. local HitboxMesh = Instance.new("BlockMesh",Hitbox)
  839. HitboxMesh.Name = "Mesh"
  840. HitboxMesh.Offset = Vector3.new(0, 0, 0)
  841. HitboxMesh.Scale = Vector3.new(1, 1, 0.579999983)
  842.  
  843. local Part = Instance.new("Part", m)
  844. Part:BreakJoints()
  845. Part.TopSurface = "Smooth"
  846. Part.Material = "SmoothPlastic"
  847. Part.Transparency = '0.5'
  848. Part.Name = 'Part'
  849. Part.BottomSurface = "Smooth"
  850. Part.FormFactor = "Custom" Part.CanCollide = false
  851. Part.BrickColor = BrickColor.new("Cyan")
  852. Part.Size = Vector3.new(0.347999871, 0.232000083, 0.463999987)
  853. local Partweld = Instance.new("ManualWeld")
  854. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  855. Partweld.C1 = CFrame.new(0.000555276871, 1.27599716, 0.000175476074, 0.999984741, -9.42173162e-012, 6.34746155e-020, 9.64937852e-012, 1, 7.94176322e-011, -5.70437063e-020, -7.87930068e-011, 0.99998498)
  856. Partweld.Parent = Part
  857. local PartMesh = Instance.new("CylinderMesh",Part)
  858. PartMesh.Name = "Mesh"
  859. PartMesh.Offset = Vector3.new(0, 0, 0)
  860. PartMesh.Scale = Vector3.new(1, 1, 1)
  861.  
  862. local Part = Instance.new("Part", m)
  863. Part:BreakJoints()
  864. Part.TopSurface = "Smooth"
  865. Part.Material = "SmoothPlastic"
  866. Part.Transparency = '0'
  867. Part.Name = 'Part'
  868. Part.BottomSurface = "Smooth"
  869. Part.FormFactor = "Custom" Part.CanCollide = false
  870. Part.BrickColor = BrickColor.new("Cyan")
  871. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  872. local Partweld = Instance.new("ManualWeld")
  873. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  874. Partweld.C1 = CFrame.new(0.000479221344, 0.521999359, 0.000118255615, 0.999984741, 1.34131739e-007, -2.7346955e-018, -1.34129465e-007, 1, 7.85025447e-011, 1.32724314e-017, -7.78780651e-011, 0.99998498)
  875. Partweld.Parent = Part
  876. local PartMesh = Instance.new("CylinderMesh",Part)
  877. PartMesh.Name = "Mesh"
  878. PartMesh.Offset = Vector3.new(0, 0, 0)
  879. PartMesh.Scale = Vector3.new(1, 1, 1)
  880.  
  881. local Part = Instance.new("Part", m)
  882. Part:BreakJoints()
  883. Part.TopSurface = "Smooth"
  884. Part.Material = "SmoothPlastic"
  885. Part.Transparency = '0'
  886. Part.Name = 'Part'
  887. Part.BottomSurface = "Smooth"
  888. Part.FormFactor = "Custom" Part.CanCollide = false
  889. Part.BrickColor = BrickColor.new("Really black")
  890. Part.Size = Vector3.new(0.200000003, 0.580000043, 0.232000008)
  891. local Partweld = Instance.new("ManualWeld")
  892. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  893. Partweld.C1 = CFrame.new(0.465114594, 0.048664093, -0.00578308105, 0.583923936, 0.811801791, 5.05349096e-011, -0.811789036, 0.583932638, 6.63551367e-011, 2.43582585e-011, -7.91467031e-011, 0.99998498)
  894. Partweld.Parent = Part
  895. local PartMesh = Instance.new("CylinderMesh",Part)
  896. PartMesh.Name = "Mesh"
  897. PartMesh.Offset = Vector3.new(0, 0, 0)
  898. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  899.  
  900. local Part = Instance.new("Part", m)
  901. Part:BreakJoints()
  902. Part.TopSurface = "Smooth"
  903. Part.Material = "SmoothPlastic"
  904. Part.Transparency = '0'
  905. Part.Name = 'Part'
  906. Part.BottomSurface = "Smooth"
  907. Part.FormFactor = "Custom" Part.CanCollide = false
  908. Part.BrickColor = BrickColor.new("Really black")
  909. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  910. local Partweld = Instance.new("ManualWeld")
  911. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  912. Partweld.C1 = CFrame.new(0.000507593155, 0.869998932, 0.00012588501, 0.999984503, 1.34133558e-007, -2.68759253e-018, -1.34131255e-007, 1, 8.30204516e-011, 1.38314673e-017, -8.23960414e-011, 0.99998498)
  913. Partweld.Parent = Part
  914. local PartMesh = Instance.new("CylinderMesh",Part)
  915. PartMesh.Name = "Mesh"
  916. PartMesh.Offset = Vector3.new(0, 0, 0)
  917. PartMesh.Scale = Vector3.new(1, 1, 1)
  918.  
  919. local Part = Instance.new("Part", m)
  920. Part:BreakJoints()
  921. Part.TopSurface = "Smooth"
  922. Part.Material = "SmoothPlastic"
  923. Part.Transparency = '0'
  924. Part.Name = 'Part'
  925. Part.BottomSurface = "Smooth"
  926. Part.FormFactor = "Custom" Part.CanCollide = false
  927. Part.BrickColor = BrickColor.new("Cyan")
  928. Part.Size = Vector3.new(0.347999871, 0.348000079, 0.232000008)
  929. local Partweld = Instance.new("ManualWeld")
  930. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  931. Partweld.C1 = CFrame.new(-4.72068787e-005, -0.521999359, -1.52587891e-005, 0.999984741, 1.02261602e-012, -5.88345014e-021, -7.94905808e-013, 1, -1.77614451e-011, 1.39408044e-020, 1.8387368e-011, 0.99998498)
  932. Partweld.Parent = Part
  933. local PartMesh = Instance.new("CylinderMesh",Part)
  934. PartMesh.Name = "Mesh"
  935. PartMesh.Offset = Vector3.new(0, 0, 0)
  936. PartMesh.Scale = Vector3.new(1, 1, 1)
  937.  
  938. local Part = Instance.new("Part", m)
  939. Part:BreakJoints()
  940. Part.TopSurface = "Smooth"
  941. Part.Material = "SmoothPlastic"
  942. Part.Transparency = '0'
  943. Part.Name = 'Part'
  944. Part.BottomSurface = "Smooth"
  945. Part.FormFactor = "Custom" Part.CanCollide = false
  946. Part.BrickColor = BrickColor.new("Really black")
  947. Part.Size = Vector3.new(0.200000003, 0.811999977, 0.34799999)
  948. local Partweld = Instance.new("ManualWeld")
  949. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  950. Partweld.C1 = CFrame.new(0.464137435, -1.33398819, -0.00573730469, 0.999984741, 4.12598775e-012, -6.37332645e-021, -3.89826366e-012, 1, -1.18157345e-010, 7.10538797e-015, 1.18781679e-010, 0.99998498)
  951. Partweld.Parent = Part
  952. local PartMesh = Instance.new("BlockMesh",Part)
  953. PartMesh.Name = "Mesh"
  954. PartMesh.Offset = Vector3.new(0, 0, 0)
  955. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  956.  
  957. local Part = Instance.new("Part", m)
  958. Part:BreakJoints()
  959. Part.TopSurface = "Smooth"
  960. Part.Material = "SmoothPlastic"
  961. Part.Transparency = '0'
  962. Part.Name = 'Part'
  963. Part.BottomSurface = "Smooth"
  964. Part.FormFactor = "Custom" Part.CanCollide = false
  965. Part.BrickColor = BrickColor.new("Really black")
  966. Part.Size = Vector3.new(0.34799999, 0.34799999, 0.34799999)
  967. local Partweld = Instance.new("ManualWeld")
  968. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  969. Partweld.C1 = CFrame.new(0.000649213791, 1.37459946, 0.000183105469, 0.999984741, -5.89520099e-012, -2.52691724e-018, 6.1229008e-012, 1, 8.39504716e-011, 2.53063356e-018, -8.33259087e-011, 0.99998498)
  970. Partweld.Parent = Part
  971. local PartMesh = Instance.new("SpecialMesh",Part)
  972. PartMesh.MeshId = ""
  973. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  974. PartMesh.Offset = Vector3.new(0, 0, 0)
  975. PartMesh.Scale = Vector3.new(1, 1, 1)
  976.  
  977. local Part = Instance.new("Part", m)
  978. Part:BreakJoints()
  979. Part.TopSurface = "Smooth"
  980. Part.Material = "SmoothPlastic"
  981. Part.Transparency = '0'
  982. Part.Name = 'Part'
  983. Part.BottomSurface = "Smooth"
  984. Part.FormFactor = "Custom" Part.CanCollide = false
  985. Part.BrickColor = BrickColor.new("Really black")
  986. Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  987. local Partweld = Instance.new("ManualWeld")
  988. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  989. Partweld.C1 = CFrame.new(0.464072108, 0.243598938, -0.00573730469, 0.999984741, -1.23941309e-011, -1.74296799e-018, 1.26217274e-011, 1, 9.18617266e-011, 1.74603993e-018, -9.12373926e-011, 0.99998498)
  990. Partweld.Parent = Part
  991. local PartMesh = Instance.new("SpecialMesh",Part)
  992. PartMesh.MeshId = ""
  993. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  994. PartMesh.Offset = Vector3.new(0, 0, 0)
  995. PartMesh.Scale = Vector3.new(0.579999983, 0.579999983, 0.579999983)
  996.  
  997. local Part = Instance.new("Part", m)
  998. Part:BreakJoints()
  999. Part.TopSurface = "Smooth"
  1000. Part.Material = "SmoothPlastic"
  1001. Part.Transparency = '0'
  1002. Part.Name = 'Part'
  1003. Part.BottomSurface = "Smooth"
  1004. Part.FormFactor = "Custom" Part.CanCollide = false
  1005. Part.BrickColor = BrickColor.new("Really black")
  1006. Part.Size = Vector3.new(1.04399991, 0.200000003, 0.34799999)
  1007. local Partweld = Instance.new("ManualWeld")
  1008. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1009. Partweld.C1 = CFrame.new(7.74860382e-005, -0.869998932, -0.00573348999, 0.999984503, -1.97238059e-015, -2.50205131e-021, 2.29675653e-013, 1, -8.74495337e-011, 1.05936116e-020, 8.80765114e-011, 0.99998498)
  1010. Partweld.Parent = Part
  1011. local PartMesh = Instance.new("BlockMesh",Part)
  1012. PartMesh.Name = "Mesh"
  1013. PartMesh.Offset = Vector3.new(0, 0, 0)
  1014. PartMesh.Scale = Vector3.new(1, 0.580000103, 1)
  1015.  
  1016. local Part = Instance.new("Part", m)
  1017. Part:BreakJoints()
  1018. Part.TopSurface = "Smooth"
  1019. Part.Material = "SmoothPlastic"
  1020. Part.Transparency = '0'
  1021. Part.Name = 'Part'
  1022. Part.BottomSurface = "Smooth"
  1023. Part.FormFactor = "Custom" Part.CanCollide = false
  1024. Part.BrickColor = BrickColor.new("Cyan")
  1025. Part.Size = Vector3.new(0.232000008, 0.232000083, 0.232000008)
  1026. local Partweld = Instance.new("ManualWeld")
  1027. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1028. Partweld.C1 = CFrame.new(-0.00512361526, 1.27599716, 0.000205993652, 0.999984741, -1.28453255e-011, -2.6103748e-018, 1.30729186e-011, 1, 9.06156192e-011, 2.61342048e-018, -8.99911604e-011, 0.99998498)
  1029. Partweld.Parent = Part
  1030. local PartMesh = Instance.new("SpecialMesh",Part)
  1031. PartMesh.MeshId = ""
  1032. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  1033. PartMesh.Offset = Vector3.new(0, 0, 0)
  1034. PartMesh.Scale = Vector3.new(1, 1, 1)
  1035.  
  1036. local Part = Instance.new("Part", m)
  1037. Part:BreakJoints()
  1038. Part.TopSurface = "Smooth"
  1039. Part.Material = "SmoothPlastic"
  1040. Part.Transparency = '0'
  1041. Part.Name = 'Part'
  1042. Part.BottomSurface = "Smooth"
  1043. Part.FormFactor = "Custom" Part.CanCollide = false
  1044. Part.BrickColor = BrickColor.new("Really black")
  1045. Part.Size = Vector3.new(0.200000003, 1.04400003, 0.34799999)
  1046. local Partweld = Instance.new("ManualWeld")
  1047. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1048. Partweld.C1 = CFrame.new(0.463974833, -0.290000916, -0.00576782227, 0.999984503, 2.97894065e-008, -2.86348202e-011, -2.97887173e-008, 1, 1.01521291e-010, 2.86348098e-011, -1.00897159e-010, 0.99998498)
  1049. Partweld.Parent = Part
  1050. local PartMesh = Instance.new("CylinderMesh",Part)
  1051. PartMesh.Name = "Mesh"
  1052. PartMesh.Offset = Vector3.new(0, 0, 0)
  1053. PartMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1054.  
  1055. local Part = Instance.new("Part", m)
  1056. Part:BreakJoints()
  1057. Part.TopSurface = "Smooth"
  1058. Part.Material = "SmoothPlastic"
  1059. Part.Transparency = '0'
  1060. Part.Name = 'Part'
  1061. Part.BottomSurface = "Smooth"
  1062. Part.FormFactor = "Custom" Part.CanCollide = false
  1063. Part.BrickColor = BrickColor.new("Really black")
  1064. Part.Size = Vector3.new(0.347999871, 0.200000003, 0.34799999)
  1065. local Partweld = Instance.new("ManualWeld")
  1066. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1067. Partweld.C1 = CFrame.new(-0.000164270401, -0.753997803, -3.81469727e-005, 0.999984503, 3.06888716e-012, -1.38834606e-017, -2.8411544e-012, 1, -1.97783734e-011, 1.38918019e-017, 2.04043379e-011, 0.99998498)
  1068. Partweld.Parent = Part
  1069. local PartMesh = Instance.new("CylinderMesh",Part)
  1070. PartMesh.Name = "Mesh"
  1071. PartMesh.Offset = Vector3.new(0, 0, 0)
  1072. PartMesh.Scale = Vector3.new(1, 0.579999983, 1)
  1073.  
  1074. local Part = Instance.new("Part", m)
  1075. Part:BreakJoints()
  1076. Part.TopSurface = "Smooth"
  1077. Part.Material = "SmoothPlastic"
  1078. Part.Transparency = '0'
  1079. Part.Name = 'Part'
  1080. Part.BottomSurface = "Smooth"
  1081. Part.FormFactor = "Custom" Part.CanCollide = false
  1082. Part.BrickColor = BrickColor.new("Really black")
  1083. Part.Size = Vector3.new(0.811999977, 0.463999987, 0.34799999)
  1084. local Partweld = Instance.new("ManualWeld")
  1085. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1086. Partweld.C1 = CFrame.new(0.116131306, -1.15999222, -0.00574874878, 0.999984741, 3.94835206e-012, -6.39358713e-021, -3.72062797e-012, 1, -1.16199814e-010, 7.10538797e-015, 1.16820581e-010, 0.99998498)
  1087. Partweld.Parent = Part
  1088. local Part = Instance.new("Part", m)
  1089. Part:BreakJoints()
  1090. Part.TopSurface = "Smooth"
  1091. Part.Material = "SmoothPlastic"
  1092. Part.Transparency = '0'
  1093. Part.Name = 'Part'
  1094. Part.BottomSurface = "Smooth"
  1095. Part.FormFactor = "Custom" Part.CanCollide = false
  1096. Part.BrickColor = BrickColor.new("Really black")
  1097. Part.Size = Vector3.new(0.34799999, 0.34799999, 0.34799999)
  1098. local Partweld = Instance.new("ManualWeld")
  1099. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1100. Partweld.C1 = CFrame.new(0.000649213791, 1.14260101, 0.000183105469, 0.999984741, -5.89520099e-012, -2.52691724e-018, 6.1229008e-012, 1, 8.39504716e-011, 2.53063356e-018, -8.33259087e-011, 0.99998498)
  1101. Partweld.Parent = Part
  1102. local PartMesh = Instance.new("SpecialMesh",Part)
  1103. PartMesh.MeshId = ""
  1104. PartMesh.MeshType = Enum.MeshType.Sphere PartMesh.Name = "Mesh"
  1105. PartMesh.Offset = Vector3.new(0, 0, 0)
  1106. PartMesh.Scale = Vector3.new(1, 1, 1)
  1107.  
  1108. local EnergyBlade = Instance.new("WedgePart", m)
  1109. EnergyBlade:BreakJoints()
  1110. EnergyBlade.TopSurface = "Smooth"
  1111. EnergyBlade.Material = "SmoothPlastic"
  1112. EnergyBlade.Transparency = '0.5'
  1113. EnergyBlade.Name = 'EnergyBlade'
  1114. EnergyBlade.BottomSurface = "Smooth"
  1115. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1116. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1117. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1118. local EnergyBladeweld = Instance.new("ManualWeld")
  1119. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1120. EnergyBladeweld.C1 = CFrame.new(-0.00545501709, -2.78398895, 0.752885342, 1.0430734e-007, 9.23484151e-008, 0.99998498, -4.76255479e-008, 1, -9.2346383e-008, -0.999984741, -4.7626493e-008, 1.04307368e-007)
  1121. EnergyBladeweld.Parent = EnergyBlade
  1122. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1123. EnergyBladeMesh.MeshId = ""
  1124. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1125. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1126. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1127.  
  1128. local EnergyBlade = Instance.new("WedgePart", m)
  1129. EnergyBlade:BreakJoints()
  1130. EnergyBlade.TopSurface = "Smooth"
  1131. EnergyBlade.Material = "SmoothPlastic"
  1132. EnergyBlade.Transparency = '0.5'
  1133. EnergyBlade.Name = 'EnergyBlade'
  1134. EnergyBlade.BottomSurface = "Smooth"
  1135. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1136. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  1137. EnergyBlade.Size = Vector3.new(0.200000003, 0.580000043, 0.34800005)
  1138. local EnergyBladeweld = Instance.new("ManualWeld")
  1139. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1140. EnergyBladeweld.C1 = CFrame.new(0.00572967529, -3.42163086, 0.348280907, 3.85203647e-010, -3.42899966e-007, -0.99998498, -5.29177049e-012, 1, -3.42894168e-007, 0.999984741, 5.5196854e-012, 3.85203758e-010)
  1141. EnergyBladeweld.Parent = EnergyBlade
  1142. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1143. EnergyBladeMesh.MeshId = ""
  1144. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1145. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1146. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1147.  
  1148. local EnergyBlade = Instance.new("WedgePart", m)
  1149. EnergyBlade:BreakJoints()
  1150. EnergyBlade.TopSurface = "Smooth"
  1151. EnergyBlade.Material = "SmoothPlastic"
  1152. EnergyBlade.Transparency = '0.5'
  1153. EnergyBlade.Name = 'EnergyBlade'
  1154. EnergyBlade.BottomSurface = "Smooth"
  1155. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1156. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  1157. EnergyBlade.Size = Vector3.new(0.200000003, 0.464000076, 0.464000016)
  1158. local EnergyBladeweld = Instance.new("ManualWeld")
  1159. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1160. EnergyBladeweld.C1 = CFrame.new(0.00566864014, -3.94353485, -0.0578434467, 3.85203536e-010, -3.42944759e-007, -0.99998498, 1.11812989e-012, 1, -3.42938961e-007, 0.999984741, -8.90444023e-013, 3.85210752e-010)
  1161. EnergyBladeweld.Parent = EnergyBlade
  1162. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1163. EnergyBladeMesh.MeshId = ""
  1164. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1165. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1166. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1167.  
  1168. local EnergyBlade = Instance.new("WedgePart", m)
  1169. EnergyBlade:BreakJoints()
  1170. EnergyBlade.TopSurface = "Smooth"
  1171. EnergyBlade.Material = "SmoothPlastic"
  1172. EnergyBlade.Transparency = '0.5'
  1173. EnergyBlade.Name = 'EnergyBlade'
  1174. EnergyBlade.BottomSurface = "Smooth"
  1175. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1176. EnergyBlade.BrickColor = BrickColor.new("Cyan")
  1177. EnergyBlade.Size = Vector3.new(0.200000003, 2.204, 0.200000003)
  1178. local EnergyBladeweld = Instance.new("ManualWeld")
  1179. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1180. EnergyBladeweld.C1 = CFrame.new(-0.0057144165, 2.02999496, 0.464220524, 1.38043432e-009, 3.13060639e-007, 0.99998498, -3.24347216e-010, -1, 3.13055295e-007, 0.999984741, -3.24124921e-010, -1.38043454e-009)
  1181. EnergyBladeweld.Parent = EnergyBlade
  1182. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1183. EnergyBladeMesh.MeshId = ""
  1184. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1185. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1186. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 0.579999983)
  1187.  
  1188. local EnergyBlade = Instance.new("WedgePart", m)
  1189. EnergyBlade:BreakJoints()
  1190. EnergyBlade.TopSurface = "Smooth"
  1191. EnergyBlade.Material = "SmoothPlastic"
  1192. EnergyBlade.Transparency = '0.5'
  1193. EnergyBlade.Name = 'EnergyBlade'
  1194. EnergyBlade.BottomSurface = "Smooth"
  1195. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1196. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1197. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1198. local EnergyBladeweld = Instance.new("ManualWeld")
  1199. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1200. EnergyBladeweld.C1 = CFrame.new(-0.00545501709, 2.31999969, -0.520918846, 3.8519643e-010, 2.97935088e-007, 0.99998498, -3.43321933e-011, -1, 2.97929887e-007, 0.999984741, -3.41047642e-011, -3.85189436e-010)
  1201. EnergyBladeweld.Parent = EnergyBlade
  1202. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1203. EnergyBladeMesh.MeshId = ""
  1204. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1205. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1206. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1207.  
  1208. local EnergyBlade = Instance.new("WedgePart", m)
  1209. EnergyBlade:BreakJoints()
  1210. EnergyBlade.TopSurface = "Smooth"
  1211. EnergyBlade.Material = "SmoothPlastic"
  1212. EnergyBlade.Transparency = '0.5'
  1213. EnergyBlade.Name = 'EnergyBlade'
  1214. EnergyBlade.BottomSurface = "Smooth"
  1215. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1216. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1217. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1218. local EnergyBladeweld = Instance.new("ManualWeld")
  1219. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1220. EnergyBladeweld.C1 = CFrame.new(0.00545501709, 2.31999969, 0.752884865, 1.04307404e-007, -1.48921103e-007, -0.99998498, -4.7686104e-008, -1, 1.48918247e-007, -0.999984741, 4.76865942e-008, -1.04307446e-007)
  1221. EnergyBladeweld.Parent = EnergyBlade
  1222. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1223. EnergyBladeMesh.MeshId = ""
  1224. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1225. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1226. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1227.  
  1228. local EnergyBlade = Instance.new("WedgePart", m)
  1229. EnergyBlade:BreakJoints()
  1230. EnergyBlade.TopSurface = "Smooth"
  1231. EnergyBlade.Material = "SmoothPlastic"
  1232. EnergyBlade.Transparency = '0.5'
  1233. EnergyBlade.Name = 'EnergyBlade'
  1234. EnergyBlade.BottomSurface = "Smooth"
  1235. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1236. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1237. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1238. local EnergyBladeweld = Instance.new("ManualWeld")
  1239. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1240. EnergyBladeweld.C1 = CFrame.new(0.00545501709, -2.78398895, -0.52090168, 3.85210641e-010, -3.42831441e-007, -0.99998498, 2.68004976e-011, 1, -3.42825587e-007, 0.999984741, -2.65730112e-011, 3.85189436e-010)
  1241. EnergyBladeweld.Parent = EnergyBlade
  1242. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1243. EnergyBladeMesh.MeshId = ""
  1244. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1245. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1246. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1247.  
  1248. local EnergyBlade = Instance.new("WedgePart", m)
  1249. EnergyBlade:BreakJoints()
  1250. EnergyBlade.TopSurface = "Smooth"
  1251. EnergyBlade.Material = "SmoothPlastic"
  1252. EnergyBlade.Transparency = '0.5'
  1253. EnergyBlade.Name = 'EnergyBlade'
  1254. EnergyBlade.BottomSurface = "Smooth"
  1255. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1256. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1257. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1258. local EnergyBladeweld = Instance.new("ManualWeld")
  1259. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1260. EnergyBladeweld.C1 = CFrame.new(0.00572967529, 2.78398895, 0.405653715, 1.04307418e-007, -1.49098511e-007, -0.99998498, -4.76609436e-008, -1, 1.49095641e-007, -0.999984741, 4.76614339e-008, -1.0430746e-007)
  1261. EnergyBladeweld.Parent = EnergyBlade
  1262. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1263. EnergyBladeMesh.MeshId = ""
  1264. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1265. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1266. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1267.  
  1268. local EnergyBlade = Instance.new("WedgePart", m)
  1269. EnergyBlade:BreakJoints()
  1270. EnergyBlade.TopSurface = "Smooth"
  1271. EnergyBlade.Material = "SmoothPlastic"
  1272. EnergyBlade.Transparency = '0.5'
  1273. EnergyBlade.Name = 'EnergyBlade'
  1274. EnergyBlade.BottomSurface = "Smooth"
  1275. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1276. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1277. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1278. local EnergyBladeweld = Instance.new("ManualWeld")
  1279. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1280. EnergyBladeweld.C1 = CFrame.new(-0.00572967529, -2.31999969, 0.405654192, 1.04307325e-007, 9.2525454e-008, 0.99998498, -4.76508113e-008, 1, -9.25234218e-008, -0.999984741, -4.76517563e-008, 1.04307354e-007)
  1281. EnergyBladeweld.Parent = EnergyBlade
  1282. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1283. EnergyBladeMesh.MeshId = ""
  1284. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1285. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1286. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1287.  
  1288. local EnergyBlade = Instance.new("WedgePart", m)
  1289. EnergyBlade:BreakJoints()
  1290. EnergyBlade.TopSurface = "Smooth"
  1291. EnergyBlade.Material = "SmoothPlastic"
  1292. EnergyBlade.Transparency = '0.5'
  1293. EnergyBlade.Name = 'EnergyBlade'
  1294. EnergyBlade.BottomSurface = "Smooth"
  1295. EnergyBlade.FormFactor = "Custom" EnergyBlade.CanCollide = false
  1296. EnergyBlade.BrickColor = BrickColor.new("Toothpaste")
  1297. EnergyBlade.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1298. local EnergyBladeweld = Instance.new("ManualWeld")
  1299. EnergyBladeweld.Part0 = Handle EnergyBladeweld.Part1 = EnergyBlade EnergyBladeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1300. EnergyBladeweld.C1 = CFrame.new(-0.00572967529, -3.24771881, 0.405654192, 1.04307325e-007, 9.25271877e-008, 0.99998498, -4.764998e-008, 1, -9.25251555e-008, -0.999984741, -4.7650925e-008, 1.04307354e-007)
  1301. EnergyBladeweld.Parent = EnergyBlade
  1302. local EnergyBladeMesh = Instance.new("SpecialMesh",EnergyBlade)
  1303. EnergyBladeMesh.MeshId = ""
  1304. EnergyBladeMesh.MeshType = Enum.MeshType.Wedge EnergyBladeMesh.Name = "Mesh"
  1305. EnergyBladeMesh.Offset = Vector3.new(0, 0, 0)
  1306. EnergyBladeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1307.  
  1308. local Wedge = Instance.new("WedgePart", m)
  1309. Wedge:BreakJoints()
  1310. Wedge.TopSurface = "Smooth"
  1311. Wedge.Material = "SmoothPlastic"
  1312. Wedge.Transparency = '0'
  1313. Wedge.Name = 'Wedge'
  1314. Wedge.BottomSurface = "Smooth"
  1315. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1316. Wedge.BrickColor = BrickColor.new("Really black")
  1317. Wedge.Size = Vector3.new(0.347999871, 0.463999987, 0.232000008)
  1318. local Wedgeweld = Instance.new("ManualWeld")
  1319. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1320. Wedgeweld.C1 = CFrame.new(-0.00574874878, -1.15999222, 0.4057827, 5.96037637e-008, 4.00195148e-008, 0.99998498, 3.54902951e-008, 1, -4.00182927e-008, -0.999984741, 3.54906078e-008, 5.96037779e-008)
  1321. Wedgeweld.Parent = Wedge
  1322. local Wedge = Instance.new("WedgePart", m)
  1323. Wedge:BreakJoints()
  1324. Wedge.TopSurface = "Smooth"
  1325. Wedge.Material = "SmoothPlastic"
  1326. Wedge.Transparency = '0'
  1327. Wedge.Name = 'Wedge'
  1328. Wedge.BottomSurface = "Smooth"
  1329. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1330. Wedge.BrickColor = BrickColor.new("Really black")
  1331. Wedge.Size = Vector3.new(0.347999871, 0.812000036, 0.580000043)
  1332. local Wedgeweld = Instance.new("ManualWeld")
  1333. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1334. Wedgeweld.C1 = CFrame.new(-0.00572967529, -1.33398819, -0.116147518, 5.96037637e-008, 4.00212343e-008, 0.99998498, 3.54923806e-008, 1, -4.00200122e-008, -0.999984741, 3.54926932e-008, 5.96037779e-008)
  1335. Wedgeweld.Parent = Wedge
  1336. local Wedge = Instance.new("WedgePart", m)
  1337. Wedge:BreakJoints()
  1338. Wedge.TopSurface = "Smooth"
  1339. Wedge.Material = "SmoothPlastic"
  1340. Wedge.Transparency = '0.5'
  1341. Wedge.Name = 'Wedge'
  1342. Wedge.BottomSurface = "Smooth"
  1343. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1344. Wedge.BrickColor = BrickColor.new("Toothpaste")
  1345. Wedge.Size = Vector3.new(0.200000003, 0.232000098, 0.232000053)
  1346. local Wedgeweld = Instance.new("ManualWeld")
  1347. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1348. Wedgeweld.C1 = CFrame.new(0.00572967529, 1.85600281, 0.405664921, 1.04307418e-007, -1.49096778e-007, -0.99998498, -4.76601052e-008, -1, 1.49093907e-007, -0.999984741, 4.76605955e-008, -1.0430746e-007)
  1349. Wedgeweld.Parent = Wedge
  1350. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1351. WedgeMesh.MeshId = ""
  1352. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1353. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1354. WedgeMesh.Scale = Vector3.new(0.579999983, 1, 1)
  1355.  
  1356. function Cloak()
  1357. Face.Parent=nil
  1358. cloaked=true
  1359. for _,v in pairs(Torso.Parent:children()) do
  1360. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1361. coroutine.resume(coroutine.create(function()
  1362. for i=0,1,0.2 do
  1363. wait()
  1364. v.Transparency=i
  1365. end
  1366. v.Transparency=1
  1367. end))
  1368. end
  1369. if v.className=="Hat" then
  1370. hatp=v.Handle
  1371. coroutine.resume(coroutine.create(function(derp)
  1372. for i=0,1,0.2 do
  1373. wait()
  1374. derp.Transparency=i
  1375. end
  1376. derp.Transparency=1
  1377. end),hatp)
  1378. end
  1379. end
  1380. for _,v in pairs(blocks) do
  1381. if v.className=="Part" then
  1382. coroutine.resume(coroutine.create(function()
  1383. for i=0,1,0.2 do
  1384. wait()
  1385. v.Transparency=i
  1386. end
  1387. v.Transparency=1
  1388. end))
  1389. end
  1390. end
  1391. end
  1392.  
  1393. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1394. if hit.Parent==nil then
  1395. return
  1396. end
  1397. h=hit.Parent:FindFirstChild("Humanoid")
  1398. for _,v in pairs(hit.Parent:children()) do
  1399. if v:IsA("Humanoid") then
  1400. h=v
  1401. end
  1402. end
  1403. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1404. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1405. end
  1406. if hit.Parent.className=="Hat" then
  1407. hit=hit.Parent.Parent:findFirstChild("Head")
  1408. end
  1409. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1410. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1411. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1412. return
  1413. end]]
  1414. -- hs(hit,1.2)
  1415. c=Instance.new("ObjectValue")
  1416. c.Name="creator"
  1417. c.Value=owner
  1418. c.Parent=h
  1419. game:GetService("Debris"):AddItem(c,.5)
  1420. Damage=math.random(minim,maxim)
  1421. -- h:TakeDamage(Damage)
  1422. blocked=false
  1423. block=hit.Parent:findFirstChild("Block")
  1424. if block~=nil then
  1425. print(block.className)
  1426. if block.className=="NumberValue" then
  1427. if block.Value>0 then
  1428. blocked=true
  1429. if decreaseblock==nil then
  1430. block.Value=block.Value-1
  1431. end
  1432. end
  1433. end
  1434. if block.className=="IntValue" then
  1435. if block.Value>0 then
  1436. blocked=true
  1437. if decreaseblock~=nil then
  1438. block.Value=block.Value-1
  1439. end
  1440. end
  1441. end
  1442. end
  1443. if blocked==false then
  1444. -- h:TakeDamage(Damage)
  1445. h.Health=h.Health-Damage
  1446. showDamage(hit.Parent,Damage,.5,BrickColor.new("Navy blue"))
  1447. else
  1448. h.Health=h.Health-(Damage/2)
  1449. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1450. end
  1451. if Type=="Knockdown" then
  1452. hum=hit.Parent.Humanoid
  1453. hum.PlatformStand=true
  1454. coroutine.resume(coroutine.create(function(HHumanoid)
  1455. swait(1)
  1456. HHumanoid.PlatformStand=false
  1457. end),hum)
  1458. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1459. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1460. local bodvol=Instance.new("BodyVelocity")
  1461. bodvol.velocity=angle*knockback
  1462. bodvol.P=5000
  1463. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1464. bodvol.Parent=hit
  1465. rl=Instance.new("BodyAngularVelocity")
  1466. rl.P=3000
  1467. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1468. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1469. rl.Parent=hit
  1470. game:GetService("Debris"):AddItem(bodvol,.5)
  1471. game:GetService("Debris"):AddItem(rl,.5)
  1472. elseif Type=="Normal" then
  1473. vp=Instance.new("BodyVelocity")
  1474. vp.P=500
  1475. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1476. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1477. if KnockbackType==1 then
  1478. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1479. elseif KnockbackType==2 then
  1480. vp.velocity=Property.CFrame.lookVector*knockback
  1481. end
  1482. if knockback>0 then
  1483. vp.Parent=hit.Parent.Torso
  1484. end
  1485. game:GetService("Debris"):AddItem(vp,.5)
  1486. elseif Type=="Up" then
  1487. local bodyVelocity=Instance.new("BodyVelocity")
  1488. bodyVelocity.velocity=vt(0,60,0)
  1489. bodyVelocity.P=5000
  1490. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1491. bodyVelocity.Parent=hit
  1492. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1493. rl=Instance.new("BodyAngularVelocity")
  1494. rl.P=3000
  1495. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1496. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1497. rl.Parent=hit
  1498. game:GetService("Debris"):AddItem(rl,.5)
  1499. elseif Type=="Snare" then
  1500. bp=Instance.new("BodyPosition")
  1501. bp.P=2000
  1502. bp.D=100
  1503. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1504. bp.position=hit.Parent.Torso.Position
  1505. bp.Parent=hit.Parent.Torso
  1506. game:GetService("Debris"):AddItem(bp,1)
  1507. elseif Type=="Target" then
  1508. if Targetting==false then
  1509. ZTarget=hit.Parent.Torso
  1510. coroutine.resume(coroutine.create(function(Part)
  1511. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1512. swait(5)
  1513. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1514. end),ZTarget)
  1515. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1516. targetgui=Instance.new("BillboardGui")
  1517. targetgui.Parent=ZTarget
  1518. targetgui.Size=UDim2.new(10,100,10,100)
  1519. targ=Instance.new("ImageLabel")
  1520. targ.Parent=targetgui
  1521. targ.BackgroundTransparency=1
  1522. targ.Image="rbxassetid://4834067"
  1523. targ.Size=UDim2.new(1,0,1,0)
  1524. cam.CameraType="Scriptable"
  1525. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1526. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1527. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1528. Targetting=true
  1529. RocketTarget=ZTarget
  1530. for i=1,Property do
  1531. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1532. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1533. swait()
  1534. end
  1535. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1536. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1537. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1538. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1539. end
  1540. Targetting=false
  1541. RocketTarget=nil
  1542. targetgui.Parent=nil
  1543. cam.CameraType="Custom"
  1544. end
  1545. end
  1546. debounce=Instance.new("BoolValue")
  1547. debounce.Name="DebounceHit"
  1548. debounce.Parent=hit.Parent
  1549. debounce.Value=true
  1550. game:GetService("Debris"):AddItem(debounce,Delay)
  1551. c=Instance.new("ObjectValue")
  1552. c.Name="creator"
  1553. c.Value=Player
  1554. c.Parent=h
  1555. game:GetService("Debris"):AddItem(c,.5)
  1556. CRIT=false
  1557. hitDeb=true
  1558. AttackPos=6
  1559. end
  1560. end
  1561.  
  1562. showDamage=function(Char,Dealt,du,Color)
  1563. m=Instance.new("Model")
  1564. m.Name=tostring(Dealt)
  1565. h=Instance.new("Humanoid")
  1566. h.Health=0
  1567. h.MaxHealth=0
  1568. h.Parent=m
  1569. c=Instance.new("Part")
  1570. c.Transparency=0
  1571. c.BrickColor=Color
  1572. c.Name="Head"
  1573. c.TopSurface=0
  1574. c.BottomSurface=0
  1575. c.formFactor="Plate"
  1576. c.Size=Vector3.new(1,.4,1)
  1577. ms=Instance.new("CylinderMesh")
  1578. ms.Scale=Vector3.new(.8,.8,.8)
  1579. if CRIT==true then
  1580. ms.Scale=Vector3.new(1,1.25,1)
  1581. end
  1582. ms.Parent=c
  1583. c.Reflectance=0
  1584. Instance.new("BodyGyro").Parent=c
  1585. c.Parent=m
  1586. if Char:findFirstChild("Head")~=nil then
  1587. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1588. elseif Char.Parent:findFirstChild("Head")~=nil then
  1589. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1590. end
  1591. f=Instance.new("BodyPosition")
  1592. f.P=2000
  1593. f.D=100
  1594. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1595. f.position=c.Position+Vector3.new(0,3,0)
  1596. f.Parent=c
  1597. game:GetService("Debris"):AddItem(m,.5+du)
  1598. c.CanCollide=false
  1599. m.Parent=workspace
  1600. c.CanCollide=false
  1601. end
  1602.  
  1603. function UnCloak()
  1604. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1605. Face.Parent=Head
  1606. cloaked=false
  1607. for _,v in pairs(Torso.Parent:children()) do
  1608. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1609. coroutine.resume(coroutine.create(function()
  1610. for i=0,1,0.1 do
  1611. wait()
  1612. v.Transparency=v.Transparency-0.1
  1613. end
  1614. v.Transparency=0
  1615. end))
  1616. end
  1617. if v.className=="Hat" then
  1618. hatp=v.Handle
  1619. coroutine.resume(coroutine.create(function(derp)
  1620. for i=0,1,0.1 do
  1621. wait()
  1622. derp.Transparency=derp.Transparency-0.1
  1623. end
  1624. derp.Transparency=0
  1625. end),hatp)
  1626. end
  1627. end
  1628. for _,v in pairs(blocks) do
  1629. if v.className=="Part" and v.Name~="Hitbox" and v.Name~='tip' then
  1630. coroutine.resume(coroutine.create(function()
  1631. for i=0,1,0.1 do
  1632. wait()
  1633. v.Transparency=v.Transparency-0.1
  1634. end
  1635. v.Transparency=0
  1636. end))
  1637. v.Transparency=0
  1638. end
  1639. end
  1640. end
  1641. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  1642. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  1643. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  1644. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  1645. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549}---some meshids
  1646. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  1647. soundids = {["bell"] = 20005706,["flintlock"] = 13510352,["falcon"] = 1387390,['sensa'] = 4700455,
  1648. ['midas'] = 17385513;
  1649. ['spark'] = 10756118;
  1650. ['boom'] = 10730819;
  1651. ['plank'] = 10548112;
  1652. ['harmonica1'] = 33069371;
  1653. ['harmonica2'] = 33069412;
  1654. ['thump'] = 10730819;
  1655. }
  1656.  
  1657. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  1658.  
  1659. M = {["R"] = function(a,b) return math.random(a,b) end,
  1660. ["Cos"] = function(a) return math.cos(a) end,
  1661. ["Sin"] = function(a) return math.sin(a) end,
  1662. ["D"] = function(a) return math.rad(a) end
  1663. }
  1664.  
  1665. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  1666. if typee == 'wedge' then
  1667. c = Instance.new("WedgePart",m)
  1668. elseif typee == 'seat' then
  1669. c = Instance.new("Seat",m)
  1670. elseif typee == 'vseat' then
  1671. c = Instance.new("VehicleSeat",m)
  1672. else
  1673. c = Instance.new("Part",m)
  1674. end
  1675. c.TopSurface,c.BottomSurface = 0,0
  1676. c.Locked = true
  1677. c.formFactor = "Custom"
  1678. c.Size = Vector3.new(x,y,z)
  1679. if color ~= "random" then
  1680. c.BrickColor = BrickColor.new(color)
  1681. else c.BrickColor = BrickColor:random()
  1682. end
  1683. c.Transparency = transparency
  1684. c.CanCollide = cancollide
  1685. if anchored ~= nil then c.Anchored = anchored end
  1686. if parent ~= nil then c.Parent = parent end
  1687. return c
  1688. end
  1689. ,
  1690. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  1691. ,
  1692. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  1693. w = Instance.new("Motor",m)
  1694. if parent ~= nil then w.Parent = parent end
  1695. w.Part0,w.Part1 = part0,part1
  1696. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  1697. return w
  1698. end
  1699. ,
  1700. ["BG"] = function(parent)
  1701. local c = Instance.new("BodyGyro",parent)
  1702. c.P = 20e+003
  1703. c.cframe = parent.CFrame
  1704. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  1705. return c
  1706. end
  1707. ,
  1708. ["BP"] = function(parent,position)
  1709. local bp = Instance.new("BodyPosition",parent)
  1710. bp.maxForce = Vector3.new()*math.huge
  1711. bp.position = position
  1712. return bp
  1713. end
  1714. ,
  1715. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  1716. f = Instance.new("Fire",parent)
  1717. f.Size = size
  1718. f.Heat = heat
  1719. if enabled ~= nil then f.Enabled = enabled end
  1720. if color ~= nil then f.Color = BrickColor.new(color).Color end
  1721. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  1722. return f
  1723. end
  1724. ,
  1725. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  1726. if meshid == "cylinder" then
  1727. mesh = Instance.new("CylinderMesh",parent)
  1728. mesh.Scale = Vector3.new(x,y,z)
  1729. return mesh
  1730. elseif meshid == 'block' then
  1731. mesh = Instance.new("BlockMesh",parent)
  1732. mesh.Scale = Vector3.new(x,y,z)
  1733. return mesh
  1734. end
  1735. mesh = Instance.new("SpecialMesh",parent)
  1736. if meshid == 'wedge' then
  1737. mesh.MeshType = 'Wedge'
  1738. elseif meshid == 'sphere' then
  1739. mesh.MeshType = 3
  1740. elseif type(meshid) == "number" then
  1741. mesh.MeshId = "rbxassetid://"..meshid
  1742. else
  1743. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  1744. end
  1745. mesh.Scale = Vector3.new(x,y,z)
  1746. if meshtexture then
  1747. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  1748. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  1749. end
  1750. return mesh
  1751. end,
  1752. ["Dec"] = function(parent,face,id,transparency)
  1753. c = Instance.new("Decal",parent)
  1754. c.Face = face
  1755. c.Texture = id
  1756. if transparency then c.Transparency = transparency end
  1757. return c
  1758. end,
  1759. ["S"] = function(id,pitch,volume,parent)
  1760. cur = nil
  1761. found = false
  1762. if type(id) == 'string' then
  1763. for i,v in pairs(char.Head:children()) do
  1764. if v:IsA("Sound") and v.Name == id and not found then
  1765. cur = v
  1766. if parent then cur = v:Clone() cur.Parent = parent end
  1767. cur.Pitch = pitch
  1768. if volume then cur.Volume = volume end
  1769. cur:Play()
  1770. found = true
  1771. return cur
  1772. end
  1773. end
  1774. elseif type(id) == 'number' then
  1775. local a = char.Head:FindFirstChild('exteo')
  1776. a.SoundId = 'rbxassetid://'..id
  1777. a.Pitch = pitch
  1778. if volume then a.Volume = volume end
  1779. a:Play()
  1780. return a
  1781. end
  1782. end
  1783. }
  1784.  
  1785. function damage(hit,amount,delay)
  1786. for i,v in pairs(hit:children()) do
  1787. if v:IsA("Humanoid") and v.Parent ~= char then
  1788. if delay then
  1789. local found = v:FindFirstChild('tag')
  1790. if not found then
  1791. local a = Instance.new("StringValue",v)
  1792. a.Name = 'tag ur it'
  1793. game:service'Debris':AddItem(a,delay)
  1794. v.Health = v.Health - amount
  1795. end
  1796. else v.Health = v.Health - amount
  1797. end
  1798. end
  1799. end
  1800. end
  1801.  
  1802. function lightning(startpos,endpos,times,offse,livetime,col,dmg)
  1803. local curpos = startpos
  1804. for i = 1,times do
  1805. local mag = (startpos-endpos).magnitude
  1806. local offs = {-offse,offse}
  1807. local offset = v3n(offs[M.R(1,2)],offs[M.R(1,2)],offs[M.R(1,2)])
  1808. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  1809. laz.Parent=m
  1810. laz.Transparency=.5
  1811. if dmg then laz.Touched:connect(function(hit) dmgstart(laz,5) end) end
  1812. local apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  1813. if times == i then
  1814. local mag2 = (curpos-endpos).magnitude
  1815. laz.Size = v3n(.1,.1,mag2)
  1816. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  1817. else
  1818. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  1819. end
  1820. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p game:service'Debris':AddItem(laz,livetime)
  1821. pcall(function()
  1822. dmgstop()
  1823. end)
  1824. end
  1825. end
  1826.  
  1827. mouse.Button1Down:connect(function()
  1828. if attack==false then
  1829. if attacktype==1 then
  1830. attack=true
  1831. attacktype=2
  1832. attackone()
  1833. elseif attacktype==2 then
  1834. attack=true
  1835. attacktype=3
  1836. attacktwo()
  1837. elseif attacktype==3 then
  1838. attack=true
  1839. attacktype=1
  1840. attackthree()
  1841. end
  1842. end
  1843. end)
  1844.  
  1845. mouse.KeyDown:connect(function(k)
  1846. k=k:lower()
  1847. if k=='q' then
  1848. if attack==false then
  1849. Bash()
  1850. end
  1851. elseif k=='e' then
  1852. if attack==false then
  1853. Impulse()
  1854. end
  1855. end
  1856. end)
  1857. function Impulse()
  1858. attack=true
  1859. Humanoid.Jump=true
  1860. for i=0,1,0.2 do
  1861. swait()
  1862. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1863. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  1864. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1865. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1866. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1867. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1868. end
  1869. blcf=nil
  1870. scfr=nil
  1871. so("http://roblox.com/asset/?id=231917801",Hitbox,1,1)
  1872. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1873. for i=1,2 do
  1874. for i=0,1,0.1 do
  1875. swait()
  1876. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1877. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1878. local h = 5
  1879. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1880. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1881. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1882. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1883. scfr = blcf
  1884. elseif not scfr then
  1885. scfr = blcf
  1886. end
  1887. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1888. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1889. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  1890. end
  1891. end
  1892. attack = false
  1893. con1:disconnect()
  1894. end
  1895.  
  1896. function Bash()
  1897. attack=true
  1898. for i=0,1,0.1 do
  1899. swait()
  1900. --wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1901. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1902. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1903. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1904. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1905. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1906. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1907. end
  1908. Torso.Velocity=RootPart.CFrame.lookVector*200
  1909. so("http://roblox.com/asset/?id=200632211",Torso,1,.8)
  1910. hit=nil
  1911. for i=1,20 do
  1912. if hit==nil then
  1913. swait()
  1914. end
  1915. end
  1916. Torso.Velocity=RootPart.CFrame.lookVector*0
  1917. Humanoid.WalkSpeed=0
  1918. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1919. for i=0,1,0.1 do
  1920. swait()
  1921. --wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1922. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1923. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1924. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1925. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  1926. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1927. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1928. end
  1929. so("http://roblox.com/asset/?id=200632136",Hitbox,1,0.9)
  1930. blcf=nil
  1931. scfr=nil
  1932. for i=0,1,0.2 do
  1933. swait()
  1934. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1935. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1936. local h = 5
  1937. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1938. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1939. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1940. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1941. scfr = blcf
  1942. elseif not scfr then
  1943. scfr = blcf
  1944. end
  1945. --wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  1946. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  1947. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  1948. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  1949. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  1950. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1951. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1952. end
  1953. swait(50)
  1954. Humanoid.WalkSpeed=16
  1955. con1:disconnect()
  1956. attack=false
  1957. end
  1958.  
  1959.  
  1960. function attackone()
  1961. attack=true
  1962. for i=0,1,0.2 do
  1963. swait()
  1964. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.4)
  1965. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  1966. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1),.4)
  1967. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1968. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.3)*euler(.4,0,.2)*euler(0,-.2,0),.4)
  1969. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1970. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  1971. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  1972. end
  1973. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  1974. for i=0,1,0.3 do
  1975. swait()
  1976. local blcf = Hitbox.CFrame
  1977. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1978. local h = 5
  1979. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1980. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1981. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1982. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  1983. scfr = blcf
  1984. elseif not scfr then
  1985. scfr = blcf
  1986. end
  1987. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  1988. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  1989. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.2,0,-.2)*euler(0,-.5,0),.4)
  1990. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1991. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
  1992. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1993. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  1994. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  1995. end
  1996. so("http://roblox.com/asset/?id=233856140",Hitbox,1,1)
  1997. for i=0,1,0.2 do
  1998. swait()
  1999. local blcf = Hitbox.CFrame
  2000. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  2001. local h = 5
  2002. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2003. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2004. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2005. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2006. scfr = blcf
  2007. elseif not scfr then
  2008. scfr = blcf
  2009. end
  2010. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  2011. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  2012. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.4)
  2013. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2014. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
  2015. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2016. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  2017. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  2018. end
  2019. attack=false
  2020. con1:disconnect()
  2021. end
  2022.  
  2023. function attacktwo()
  2024. attack=true
  2025. for i=0,1,0.1 do
  2026. swait()
  2027. local blcf = Hitbox.CFrame
  2028. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  2029. local h = 5
  2030. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2031. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2032. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2033. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2034. scfr = blcf
  2035. elseif not scfr then
  2036. scfr = blcf
  2037. end
  2038. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  2039. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  2040. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  2041. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  2042. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  2043. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  2044. end
  2045. so("http://roblox.com/asset/?id=233856146",Hitbox,1,1)
  2046. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  2047. for i=0,1,0.1 do
  2048. swait()
  2049. local blcf = Hitbox.CFrame
  2050. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  2051. local h = 5
  2052. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2053. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2054. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2055. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2056. scfr = blcf
  2057. elseif not scfr then
  2058. scfr = blcf
  2059. end
  2060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  2061. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  2062. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  2063. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  2064. end
  2065. attack=false
  2066. con1:disconnect()
  2067. end
  2068.  
  2069. function attackthree()
  2070. attack=true
  2071. for i=0,1,0.2 do
  2072. swait()
  2073. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  2074. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.4)
  2075. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.4)
  2076. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2077. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
  2078. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2079. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.4)
  2080. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.4)
  2081. end
  2082. so("http://roblox.com/asset/?id=233856140",Hitbox,1,0.9)
  2083. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  2084. for i=0,1,0.1 do
  2085. swait()
  2086. local blcf = Hitbox.CFrame
  2087. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  2088. local h = 5
  2089. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2090. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2091. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2092. if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
  2093. scfr = blcf
  2094. elseif not scfr then
  2095. scfr = blcf
  2096. end
  2097. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.35)
  2098. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.35)
  2099. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1.2)*euler(0,-1.2,0),.35)
  2100. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  2101. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.4,0,-.7)*euler(0,0,0),.35)
  2102. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  2103. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.6,0),.35)
  2104. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0),.35)
  2105. end
  2106. attack=false
  2107. con1:disconnect()
  2108. end
  2109.  
  2110. local sine = 0
  2111. local change = 1
  2112. local val = 0
  2113.  
  2114. while true do
  2115. swait()
  2116. sine = sine + change
  2117. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2118. local velderp=RootPart.Velocity.y
  2119. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2120. if equipped==true or equipped==false then
  2121. if attack==false then
  2122. idle=idle+1
  2123. else
  2124. idle=0
  2125. end
  2126. if idle>=500 then
  2127. if attack==false then
  2128. --Sheath()
  2129. end
  2130. end
  2131. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2132. Anim="Jump"
  2133. if attack==false then
  2134. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2135. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2136. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2137. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  2138. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2139. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2140. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2141. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2142. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2143. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2144. end
  2145. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2146. Anim="Fall"
  2147. if attack==false then
  2148. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2149. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2150. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2151. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  2152. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2153. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2154. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2155. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2156. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2157. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2158. end
  2159. elseif torvel<1 and hitfloor~=nil then
  2160. Anim="Idle"
  2161. if attack==false then
  2162. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2163. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  2164. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  2165. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5)),.3)
  2166. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2167. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2168. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  2169. end
  2170. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2171. local idleanim=0
  2172. Anim="Walk"
  2173. if attack==false then
  2174. change=3
  2175. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  2176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  2177. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  2178. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  2179. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2180. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2181. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)]]--
  2182. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2183. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  2184. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  2185. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  2186. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  2187. RH.C0=clerp(RH.C0,RHC0,.3)
  2188. LH.C0=clerp(LH.C0,LHC0,.3)
  2189. end
  2190. elseif torvel>=22 and hitfloor~=nil then
  2191. Anim="Run"
  2192. if attack==false then
  2193. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  2194. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  2195. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  2196. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  2197. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2198. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2199. Handleweld.C0=clerp(Handleweld.C0,cf(0,-.5,-.7)*angles(math.rad(-75),math.rad(0),math.rad(0)),.3)
  2200. end
  2201. end
  2202. end
  2203. end
  2204. --156434034
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement