Advertisement
samuelrichter66

Exia unit

May 29th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.44 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.  
  153.  
  154.  
  155. Player=game:GetService("Players").LocalPlayer
  156. Character=Player.Character
  157. PlayerGui=Player.PlayerGui
  158. Backpack=Player.Backpack
  159. Torso=Character.Torso
  160. Head=Character.Head
  161. Humanoid=Character.Humanoid
  162. m=Instance.new('Model',Character)
  163. LeftArm=Character["Left Arm"]
  164. LeftLeg=Character["Left Leg"]
  165. RightArm=Character["Right Arm"]
  166. RightLeg=Character["Right Leg"]
  167. LS=Torso["Left Shoulder"]
  168. LH=Torso["Left Hip"]
  169. RS=Torso["Right Shoulder"]
  170. RH=Torso["Right Hip"]
  171. Face = Head.face
  172. Neck=Torso.Neck
  173. it=Instance.new
  174. attacktype=1
  175. vt=Vector3.new
  176. cf=CFrame.new
  177. euler=CFrame.fromEulerAnglesXYZ
  178. angles=CFrame.Angles
  179. cloaked=false
  180. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  181. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  182. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  183. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  184. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  185. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  186. RootPart=Character.HumanoidRootPart
  187. RootJoint=RootPart.RootJoint
  188. RootCF=euler(-1.57,0,3.14)
  189. attack = false
  190. attackdebounce = false
  191. deb=false
  192. equipped=true
  193. hand=false
  194. MMouse=nil
  195. combo=0
  196. mana=0
  197. trispeed=.2
  198. attackmode='none'
  199. local idle=0
  200. local Anim="Idle"
  201. local Effects={}
  202. local gun=false
  203. local shoot=false
  204. player=nil
  205. mana=0
  206. local Mode="Gun"
  207.  
  208. mouse=Player:GetMouse()
  209. --save shoulders
  210. RSH, LSH=nil, nil
  211. --welds
  212. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  213. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  214. LH=Torso["Left Hip"]
  215. RH=Torso["Right Hip"]
  216. TorsoColor=Torso.BrickColor
  217. function NoOutline(Part)
  218. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  219. end
  220. player=Player
  221. ch=Character
  222. RSH=ch.Torso["Right Shoulder"]
  223. LSH=ch.Torso["Left Shoulder"]
  224. --
  225. RSH.Parent=nil
  226. LSH.Parent=nil
  227. --
  228. RW.Name="Right Shoulder"
  229. RW.Part0=ch.Torso
  230. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  231. RW.C1=cf(0, 0.5, 0)
  232. RW.Part1=ch["Right Arm"]
  233. RW.Parent=ch.Torso
  234. --
  235. LW.Name="Left Shoulder"
  236. LW.Part0=ch.Torso
  237. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  238. LW.C1=cf(0, 0.5, 0)
  239. LW.Part1=ch["Left Arm"]
  240. LW.Parent=ch.Torso
  241.  
  242. Player=game:GetService('Players').LocalPlayer
  243. Character=Player.Character
  244. Mouse=Player:GetMouse()
  245.  
  246.  
  247. local function weldBetween(a, b)
  248. local weldd = Instance.new("ManualWeld")
  249. weldd.Part0 = a
  250. weldd.Part1 = b
  251. weldd.C0 = CFrame.new()
  252. weldd.C1 = b.CFrame:inverse() * a.CFrame
  253. weldd.Parent = a
  254. return weldd
  255. end
  256.  
  257. function swait(num)
  258. if num==0 or num==nil then
  259. game:service'RunService'.Heartbeat:wait(0)
  260. else
  261. for i=0,num do
  262. game:service'RunService'.Heartbeat:wait(0)
  263. end
  264. end
  265. end
  266.  
  267. function nooutline(part)
  268. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  269. end
  270.  
  271. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  272. local fp=it("Part")
  273. fp.formFactor=formfactor
  274. fp.Parent=parent
  275. fp.Reflectance=reflectance
  276. fp.Transparency=transparency
  277. fp.CanCollide=false
  278. fp.Locked=true
  279. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  280. fp.Name=name
  281. fp.Size=size
  282. fp.Position=Character.Torso.Position
  283. nooutline(fp)
  284. fp.Material=material
  285. fp:BreakJoints()
  286. return fp
  287. end
  288.  
  289. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  290. local mesh=it(Mesh)
  291. mesh.Parent=part
  292. if Mesh=="SpecialMesh" then
  293. mesh.MeshType=meshtype
  294. mesh.MeshId=meshid
  295. end
  296. mesh.Offset=offset
  297. mesh.Scale=scale
  298. return mesh
  299. end
  300.  
  301. function weld(parent,part0,part1,c0,c1)
  302. local weld=it("Weld")
  303. weld.Parent=parent
  304. weld.Part0=part0
  305. weld.Part1=part1
  306. weld.C0=c0
  307. weld.C1=c1
  308. return weld
  309. end
  310.  
  311.  
  312. local function CFrameFromTopBack(at, top, back)
  313. local right = top:Cross(back)
  314. return CFrame.new(at.x, at.y, at.z,
  315. right.x, top.x, back.x,
  316. right.y, top.y, back.y,
  317. right.z, top.z, back.z)
  318. end
  319.  
  320. function Triangle(a, b, c)
  321. local edg1 = (c-a):Dot((b-a).unit)
  322. local edg2 = (a-b):Dot((c-b).unit)
  323. local edg3 = (b-c):Dot((a-c).unit)
  324. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  325. a, b, c = a, b, c
  326. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  327. a, b, c = b, c, a
  328. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  329. a, b, c = c, a, b
  330. else
  331. assert(false, "unreachable")
  332. end
  333.  
  334. local len1 = (c-a):Dot((b-a).unit)
  335. local len2 = (b-a).magnitude - len1
  336. local width = (a + (b-a).unit*len1 - c).magnitude
  337.  
  338. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  339.  
  340. local list = {}
  341.  
  342. local TrailColor = ("Lime green")
  343.  
  344. if len1 > 0.01 then
  345. local w1 = Instance.new('WedgePart', m)
  346. game:GetService("Debris"):AddItem(w1,5)
  347. w1.Material = "SmoothPlastic"
  348. w1.FormFactor = 'Custom'
  349. w1.BrickColor = BrickColor.new(TrailColor)
  350. w1.Transparency = 0
  351. w1.Reflectance = 0
  352. w1.Material = "SmoothPlastic"
  353. w1.CanCollide = false
  354. NoOutline(w1)
  355. local sz = Vector3.new(0.2, width, len1)
  356. w1.Size = sz
  357. local sp = Instance.new("SpecialMesh",w1)
  358. sp.MeshType = "Wedge"
  359. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  360. w1:BreakJoints()
  361. w1.Anchored = true
  362. w1.Parent = workspace
  363. w1.Transparency = 0.7
  364. table.insert(Effects,{w1,"Disappear",.01})
  365. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  366. table.insert(list,w1)
  367. end
  368.  
  369. if len2 > 0.01 then
  370. local w2 = Instance.new('WedgePart', m)
  371. game:GetService("Debris"):AddItem(w2,5)
  372. w2.Material = "SmoothPlastic"
  373. w2.FormFactor = 'Custom'
  374. w2.BrickColor = BrickColor.new(TrailColor)
  375. w2.Transparency = 0
  376. w2.Reflectance = 0
  377. w2.Material = "SmoothPlastic"
  378. w2.CanCollide = false
  379. NoOutline(w2)
  380. local sz = Vector3.new(0.2, width, len2)
  381. w2.Size = sz
  382. local sp = Instance.new("SpecialMesh",w2)
  383. sp.MeshType = "Wedge"
  384. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  385. w2:BreakJoints()
  386. w2.Anchored = true
  387. w2.Parent = workspace
  388. w2.Transparency = 0.7
  389. table.insert(Effects,{w2,"Disappear",.01})
  390. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  391. table.insert(list,w2)
  392. end
  393. return unpack(list)
  394. end
  395.  
  396.  
  397. so = function(id,par,vol,pit)
  398. coroutine.resume(coroutine.create(function()
  399. local sou = Instance.new("Sound",par or workspace)
  400. sou.Volume=vol
  401. sou.Pitch=pit or 1
  402. sou.SoundId=id
  403. swait()
  404. sou:play()
  405. game:GetService("Debris"):AddItem(sou,6)
  406. end))
  407. end
  408.  
  409. function clerp(a,b,t)
  410. local qa = {QuaternionFromCFrame(a)}
  411. local qb = {QuaternionFromCFrame(b)}
  412. local ax, ay, az = a.x, a.y, a.z
  413. local bx, by, bz = b.x, b.y, b.z
  414. local _t = 1-t
  415. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  416. end
  417.  
  418. function QuaternionFromCFrame(cf)
  419. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  420. local trace = m00 + m11 + m22
  421. if trace > 0 then
  422. local s = math.sqrt(1 + trace)
  423. local recip = 0.5/s
  424. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  425. else
  426. local i = 0
  427. if m11 > m00 then
  428. i = 1
  429. end
  430. if m22 > (i == 0 and m00 or m11) then
  431. i = 2
  432. end
  433. if i == 0 then
  434. local s = math.sqrt(m00-m11-m22+1)
  435. local recip = 0.5/s
  436. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  437. elseif i == 1 then
  438. local s = math.sqrt(m11-m22-m00+1)
  439. local recip = 0.5/s
  440. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  441. elseif i == 2 then
  442. local s = math.sqrt(m22-m00-m11+1)
  443. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  444. end
  445. end
  446. end
  447.  
  448. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  449. local xs, ys, zs = x + x, y + y, z + z
  450. local wx, wy, wz = w*xs, w*ys, w*zs
  451. local xx = x*xs
  452. local xy = x*ys
  453. local xz = x*zs
  454. local yy = y*ys
  455. local yz = y*zs
  456. local zz = z*zs
  457. 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))
  458. end
  459.  
  460. function QuaternionSlerp(a, b, t)
  461. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  462. local startInterp, finishInterp;
  463. if cosTheta >= 0.0001 then
  464. if (1 - cosTheta) > 0.0001 then
  465. local theta = math.acos(cosTheta)
  466. local invSinTheta = 1/math.sin(theta)
  467. startInterp = math.sin((1-t)*theta)*invSinTheta
  468. finishInterp = math.sin(t*theta)*invSinTheta
  469. else
  470. startInterp = 1-t
  471. finishInterp = t
  472. end
  473. else
  474. if (1+cosTheta) > 0.0001 then
  475. local theta = math.acos(-cosTheta)
  476. local invSinTheta = 1/math.sin(theta)
  477. startInterp = math.sin((t-1)*theta)*invSinTheta
  478. finishInterp = math.sin(t*theta)*invSinTheta
  479. else
  480. startInterp = t-1
  481. finishInterp = t
  482. end
  483. end
  484. 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
  485. end
  486.  
  487. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  488.  
  489.  
  490. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  491. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  492. end
  493.  
  494. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  495. if hit.Parent==nil then
  496. return
  497. end
  498. local h=hit.Parent:FindFirstChild("Humanoid")
  499. for _,v in pairs(hit.Parent:children()) do
  500. if v:IsA("Humanoid") then
  501. h=v
  502. end
  503. end
  504. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  505. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  506. end
  507. if hit.Parent.className=="Hat" then
  508. hit=hit.Parent.Parent:findFirstChild("Head")
  509. end
  510. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  511. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  512. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  513. return
  514. end]]
  515. -- hs(hit,1.2)
  516. local c=Instance.new("ObjectValue")
  517. c.Name="creator"
  518. c.Value=game:service("Players").LocalPlayer
  519. c.Parent=h
  520. game:GetService("Debris"):AddItem(c,.5)
  521. local Damage=math.random(minim,maxim)
  522. -- h:TakeDamage(Damage)
  523. local blocked=false
  524. local block=hit.Parent:findFirstChild("Block")
  525. if block~=nil then
  526. print(block.className)
  527. if block.className=="NumberValue" then
  528. if block.Value>0 then
  529. blocked=true
  530. if decreaseblock==nil then
  531. block.Value=block.Value-1
  532. end
  533. end
  534. end
  535. if block.className=="IntValue" then
  536. if block.Value>0 then
  537. blocked=true
  538. if decreaseblock~=nil then
  539. block.Value=block.Value-1
  540. end
  541. end
  542. end
  543. end
  544. if blocked==false then
  545. -- h:TakeDamage(Damage)
  546. h.Health=h.Health-Damage
  547. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  548. else
  549. h.Health=h.Health-(Damage/2)
  550. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  551. end
  552. if Type=="Knockdown" then
  553. local hum=hit.Parent.Humanoid
  554. hum.PlatformStand=true
  555. coroutine.resume(coroutine.create(function(HHumanoid)
  556. swait(1)
  557. HHumanoid.PlatformStand=false
  558. end),hum)
  559. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  560. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  561. local bodvol=Instance.new("BodyVelocity")
  562. bodvol.velocity=angle*knockback
  563. bodvol.P=5000
  564. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  565. bodvol.Parent=hit
  566. local rl=Instance.new("BodyAngularVelocity")
  567. rl.P=3000
  568. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  569. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  570. rl.Parent=hit
  571. game:GetService("Debris"):AddItem(bodvol,.5)
  572. game:GetService("Debris"):AddItem(rl,.5)
  573. elseif Type=="Normal" then
  574. local vp=Instance.new("BodyVelocity")
  575. vp.P=500
  576. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  577. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  578. if KnockbackType==1 then
  579. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  580. elseif KnockbackType==2 then
  581. vp.velocity=Property.CFrame.lookVector*knockback
  582. end
  583. if knockback>0 then
  584. vp.Parent=hit.Parent.Torso
  585. end
  586. game:GetService("Debris"):AddItem(vp,.5)
  587. elseif Type=="Up" then
  588. local bodyVelocity=Instance.new("BodyVelocity")
  589. bodyVelocity.velocity=vt(0,60,0)
  590. bodyVelocity.P=5000
  591. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  592. bodyVelocity.Parent=hit
  593. game:GetService("Debris"):AddItem(bodyVelocity,1)
  594. local rl=Instance.new("BodyAngularVelocity")
  595. rl.P=3000
  596. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  597. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  598. rl.Parent=hit
  599. game:GetService("Debris"):AddItem(rl,.5)
  600. elseif Type=="Snare" then
  601. local bp=Instance.new("BodyPosition")
  602. bp.P=2000
  603. bp.D=100
  604. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  605. bp.position=hit.Parent.Torso.Position
  606. bp.Parent=hit.Parent.Torso
  607. game:GetService("Debris"):AddItem(bp,1)
  608. elseif Type=="Target" then
  609. local Targetting = false
  610. if Targetting==false then
  611. ZTarget=hit.Parent.Torso
  612. coroutine.resume(coroutine.create(function(Part)
  613. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  614. swait(5)
  615. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  616. end),ZTarget)
  617. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  618. local targetgui=Instance.new("BillboardGui")
  619. targetgui.Parent=ZTarget
  620. targetgui.Size=UDim2.new(10,100,10,100)
  621. local targ=Instance.new("ImageLabel")
  622. targ.Parent=targetgui
  623. targ.BackgroundTransparency=1
  624. targ.Image="rbxassetid://4834067"
  625. targ.Size=UDim2.new(1,0,1,0)
  626. cam.CameraType="Scriptable"
  627. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  628. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  629. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  630. Targetting=true
  631. RocketTarget=ZTarget
  632. for i=1,Property do
  633. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  634. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  635. swait()
  636. end
  637. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  638. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  639. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  640. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  641. end
  642. Targetting=false
  643. RocketTarget=nil
  644. targetgui.Parent=nil
  645. cam.CameraType="Custom"
  646. end
  647. end
  648. local debounce=Instance.new("BoolValue")
  649. debounce.Name="DebounceHit"
  650. debounce.Parent=hit.Parent
  651. debounce.Value=true
  652. game:GetService("Debris"):AddItem(debounce,Delay)
  653. c=Instance.new("ObjectValue")
  654. c.Name="creator"
  655. c.Value=Player
  656. c.Parent=h
  657. game:GetService("Debris"):AddItem(c,.5)
  658. end
  659. end
  660.  
  661.  
  662. function ShowDamage(Pos, Text, Time, Color)
  663. local Rate = (1 / 30)
  664. local Pos = (Pos or Vector3.new(0, 0, 0))
  665. local Text = (Text or "")
  666. local Time = (Time or 2)
  667. local Color = (Color or Color3.new(1, 0, 0))
  668. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  669. EffectPart.Anchored = true
  670. local BillboardGui = Instance.new("BillboardGui")
  671. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  672. BillboardGui.Adornee = EffectPart
  673. local TextLabel = Instance.new("TextLabel")
  674. TextLabel.BackgroundTransparency = 1
  675. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  676. TextLabel.Text = Text
  677. TextLabel.TextColor3 = Color
  678. TextLabel.TextScaled = true
  679. TextLabel.Font = Enum.Font.ArialBold
  680. TextLabel.Parent = BillboardGui
  681. BillboardGui.Parent = EffectPart
  682. game.Debris:AddItem(EffectPart, (Time + 0.1))
  683. EffectPart.Parent = game:GetService("Workspace")
  684. Delay(0, function()
  685. local Frames = (Time / Rate)
  686. for Frame = 1, Frames do
  687. wait(Rate)
  688. local Percent = (Frame / Frames)
  689. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  690. TextLabel.TextTransparency = Percent
  691. end
  692. if EffectPart and EffectPart.Parent then
  693. EffectPart:Destroy()
  694. end
  695. end)
  696. end
  697.  
  698. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.800000012, 0.600000024, 0.400000036))
  699. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0999984741, 0.00293731689, -0.997625113, 0.999999762, 0, 0, -0, -2.98023224e-008, 1, 0, -0.999999642, -2.98023206e-008))
  700. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  701. BarrelA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","BarrelA",Vector3.new(0.400000006, 0.400000036, 0.200000003))
  702. BarrelAweld=weld(m,handle,BarrelA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, -0.501502991, 0.70533812, 0.999999762, 8.9397489e-013, -4.26325811e-014, 8.93974673e-013, -1, -7.63833441e-014, -4.2632554e-014, 7.81597009e-014, -0.999999762))
  703. mesh("BlockMesh",BarrelA,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2))
  704. BarrelB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","BarrelB",Vector3.new(0.400000006, 0.400000036, 0.200000003))
  705. BarrelBweld=weld(m,handle,BarrelB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.498413086, 0.705340028, 0.999999762, 8.93975215e-013, -4.26325811e-014, 8.93974998e-013, -1, -7.99360578e-014, -4.2632554e-014, 8.17124146e-014, -0.999999762))
  706. mesh("BlockMesh",BarrelB,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2))
  707. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 2.60000038))
  708. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.701442719, -0.600021362, 2.49932575, 0.999998927, 1.87752244e-006, -0.000799447123, -1.84774353e-006, 0.999999166, -1.93715053e-007, 0.000799283211, 2.23561045e-007, 0.999998808))
  709. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  710. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  711. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.405347705, 0.497962952, 0.999999285, -0, 0, 0, 1.49011647e-008, -0.999999046, -0, 0.999999762, 1.49011594e-008))
  712. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  713. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  714. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.405347705, 0.501495361, 0.999999285, -0, 0, 0, 1.49011647e-008, -0.999999046, -0, 0.999999762, 1.49011594e-008))
  715. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2))
  716. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 1.00000012, 1.20000029))
  717. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700000763, -3.05175781e-005, -3.76701355e-005, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  718. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 2.20000005, 0.599999964))
  719. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700000763, -3.05175781e-005, 0.899943829, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  720. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.200000003, 1.20000005))
  721. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.599975586, 3.38554382e-005, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  722. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  723. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 1.79999995, 0.599999964))
  724. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.709243774, -2.28881836e-005, 0.899943829, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  725. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.800000012, 0.200000003, 0.400000036))
  726. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.399993896, -5.96046448e-006, 0.999999762, -0, 0, -0, 1, -1.77635684e-015, 0, 0, 0.999999762))
  727. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  728. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.99999994))
  729. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.713443756, -0.500030518, 1.69926405, 0.999998927, -2.26500038e-006, -0.000799596135, 2.27987721e-006, 0.999999225, 1.93017172e-007, 0.000799476926, -2.231682e-007, 0.999998927))
  730. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  731. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 1.20000017))
  732. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700153351, -0.700019836, 0.000669956207, -0.999999106, 1.87757018e-006, 0.000799469941, 1.84774353e-006, 0.999999166, 1.34110437e-007, -0.000799469592, 1.63956443e-007, -0.999999166))
  733. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  734. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000083, 2.60000038))
  735. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.698387146, -0.599975586, 2.50042844, -0.999998689, -1.90737251e-006, -0.000799447123, 1.90734818e-006, -0.999998927, -1.34110465e-007, -0.000799282978, -1.64014665e-007, 0.999998808))
  736. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  737. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 2.5999999))
  738. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709453583, -0.399978638, 2.50040436, -0.999999166, 2.30715773e-006, -0.000799596135, -2.33717014e-006, -0.999999523, 2.5262176e-007, -0.000799476926, 2.82754144e-007, 0.999998927))
  739. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  740. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  741. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700153351, -0.80002594, -0.2993083, -0.999999106, 1.87757018e-006, 0.000799469941, 1.84774353e-006, 0.999999166, 1.34110437e-007, -0.000799469592, 1.63956443e-007, -0.999999166))
  742. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  743. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.599999964))
  744. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.70142746, -0.80002594, 1.49932528, 0.999998927, 1.87752244e-006, -0.000799447123, -1.84774353e-006, 0.999999166, -1.93715053e-007, 0.000799283211, 2.23561045e-007, 0.999998808))
  745. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  746. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 1.20000005))
  747. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699836731, -0.69997406, -0.000449538231, 0.999999344, -1.89480204e-006, 0.000799469941, -1.92476682e-006, -0.999999523, 1.93715039e-007, 0.000799469766, -2.23517404e-007, -0.999999166))
  748. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  749. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.99999994, 0.200000003, 2))
  750. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0.599975586, 0.999940634, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  751. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.40000045, 0.200000003, 1.20000005))
  752. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.000755310059, 5.96046448e-005, -1.48553302e-013, -0.999995828, 2.98021838e-008, -0.999999762, -1.503297e-013, -2.98021909e-008, 2.98023295e-008, -2.9802214e-008, -0.999995589))
  753. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.285999984, 1.01199996))
  754. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.599999964))
  755. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.698394775, -0.799972534, 1.50044394, -0.999998689, -1.90737251e-006, -0.000799447123, 1.90734818e-006, -0.999998927, -1.34110465e-007, -0.000799282978, -1.64014665e-007, 0.999998808))
  756. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  757. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  758. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.405347705, -0.502029419, 0.999999285, -0, 0, 0, 1.49011647e-008, -0.999999046, -0, 0.999999762, 1.49011594e-008))
  759. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  760. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.400000006, 0.200000003))
  761. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.39996767, 0.599975586, 0.999999762, -0, 0, 0, 1.49011647e-008, -0.999999523, -0, 0.999999762, 1.49011594e-008))
  762. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  763. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  764. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699840546, -0.799964905, -0.300427675, 0.999999344, -1.89480204e-006, 0.000799469941, -1.92476682e-006, -0.999999523, 1.93715039e-007, 0.000799469766, -2.23517404e-007, -0.999999166))
  765. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  766. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 1.80000019))
  767. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.195159912, -0.900024414, 0.899938345, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  768. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  769. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.194999695, -0.900024414, 0.200763583, -0.999999106, 1.87757018e-006, 0.000799469941, 1.84774353e-006, 0.999999166, 1.34110437e-007, -0.000799469592, 1.63956443e-007, -0.999999166))
  770. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  771. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1.20000005, 0.800000012, 0.400000006))
  772. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.39996767, 0.499969482, 0.999999642, -0, 0, 0, 1.49011647e-008, -0.999999404, -0, 0.999999762, 1.49011594e-008))
  773. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  774. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  775. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.203845978, -0.899963379, 1.90046763, 0.99999851, -1.38333075e-006, 0.000811993901, 1.25192548e-006, 0.999998987, 9.15403871e-006, -0.00081211311, -9.18428123e-006, 0.999998808))
  776. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  777. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.999999881))
  778. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709457397, -0.499977112, 1.70040178, -0.999999166, 2.30715773e-006, -0.000799596135, -2.33717014e-006, -0.999999523, 2.5262176e-007, -0.000799476926, 2.82754144e-007, 0.999998927))
  779. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  780. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  781. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.405341506, -0.502037048, 0.999999285, -0, 0, 0, 1.49011647e-008, -0.999999046, -0, 0.999999762, 1.49011594e-008))
  782. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2))
  783. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000143, 1.21000028))
  784. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.708374023, -3.05175781e-005, -0.00504338741, 0.999999523, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999523))
  785. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1.20000005))
  786. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709457397, -0.500030518, 0.000697374344, -0.999999166, 1.89247135e-006, 0.000799469941, 1.86264469e-006, 0.999999225, 1.34110437e-007, -0.000799469533, 1.63927339e-007, -0.999999166))
  787. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  788. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.400000006, 0.200000003))
  789. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.39996767, -0.600021362, 0.999999762, -0, 0, 0, 1.49011647e-008, -0.999999523, -0, 0.999999762, 1.49011594e-008))
  790. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  791. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  792. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.196155548, -0.899963379, 1.90047097, 0.99999851, -1.38333075e-006, 0.000811993901, 1.25192548e-006, 0.999998987, 9.15403871e-006, -0.00081211311, -9.18428123e-006, 0.999998808))
  793. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  794. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 2.5999999))
  795. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.713447571, -0.400032043, 2.49926639, 0.999998927, -2.26500038e-006, -0.000799596135, 2.27987721e-006, 0.999999225, 1.93017172e-007, 0.000799476926, -2.231682e-007, 0.999998927))
  796. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  797. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.4000001, 2))
  798. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.5, -3.05175781e-005, 0.999940634, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  799. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1.20000005))
  800. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.709461212, -0.499969482, -0.000437021255, 0.999999344, -1.89480204e-006, 0.000799469941, -1.92476682e-006, -0.999999523, 1.93715039e-007, 0.000799469766, -2.23517404e-007, -0.999999166))
  801. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  802. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.200000003, 1.20000005))
  803. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.600028992, 3.38554382e-005, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  804. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  805. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1.20000005, 0.800000012, 0.400000006))
  806. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.39996767, -0.500030518, 0.999999642, -0, 0, 0, 1.49011647e-008, -0.999999404, -0, 0.999999762, 1.49011594e-008))
  807. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  808. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(1.40000045, 0.200000018, 1.20000005))
  809. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.000755310059, 6.81877136e-005, 8.88178631e-016, -1, 2.98023206e-008, -0.999999762, -1.77635769e-015, -2.98023224e-008, 2.98023224e-008, -2.98023259e-008, -0.999999762))
  810. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 1.80000019))
  812. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.190341949, -0.900024414, 0.899938345, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  813. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.800000012, 0.200000003, 0.400000036))
  814. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.400001526, -5.96046448e-006, 0.999999762, -0, 0, -0, 1, -1.77635684e-015, 0, 0, 0.999999762))
  815. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  816. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  817. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.190494537, -0.900024414, 0.200588226, -0.999999106, 1.87757018e-006, 0.000799469941, 1.84774353e-006, 0.999999166, 1.34110437e-007, -0.000799469592, 1.63956443e-007, -0.999999166))
  818. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  819. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  820. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709449768, -0.600021362, -0.299300909, -0.999999166, 1.89247135e-006, 0.000799469941, 1.86264469e-006, 0.999999225, 1.34110437e-007, -0.000799469533, 1.63927339e-007, -0.999999166))
  821. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  822. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.200000152, 2.61000037))
  823. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.708377838, 2.28881836e-005, -2.50490212, 0.999999642, -0, 0, 0, -0.999999702, -4.470348e-008, 0, 2.98023295e-008, -0.999999344))
  824. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  825. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.709445953, -0.599967957, -0.300435305, 0.999999344, -1.89480204e-006, 0.000799469941, -1.92476682e-006, -0.999999523, 1.93715039e-007, 0.000799469766, -2.23517404e-007, -0.999999166))
  826. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  827. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1, 0.200000003, 2))
  828. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, -0.600021362, 0.999940634, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  829. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000143, 2.60000014))
  830. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700000763, -3.05175781e-005, 2.49992704, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762))
  831.  
  832. BladeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladeHandle",Vector3.new(0.200000003, 1, 3.39999986))
  833. BladeHandleweld=weld(m,Character["Right Arm"],BladeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0872383118, -1.20300293, 0.302297354, 1, -2.21671375e-008, 7.04762897e-008, -7.04762684e-008, 2.98023188e-008, 0.999999404, -2.2167157e-008, -0.999999285, 2.98023224e-008))
  834. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,1,"Lime green","Hitbox",Vector3.new(0.200000003, 4.79999971, 1))
  835. Hitboxweld=weld(m,BladeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.699994326, 0, 1, -9.99836402e-007, 1.80018773e-007, -1.80019143e-007, 1.49011647e-008, 0.999998808, -9.99837425e-007, -0.999998808, 1.49011719e-008))
  836. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 3.4000001))
  837. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00135803223, -0.393920898, -0.000129699707, -0.999998927, 2.05645279e-006, 0.000802798022, -2.0555824e-006, -0.999997914, 3.17394552e-006, 0.000802962692, 3.11428425e-006, 0.999998093))
  838. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.200000003, 0.220000014, 0.800000072))
  839. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399986267, -5.7220459e-006, 1.70002365, 1.42108547e-014, -0.999998808, -1.77635684e-015, -1, 2.13162821e-014, -2.98022744e-008, 2.98023828e-008, -3.55271368e-015, -0.999998808))
  840. mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  841. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.200000003, 0.220000014, 0.800000072))
  842. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.400005341, -5.7220459e-006, 1.70001566, 4.33431069e-013, -0.999998093, 1.63424829e-013, -1, -9.23705556e-014, -2.98015639e-008, 2.98019547e-008, 2.14939178e-013, -0.999998093))
  843. mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  844. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 0.399999976))
  845. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00168228149, -0.399024963, 1.89990211, 0.999998748, -2.1309047e-006, 0.000802797964, 2.13086582e-006, 0.999997854, 3.29315458e-006, -0.000802962575, -3.21859238e-006, 0.999998093))
  846. mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  847. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 3.4000001))
  848. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00168037415, -0.399391174, -0.000123500824, 0.999998748, -2.1309047e-006, 0.000802797964, 2.13086582e-006, 0.999997854, 3.29315458e-006, -0.000802962575, -3.21859238e-006, 0.999998093))
  849. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 0.399999976))
  850. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00135612488, -0.39358139, 1.89990449, -0.999998927, 2.05645279e-006, 0.000802798022, -2.0555824e-006, -0.999997914, 3.17394552e-006, 0.000802962692, 3.11428425e-006, 0.999998093))
  851. mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  852. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(0.200000003, 0.520000041, 1.39999998))
  853. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00136566162, -0.239994049, 2.3998909, 0.999999166, -1.95434222e-006, -0.000799282745, 1.92285847e-006, 0.999998212, -1.86264401e-006, 0.000799447356, 2.07120365e-006, 0.999998033))
  854. mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  855. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(1.00000012, 0.200000003, 1.00000012))
  856. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -5.7220459e-006, 1.60001981, 3.26849658e-013, -0.999999404, -3.01980663e-014, -1, -3.05533376e-013, -2.98017593e-008, 2.98018055e-008, 2.84217094e-014, -0.999999404))
  857. mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  858. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(0.200000003, 0.479999989, 1.39999998))
  859. BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00135612488, -0.260002136, 2.39991736, -0.999998927, 2.05645279e-006, 0.000802798022, -2.0555824e-006, -0.999997914, 3.17394552e-006, 0.000802962692, 3.11428425e-006, 0.999998093))
  860. mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  861.  
  862. function effect(Color,Ref,LP,P1,returnn)
  863. if LP==nil or P1==nil then return end
  864. local effectsmsh=Instance.new("CylinderMesh")
  865. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  866. effectsmsh.Name="Mesh"
  867. local effectsg=Instance.new("Part")
  868. NoOutline(effectsg)
  869. effectsg.formFactor=3
  870. effectsg.CanCollide=false
  871. effectsg.Name="Eff"
  872. effectsg.Locked=true
  873. effectsg.Anchored=true
  874. effectsg.Size=Vector3.new(0.5,1,0.5)
  875. effectsg.Parent=workspace
  876. effectsmsh.Parent=effectsg
  877. effectsg.BrickColor=BrickColor.new(Color)
  878. effectsg.Reflectance=Ref
  879. local point1=P1
  880. local mg=(LP.p - point1.p).magnitude
  881. effectsg.Size=Vector3.new(0.5,mg,0.5)
  882. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  883. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  884. game:GetService("Debris"):AddItem(effectsg,2)
  885. if returnn then return effectsg end
  886. if not returnn then
  887. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  888. end
  889. end
  890.  
  891. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  892. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  893. prt.Anchored=true
  894. prt.CFrame=cframe
  895. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  896. game:GetService("Debris"):AddItem(prt,2)
  897. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  898. end
  899.  
  900. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  901. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  902. prt.Anchored=true
  903. prt.CFrame=cframe
  904. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  905. game:GetService("Debris"):AddItem(prt,2)
  906. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  907. end
  908.  
  909. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  910. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  911. prt.Anchored=true
  912. prt.CFrame=cframe
  913. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  914. game:GetService("Debris"):AddItem(prt,2)
  915. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  916. end
  917.  
  918. function Shootcombo()
  919. attack = true
  920. for i = 0,1,0.1 do
  921. swait()
  922. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  923. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  924. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  925. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  926. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  927. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(10)),.3)
  928. end
  929. so("http://www.roblox.com/asset/?id=169445602",BarrelA,.7,1.5)
  930. so("http://www.roblox.com/asset/?id=169445602",BarrelB,.7,1.5)
  931. so("http://www.roblox.com/asset/?id=169380505",BarrelA,.7,1.1)
  932. so("http://www.roblox.com/asset/?id=169380505",BarrelB,.7,1.1)
  933. table.insert(Effects,{BarrelA.CFrame.lookVector,"Shoot",10,BarrelA.Position,5,10,0,1})
  934. table.insert(Effects,{BarrelB.CFrame.lookVector,"Shoot",10,BarrelB.Position,5,10,0,1})
  935. for i = 0,1,0.2 do
  936. swait()
  937. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  938. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(5),math.rad(-50)),.3)
  939. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(30), math.rad(50)), 0.3)
  940. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3)
  941. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  942. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(10)),.3)
  943. end
  944. attack = false
  945. end
  946.  
  947. function BladeAttackOne()
  948. attack = true
  949. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end)
  950. for i = 0,1,0.1 do
  951. swait()
  952. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.4)
  953. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  954. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(100)),0.4)
  955. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)),0.4)
  956. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  957. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(0)),0.4)
  958. end
  959. --so("http://roblox.com/asset/?id=206083107",handle,1,1)
  960. so("http://www.roblox.com/asset/?id=200633148",handle,1,.9)
  961. for i = 0,1,0.1 do
  962. swait()
  963. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  964. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  965. local h = 5
  966. 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)
  967. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  968. 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)
  969. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  970. scfr = blcf
  971. elseif not scfr then
  972. scfr = blcf
  973. end
  974. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  975. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  976. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  977. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  978. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  979. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(-10)),0.4)
  980. end
  981. attack = false
  982. con:disconnect()
  983. end
  984.  
  985. function BladeAttackTwo()
  986. attack = true
  987. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end)
  988. for i = 0,1,0.1 do
  989. swait()
  990. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  991. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  992. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  993. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  994. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  995. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  996. end
  997. --so("http://roblox.com/asset/?id=206083107",handle,1,.9)
  998. so("http://www.roblox.com/asset/?id=200633196",handle,1,1)
  999. for i = 0,1,0.1 do
  1000. swait()
  1001. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1002. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1003. local h = 5
  1004. 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)
  1005. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1006. 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)
  1007. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1008. scfr = blcf
  1009. elseif not scfr then
  1010. scfr = blcf
  1011. end
  1012. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1013. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1014. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1015. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1016. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1017. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1018. end
  1019. attack = false
  1020. con:disconnect()
  1021. end
  1022.  
  1023. function BladeAttackThree()
  1024. attack = true
  1025. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end)
  1026. for i = 0,1,0.1 do
  1027. swait()
  1028. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),0.4)
  1029. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1030. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  1031. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1032. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  1033. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4)
  1034. end
  1035. --so("http://roblox.com/asset/?id=206083107",handle,1,1.1)
  1036. so("http://www.roblox.com/asset/?id=200633196",handle,1,.9)
  1037. for i = 0,1,0.1 do
  1038. swait()
  1039. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1040. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1041. local h = 5
  1042. 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)
  1043. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1044. 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)
  1045. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1046. scfr = blcf
  1047. elseif not scfr then
  1048. scfr = blcf
  1049. end
  1050. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.4)
  1051. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.3)
  1052. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)),0.4)
  1053. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  1054. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  1055. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4)
  1056. end
  1057. attack = false
  1058. con:disconnect()
  1059. end
  1060.  
  1061. function BladeAttackFour()
  1062. attack = true
  1063. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end)
  1064. for i = 0,1,0.1 do
  1065. swait()
  1066. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1067. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.4)
  1068. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1069. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1070. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  1071. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4)
  1072. end
  1073. so("http://www.roblox.com/asset/?id=200633148",handle,1,.8)
  1074. Torso.Velocity=Head.CFrame.lookVector*100
  1075. for i = 0,1,0.05 do
  1076. swait()
  1077. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1078. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1079. local h = 5
  1080. 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)
  1081. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1082. 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)
  1083. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1084. scfr = blcf
  1085. elseif not scfr then
  1086. scfr = blcf
  1087. end
  1088. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3)
  1089. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-30),math.rad(70)),.3)
  1090. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)),0.3)
  1091. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1092. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3)
  1093. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1094. end
  1095. con:disconnect()
  1096. attack = false
  1097. end
  1098.  
  1099. function ElecEffect(cff,x,y,z)
  1100. local prt=part(3,workspace,"SmoothPlastic",0,0,BrickColor.new("Lime green"),"Part",vt(1,1,1))
  1101. prt.Anchored=true
  1102. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1103. prt.CFrame=cf(prt.Position)
  1104. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1105. game:GetService("Debris"):AddItem(prt,2)
  1106. xval=math.random()/2
  1107. yval=math.random()/2
  1108. zval=math.random()/2
  1109. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1110. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  1111. end
  1112.  
  1113. function Test()
  1114. ElecEffect(Hitbox.CFrame,2,4,2)
  1115. end
  1116.  
  1117. attacktype1 = 1
  1118. mouse.Button1Down:connect(function()
  1119. if Mode == "Gun" then
  1120. if attack==false then
  1121. if attacktype1==1 then
  1122. attack=true
  1123. attacktype1=1
  1124. Shootcombo()
  1125. end
  1126. end
  1127. end
  1128. if Mode == "Blade" then
  1129. if attack==false then
  1130. if attacktype==1 then
  1131. attack=true
  1132. attacktype=2
  1133. BladeAttackOne()
  1134. elseif attacktype==2 then
  1135. attack=true
  1136. attacktype=3
  1137. BladeAttackTwo()
  1138. elseif attacktype==3 then
  1139. attack=true
  1140. attacktype=4
  1141. BladeAttackThree()
  1142. elseif attacktype==4 then
  1143. attack=true
  1144. attacktype=1
  1145. BladeAttackFour()
  1146. end
  1147. end
  1148. end
  1149. end)
  1150.  
  1151. mouse.KeyDown:connect(function(k)
  1152. k=k:lower()
  1153. if k=='f' then
  1154. if Mode == "Gun" then
  1155. Mode = "Blade"
  1156. so("http://www.roblox.com/asset/?id=152052659",handle,1,1)
  1157. elseif Mode == "Blade" then
  1158. Mode = "Gun"
  1159. so("http://www.roblox.com/asset/?id=211134014",handle,1,1)
  1160. end
  1161. elseif k=='q' then
  1162. Test()
  1163. end
  1164. end)
  1165.  
  1166.  
  1167.  
  1168. local sine = 0
  1169. local change = 1
  1170. local val = 0
  1171.  
  1172. while true do
  1173. swait()
  1174. sine = sine + change
  1175. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1176. local velderp=RootPart.Velocity.y
  1177. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1178. if equipped==true or equipped==false then
  1179. if attack==false then
  1180. idle=idle+1
  1181. else
  1182. idle=0
  1183. end
  1184. if idle>=500 then
  1185. if attack==false then
  1186. --Sheath()
  1187. end
  1188. end
  1189. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1190. Anim="Jump"
  1191. if attack==false and Mode == "Gun" then
  1192. change=3
  1193. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1194. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1195. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1196. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1197. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  1198. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.3)
  1199. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1200. end
  1201. if attack==false and Mode == "Blade" then
  1202. change=3
  1203. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1204. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1205. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1206. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1207. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  1208. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.3)
  1209. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1210. end
  1211. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1212. Anim="Fall"
  1213. if attack==false and Mode == "Gun" then
  1214. change=3
  1215. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1216. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1217. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1218. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1219. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1220. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20)),.3)
  1221. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1222. end
  1223. if attack==false and Mode == "Blade" then
  1224. change=3
  1225. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1226. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1227. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1228. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1229. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1230. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20)),.3)
  1231. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1232. end
  1233. elseif torvel<1 and hitfloor~=nil then
  1234. Anim="Idle"
  1235. if attack==false and Mode == "Gun" then
  1236. change=3
  1237. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1238. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-20)),.3)
  1239. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1240. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1241. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0)),.3)
  1242. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(10)),.3)
  1243. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1244. end
  1245. if attack==false and Mode == "Blade" then
  1246. change=3
  1247. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1248. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  1249. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(20)), 0.3)
  1250. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.3)
  1251. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),.3)
  1252. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5)),.3)
  1253. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1254. end
  1255. elseif torvel>2 and hitfloor~=nil then
  1256. Anim="Walk"
  1257. if attack==false and Mode == "Gun" then
  1258. change=3
  1259. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1260. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-0)),.3)
  1261. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.3)
  1262. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3)
  1263. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1264. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.3)
  1265. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1266. end
  1267. if attack==false and Mode == "Blade" then
  1268. change=3
  1269. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  1270. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(1),math.rad(-10)),.3)
  1271. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(5), math.rad(20)), 0.3)
  1272. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1273. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1274. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1275. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1276. end
  1277. end
  1278. end
  1279. if #Effects>0 then
  1280. --table.insert(Effects,{prt,"Block1",delay})
  1281. for e=1,#Effects do
  1282. if Effects[e]~=nil then
  1283. --for j=1,#Effects[e] do
  1284. local Thing=Effects[e]
  1285. if Thing~=nil then
  1286. local Part=Thing[1]
  1287. local Mode=Thing[2]
  1288. local Delay=Thing[3]
  1289. local IncX=Thing[4]
  1290. local IncY=Thing[5]
  1291. local IncZ=Thing[6]
  1292. if Thing[2]=="DecreaseStat" then
  1293. Thing[5]=Thing[5]-1
  1294. if Thing[5]<=0 then
  1295. if Thing[1]:findFirstChild("Stats")~=nil then
  1296. Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  1297. end
  1298. table.remove(Effects,e)
  1299. end
  1300. end
  1301. if Thing[2]=="Shoot" then
  1302. local Look=Thing[1]
  1303. local hit,pos = rayCast(Thing[4],Look,20,m)
  1304. local mag=(Thing[4]-pos).magnitude
  1305. MagicHead(BrickColor.new("Lime green"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,0.1)
  1306. Thing[4]=Thing[4]+(Look*20)
  1307. Thing[3]=Thing[3]-1
  1308. if hit~=nil then
  1309. Thing[3]=0
  1310. if Thing[8]==1 then
  1311. Damagefunc(Hitbox,hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,5),nil,nil,true)
  1312. elseif Thing[8]==2 then
  1313. Damagefunc(Hitbox,hit,Thing[5],Thing[6],Thing[7],"NormalDecreaseMvmt1",RootPart,0,2,math.random(1,5),nil,nil,true)
  1314. end
  1315. ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Lime green"),"Reference",vt())
  1316. ref.Anchored=true
  1317. ref.CFrame=cf(pos)
  1318. MagicCircle(BrickColor.new("Lime green"),cf(pos),5,5,5,1,1,1,0.03)
  1319. game:GetService("Debris"):AddItem(ref,1)
  1320. end
  1321. if Thing[3]<=0 then
  1322. table.remove(Effects,e)
  1323. end
  1324. end
  1325. if Thing[2]=="CylinderClang" then
  1326. if Thing[3]<=1 then
  1327. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  1328. Thing[7]=Thing[1].CFrame
  1329. effect("New Yeller",0,Thing[8],Thing[7])
  1330. Thing[8]=Thing[7]
  1331. Thing[3]=Thing[3]+Thing[4]
  1332. else
  1333. Part.Parent=nil
  1334. table.remove(Effects,e)
  1335. end
  1336. --[[Mesh=Thing[7]
  1337. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1338. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  1339. end
  1340. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" then
  1341. if Thing[1].Transparency<=1 then
  1342. if Thing[2]=="Block1" then
  1343. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1344. Mesh=Thing[7]
  1345. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1346. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1347. elseif Thing[2]=="Block2" then
  1348. Thing[1].CFrame=Thing[1].CFrame
  1349. Mesh=Thing[7]
  1350. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1351. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1352. elseif Thing[2]=="Cylinder" then
  1353. Mesh=Thing[7]
  1354. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1355. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1356. elseif Thing[2]=="Blood" then
  1357. Mesh=Thing[7]
  1358. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1359. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1360. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1361. elseif Thing[2]=="Elec" then
  1362. Mesh=Thing[1].Mesh
  1363. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1364. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1365. elseif Thing[2]=="Disappear" then
  1366. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1367. end
  1368. else
  1369. Part.Parent=nil
  1370. table.remove(Effects,e)
  1371. end
  1372. end
  1373. end
  1374. --end
  1375. end
  1376. end
  1377. end
  1378. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement