Advertisement
-----------------

Mini Sword fe

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