Advertisement
Kittdy3

Untitled

Jan 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.83 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89. Player=owner
  90. Character=Player.Character
  91. PlayerGui=Player.PlayerGui
  92. Backpack=Player.Backpack
  93. Torso=Character.Torso
  94. Head=Character.Head
  95. Humanoid=Character.Humanoid
  96. m=Instance.new('Model',Character)
  97. LeftArm=Character["Left Arm"]
  98. LeftLeg=Character["Left Leg"]
  99. RightArm=Character["Right Arm"]
  100. RightLeg=Character["Right Leg"]
  101. LS=Torso["Left Shoulder"]
  102. LH=Torso["Left Hip"]
  103. RS=Torso["Right Shoulder"]
  104. RH=Torso["Right Hip"]
  105. Face = Head.face
  106. Neck=Torso.Neck
  107. it=Instance.new
  108. attacktype=1
  109. vt=Vector3.new
  110. cf=CFrame.new
  111. euler=CFrame.fromEulerAnglesXYZ
  112. angles=CFrame.Angles
  113. cloaked=false
  114. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  115. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  116. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  117. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  118. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  119. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  120. RootPart=Character.HumanoidRootPart
  121. RootJoint=RootPart.RootJoint
  122. RootCF=euler(-1.57,0,3.14)
  123. attack = false
  124. attackdebounce = false
  125. deb=false
  126. equipped=true
  127. hand=false
  128. MMouse=nil
  129. combo=0
  130. mana=0
  131. trispeed=.2
  132. attackmode='none'
  133. local idle=0
  134. local Anim="Idle"
  135. local Effects={}
  136. local gun=false
  137. local shoot=false
  138. player=nil
  139. mana=0
  140. local Mode="Gun"
  141.  
  142. --save shoulders
  143. RSH, LSH=nil, nil
  144. --welds
  145. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  146. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  147. LH=Torso["Left Hip"]
  148. RH=Torso["Right Hip"]
  149. TorsoColor=Torso.BrickColor
  150. function NoOutline(Part)
  151. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  152. end
  153. player=Player
  154. ch=Character
  155. RSH=ch.Torso["Right Shoulder"]
  156. LSH=ch.Torso["Left Shoulder"]
  157. --
  158. RSH.Parent=nil
  159. LSH.Parent=nil
  160. --
  161. RW.Name="Right Shoulder"
  162. RW.Part0=ch.Torso
  163. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  164. RW.C1=cf(0, 0.5, 0)
  165. RW.Part1=ch["Right Arm"]
  166. RW.Parent=ch.Torso
  167. --
  168. LW.Name="Left Shoulder"
  169. LW.Part0=ch.Torso
  170. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  171. LW.C1=cf(0, 0.5, 0)
  172. LW.Part1=ch["Left Arm"]
  173. LW.Parent=ch.Torso
  174.  
  175. Player=owner
  176. Character=Player.Character
  177.  
  178.  
  179. local function weldBetween(a, b)
  180. local weldd = Instance.new("ManualWeld")
  181. weldd.Part0 = a
  182. weldd.Part1 = b
  183. weldd.C0 = CFrame.new()
  184. weldd.C1 = b.CFrame:inverse() * a.CFrame
  185. weldd.Parent = a
  186. return weldd
  187. end
  188.  
  189. function swait(num)
  190. if num==0 or num==nil then
  191. game:service'RunService'.Heartbeat:wait(0)
  192. else
  193. for i=0,num do
  194. game:service'RunService'.Heartbeat:wait(0)
  195. end
  196. end
  197. end
  198.  
  199. function nooutline(part)
  200. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  201. end
  202.  
  203. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  204. local fp=it("Part")
  205. fp.formFactor=formfactor
  206. fp.Parent=parent
  207. fp.Reflectance=reflectance
  208. fp.Transparency=transparency
  209. fp.CanCollide=false
  210. fp.Locked=true
  211. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  212. fp.Name=name
  213. fp.Size=size
  214. fp.Position=Character.Torso.Position
  215. nooutline(fp)
  216. fp.Material=material
  217. fp:BreakJoints()
  218. return fp
  219. end
  220.  
  221. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  222. local mesh=it(Mesh)
  223. mesh.Parent=part
  224. if Mesh=="SpecialMesh" then
  225. mesh.MeshType=meshtype
  226. mesh.MeshId=meshid
  227. end
  228. mesh.Offset=offset
  229. mesh.Scale=scale
  230. return mesh
  231. end
  232.  
  233. function weld(parent,part0,part1,c0,c1)
  234. local weld=it("Weld")
  235. weld.Parent=parent
  236. weld.Part0=part0
  237. weld.Part1=part1
  238. weld.C0=c0
  239. weld.C1=c1
  240. return weld
  241. end
  242.  
  243.  
  244. local function CFrameFromTopBack(at, top, back)
  245. local right = top:Cross(back)
  246. return CFrame.new(at.x, at.y, at.z,
  247. right.x, top.x, back.x,
  248. right.y, top.y, back.y,
  249. right.z, top.z, back.z)
  250. end
  251.  
  252. function Triangle(a, b, c)
  253. local edg1 = (c-a):Dot((b-a).unit)
  254. local edg2 = (a-b):Dot((c-b).unit)
  255. local edg3 = (b-c):Dot((a-c).unit)
  256. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  257. a, b, c = a, b, c
  258. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  259. a, b, c = b, c, a
  260. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  261. a, b, c = c, a, b
  262. else
  263. assert(false, "unreachable")
  264. end
  265.  
  266. local len1 = (c-a):Dot((b-a).unit)
  267. local len2 = (b-a).magnitude - len1
  268. local width = (a + (b-a).unit*len1 - c).magnitude
  269.  
  270. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  271.  
  272. local list = {}
  273.  
  274. local TrailColor = ("Lime green")
  275.  
  276. if len1 > 0.01 then
  277. local w1 = Instance.new('WedgePart', m)
  278. game:GetService("Debris"):AddItem(w1,5)
  279. w1.Material = "SmoothPlastic"
  280. w1.FormFactor = 'Custom'
  281. w1.BrickColor = BrickColor.new(TrailColor)
  282. w1.Transparency = 0
  283. w1.Reflectance = 0
  284. w1.Material = "SmoothPlastic"
  285. w1.CanCollide = false
  286. NoOutline(w1)
  287. local sz = Vector3.new(0.2, width, len1)
  288. w1.Size = sz
  289. local sp = Instance.new("SpecialMesh",w1)
  290. sp.MeshType = "Wedge"
  291. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  292. w1:BreakJoints()
  293. w1.Anchored = true
  294. w1.Parent = workspace
  295. w1.Transparency = 0.7
  296. table.insert(Effects,{w1,"Disappear",.01})
  297. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  298. table.insert(list,w1)
  299. end
  300.  
  301. if len2 > 0.01 then
  302. local w2 = Instance.new('WedgePart', m)
  303. game:GetService("Debris"):AddItem(w2,5)
  304. w2.Material = "SmoothPlastic"
  305. w2.FormFactor = 'Custom'
  306. w2.BrickColor = BrickColor.new(TrailColor)
  307. w2.Transparency = 0
  308. w2.Reflectance = 0
  309. w2.Material = "SmoothPlastic"
  310. w2.CanCollide = false
  311. NoOutline(w2)
  312. local sz = Vector3.new(0.2, width, len2)
  313. w2.Size = sz
  314. local sp = Instance.new("SpecialMesh",w2)
  315. sp.MeshType = "Wedge"
  316. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  317. w2:BreakJoints()
  318. w2.Anchored = true
  319. w2.Parent = workspace
  320. w2.Transparency = 0.7
  321. table.insert(Effects,{w2,"Disappear",.01})
  322. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  323. table.insert(list,w2)
  324. end
  325. return unpack(list)
  326. end
  327.  
  328.  
  329. so = function(id,par,vol,pit)
  330. coroutine.resume(coroutine.create(function()
  331. local sou = Instance.new("Sound",par or workspace)
  332. sou.Volume=vol
  333. sou.Pitch=pit or 1
  334. sou.SoundId=id
  335. swait()
  336. sou:play()
  337. game:GetService("Debris"):AddItem(sou,6)
  338. end))
  339. end
  340.  
  341. function clerp(a,b,t)
  342. local qa = {QuaternionFromCFrame(a)}
  343. local qb = {QuaternionFromCFrame(b)}
  344. local ax, ay, az = a.x, a.y, a.z
  345. local bx, by, bz = b.x, b.y, b.z
  346. local _t = 1-t
  347. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  348. end
  349.  
  350. function QuaternionFromCFrame(cf)
  351. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  352. local trace = m00 + m11 + m22
  353. if trace > 0 then
  354. local s = math.sqrt(1 + trace)
  355. local recip = 0.5/s
  356. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  357. else
  358. local i = 0
  359. if m11 > m00 then
  360. i = 1
  361. end
  362. if m22 > (i == 0 and m00 or m11) then
  363. i = 2
  364. end
  365. if i == 0 then
  366. local s = math.sqrt(m00-m11-m22+1)
  367. local recip = 0.5/s
  368. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  369. elseif i == 1 then
  370. local s = math.sqrt(m11-m22-m00+1)
  371. local recip = 0.5/s
  372. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  373. elseif i == 2 then
  374. local s = math.sqrt(m22-m00-m11+1)
  375. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  376. end
  377. end
  378. end
  379.  
  380. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  381. local xs, ys, zs = x + x, y + y, z + z
  382. local wx, wy, wz = w*xs, w*ys, w*zs
  383. local xx = x*xs
  384. local xy = x*ys
  385. local xz = x*zs
  386. local yy = y*ys
  387. local yz = y*zs
  388. local zz = z*zs
  389. 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))
  390. end
  391.  
  392. function QuaternionSlerp(a, b, t)
  393. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  394. local startInterp, finishInterp;
  395. if cosTheta >= 0.0001 then
  396. if (1 - cosTheta) > 0.0001 then
  397. local theta = math.acos(cosTheta)
  398. local invSinTheta = 1/math.sin(theta)
  399. startInterp = math.sin((1-t)*theta)*invSinTheta
  400. finishInterp = math.sin(t*theta)*invSinTheta
  401. else
  402. startInterp = 1-t
  403. finishInterp = t
  404. end
  405. else
  406. if (1+cosTheta) > 0.0001 then
  407. local theta = math.acos(-cosTheta)
  408. local invSinTheta = 1/math.sin(theta)
  409. startInterp = math.sin((t-1)*theta)*invSinTheta
  410. finishInterp = math.sin(t*theta)*invSinTheta
  411. else
  412. startInterp = t-1
  413. finishInterp = t
  414. end
  415. end
  416. 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
  417. end
  418.  
  419. --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)
  420.  
  421.  
  422. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  423. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  424. end
  425.  
  426. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  427. if hit.Parent==nil then
  428. return
  429. end
  430. local h=hit.Parent:FindFirstChild("Humanoid")
  431. for _,v in pairs(hit.Parent:children()) do
  432. if v:IsA("Humanoid") then
  433. h=v
  434. end
  435. end
  436. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  437. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  438. end
  439. if hit.Parent.className=="Hat" then
  440. hit=hit.Parent.Parent:findFirstChild("Head")
  441. end
  442. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  443. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  444. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  445. return
  446. end]]
  447. -- hs(hit,1.2)
  448. local c=Instance.new("ObjectValue")
  449. c.Name="creator"
  450. c.Value=owner
  451. c.Parent=h
  452. game:GetService("Debris"):AddItem(c,.5)
  453. local Damage=math.random(minim,maxim)
  454. -- h:TakeDamage(Damage)
  455. local blocked=false
  456. local block=hit.Parent:findFirstChild("Block")
  457. if block~=nil then
  458. print(block.className)
  459. if block.className=="NumberValue" then
  460. if block.Value>0 then
  461. blocked=true
  462. if decreaseblock==nil then
  463. block.Value=block.Value-1
  464. end
  465. end
  466. end
  467. if block.className=="IntValue" then
  468. if block.Value>0 then
  469. blocked=true
  470. if decreaseblock~=nil then
  471. block.Value=block.Value-1
  472. end
  473. end
  474. end
  475. end
  476. if blocked==false then
  477. -- h:TakeDamage(Damage)
  478. h.Health=h.Health-Damage
  479. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  480. else
  481. h.Health=h.Health-(Damage/2)
  482. 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)
  483. end
  484. if Type=="Knockdown" then
  485. local hum=hit.Parent.Humanoid
  486. hum.PlatformStand=true
  487. coroutine.resume(coroutine.create(function(HHumanoid)
  488. swait(1)
  489. HHumanoid.PlatformStand=false
  490. end),hum)
  491. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  492. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  493. local bodvol=Instance.new("BodyVelocity")
  494. bodvol.velocity=angle*knockback
  495. bodvol.P=5000
  496. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  497. bodvol.Parent=hit
  498. local rl=Instance.new("BodyAngularVelocity")
  499. rl.P=3000
  500. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  501. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  502. rl.Parent=hit
  503. game:GetService("Debris"):AddItem(bodvol,.5)
  504. game:GetService("Debris"):AddItem(rl,.5)
  505. elseif Type=="Normal" then
  506. local vp=Instance.new("BodyVelocity")
  507. vp.P=500
  508. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  509. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  510. if KnockbackType==1 then
  511. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  512. elseif KnockbackType==2 then
  513. vp.velocity=Property.CFrame.lookVector*knockback
  514. end
  515. if knockback>0 then
  516. vp.Parent=hit.Parent.Torso
  517. end
  518. game:GetService("Debris"):AddItem(vp,.5)
  519. elseif Type=="Up" then
  520. local bodyVelocity=Instance.new("BodyVelocity")
  521. bodyVelocity.velocity=vt(0,60,0)
  522. bodyVelocity.P=5000
  523. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  524. bodyVelocity.Parent=hit
  525. game:GetService("Debris"):AddItem(bodyVelocity,1)
  526. local rl=Instance.new("BodyAngularVelocity")
  527. rl.P=3000
  528. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  529. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  530. rl.Parent=hit
  531. game:GetService("Debris"):AddItem(rl,.5)
  532. elseif Type=="Snare" then
  533. local bp=Instance.new("BodyPosition")
  534. bp.P=2000
  535. bp.D=100
  536. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  537. bp.position=hit.Parent.Torso.Position
  538. bp.Parent=hit.Parent.Torso
  539. game:GetService("Debris"):AddItem(bp,1)
  540. elseif Type=="Target" then
  541. local Targetting = false
  542. if Targetting==false then
  543. ZTarget=hit.Parent.Torso
  544. coroutine.resume(coroutine.create(function(Part)
  545. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  546. swait(5)
  547. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  548. end),ZTarget)
  549. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  550. local targetgui=Instance.new("BillboardGui")
  551. targetgui.Parent=ZTarget
  552. targetgui.Size=UDim2.new(10,100,10,100)
  553. local targ=Instance.new("ImageLabel")
  554. targ.Parent=targetgui
  555. targ.BackgroundTransparency=1
  556. targ.Image="rbxassetid://4834067"
  557. targ.Size=UDim2.new(1,0,1,0)
  558. cam.CameraType="Scriptable"
  559. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  560. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  561. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  562. Targetting=true
  563. RocketTarget=ZTarget
  564. for i=1,Property do
  565. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  566. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  567. swait()
  568. end
  569. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  570. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  571. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  572. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  573. end
  574. Targetting=false
  575. RocketTarget=nil
  576. targetgui.Parent=nil
  577. cam.CameraType="Custom"
  578. end
  579. end
  580. local debounce=Instance.new("BoolValue")
  581. debounce.Name="DebounceHit"
  582. debounce.Parent=hit.Parent
  583. debounce.Value=true
  584. game:GetService("Debris"):AddItem(debounce,Delay)
  585. c=Instance.new("ObjectValue")
  586. c.Name="creator"
  587. c.Value=Player
  588. c.Parent=h
  589. game:GetService("Debris"):AddItem(c,.5)
  590. end
  591. end
  592.  
  593.  
  594. function ShowDamage(Pos, Text, Time, Color)
  595. local Rate = (1 / 30)
  596. local Pos = (Pos or Vector3.new(0, 0, 0))
  597. local Text = (Text or "")
  598. local Time = (Time or 2)
  599. local Color = (Color or Color3.new(1, 0, 0))
  600. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  601. EffectPart.Anchored = true
  602. local BillboardGui = Instance.new("BillboardGui")
  603. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  604. BillboardGui.Adornee = EffectPart
  605. local TextLabel = Instance.new("TextLabel")
  606. TextLabel.BackgroundTransparency = 1
  607. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  608. TextLabel.Text = Text
  609. TextLabel.TextColor3 = Color
  610. TextLabel.TextScaled = true
  611. TextLabel.Font = Enum.Font.ArialBold
  612. TextLabel.Parent = BillboardGui
  613. BillboardGui.Parent = EffectPart
  614. game.Debris:AddItem(EffectPart, (Time + 0.1))
  615. EffectPart.Parent = game:GetService("Workspace")
  616. Delay(0, function()
  617. local Frames = (Time / Rate)
  618. for Frame = 1, Frames do
  619. wait(Rate)
  620. local Percent = (Frame / Frames)
  621. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  622. TextLabel.TextTransparency = Percent
  623. end
  624. if EffectPart and EffectPart.Parent then
  625. EffectPart:Destroy()
  626. end
  627. end)
  628. end
  629.  
  630. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.800000012, 0.600000024, 0.400000036))
  631. 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))
  632. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  633. BarrelA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","BarrelA",Vector3.new(0.400000006, 0.400000036, 0.200000003))
  634. 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))
  635. mesh("BlockMesh",BarrelA,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2))
  636. BarrelB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","BarrelB",Vector3.new(0.400000006, 0.400000036, 0.200000003))
  637. 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))
  638. mesh("BlockMesh",BarrelB,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2))
  639. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 2.60000038))
  640. 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))
  641. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  642. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  643. 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))
  644. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  645. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  646. 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))
  647. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2))
  648. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 1.00000012, 1.20000029))
  649. 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))
  650. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 2.20000005, 0.599999964))
  651. 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))
  652. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.200000003, 1.20000005))
  653. 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))
  654. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  655. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 1.79999995, 0.599999964))
  656. 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))
  657. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.800000012, 0.200000003, 0.400000036))
  658. 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))
  659. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  660. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.99999994))
  661. 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))
  662. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  663. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 1.20000017))
  664. 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))
  665. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  666. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000083, 2.60000038))
  667. 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))
  668. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  669. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 2.5999999))
  670. 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))
  671. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  672. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  673. 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))
  674. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  675. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.599999964))
  676. 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))
  677. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  678. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 1.20000005))
  679. 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))
  680. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  681. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.99999994, 0.200000003, 2))
  682. 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))
  683. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.40000045, 0.200000003, 1.20000005))
  684. 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))
  685. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.285999984, 1.01199996))
  686. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.599999964))
  687. 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))
  688. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  689. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  690. 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))
  691. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  692. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.400000006, 0.200000003))
  693. 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))
  694. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  695. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  696. 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))
  697. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  698. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 1.80000019))
  699. 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))
  700. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  701. 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))
  702. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  703. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1.20000005, 0.800000012, 0.400000006))
  704. 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))
  705. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  706. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  707. 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))
  708. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  709. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.999999881))
  710. 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))
  711. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  712. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  713. 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))
  714. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2))
  715. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000143, 1.21000028))
  716. 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))
  717. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1.20000005))
  718. 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))
  719. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  720. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.400000006, 0.200000003))
  721. 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))
  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,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  724. 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))
  725. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  726. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 2.5999999))
  727. 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))
  728. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  729. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.4000001, 2))
  730. 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))
  731. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1.20000005))
  732. 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))
  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,"Really black","Part",Vector3.new(1.20000005, 0.200000003, 1.20000005))
  735. 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))
  736. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  737. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1.20000005, 0.800000012, 0.400000006))
  738. 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))
  739. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  740. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(1.40000045, 0.200000018, 1.20000005))
  741. 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))
  742. mesh("CylinderMesh",Part,"","",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.400000006, 1.80000019))
  744. 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))
  745. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.800000012, 0.200000003, 0.400000036))
  746. 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))
  747. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  748. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  749. 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))
  750. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  751. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  752. 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))
  753. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  754. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.200000152, 2.61000037))
  755. 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))
  756. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024))
  757. 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))
  758. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  759. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1, 0.200000003, 2))
  760. 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))
  761. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000143, 2.60000014))
  762. 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))
  763.  
  764. BladeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladeHandle",Vector3.new(0.200000003, 1, 3.39999986))
  765. 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))
  766. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,1,"Lime green","Hitbox",Vector3.new(0.200000003, 4.79999971, 1))
  767. 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))
  768. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 3.4000001))
  769. 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))
  770. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.200000003, 0.220000014, 0.800000072))
  771. 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))
  772. mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  773. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.200000003, 0.220000014, 0.800000072))
  774. 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))
  775. mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  776. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 0.399999976))
  777. 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))
  778. mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  779. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 3.4000001))
  780. 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))
  781. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 0.399999976))
  782. 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))
  783. mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  784. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(0.200000003, 0.520000041, 1.39999998))
  785. 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))
  786. mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  787. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(1.00000012, 0.200000003, 1.00000012))
  788. 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))
  789. mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  790. BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(0.200000003, 0.479999989, 1.39999998))
  791. 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))
  792. mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  793.  
  794. function effect(Color,Ref,LP,P1,returnn)
  795. if LP==nil or P1==nil then return end
  796. local effectsmsh=Instance.new("CylinderMesh")
  797. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  798. effectsmsh.Name="Mesh"
  799. local effectsg=Instance.new("Part")
  800. NoOutline(effectsg)
  801. effectsg.formFactor=3
  802. effectsg.CanCollide=false
  803. effectsg.Name="Eff"
  804. effectsg.Locked=true
  805. effectsg.Anchored=true
  806. effectsg.Size=Vector3.new(0.5,1,0.5)
  807. effectsg.Parent=workspace
  808. effectsmsh.Parent=effectsg
  809. effectsg.BrickColor=BrickColor.new(Color)
  810. effectsg.Reflectance=Ref
  811. local point1=P1
  812. local mg=(LP.p - point1.p).magnitude
  813. effectsg.Size=Vector3.new(0.5,mg,0.5)
  814. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  815. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  816. game:GetService("Debris"):AddItem(effectsg,2)
  817. if returnn then return effectsg end
  818. if not returnn then
  819. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  820. end
  821. end
  822.  
  823. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  824. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  825. prt.Anchored=true
  826. prt.CFrame=cframe
  827. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  828. game:GetService("Debris"):AddItem(prt,2)
  829. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  830. end
  831.  
  832. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  833. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  834. prt.Anchored=true
  835. prt.CFrame=cframe
  836. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  837. game:GetService("Debris"):AddItem(prt,2)
  838. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  839. end
  840.  
  841. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  842. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  843. prt.Anchored=true
  844. prt.CFrame=cframe
  845. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  846. game:GetService("Debris"):AddItem(prt,2)
  847. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  848. end
  849.  
  850. function Shootcombo()
  851. attack = true
  852. for i = 0,1,0.1 do
  853. swait()
  854. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  855. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  856. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  857. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  858. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  859. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(10)),.3)
  860. end
  861. so("http://www.roblox.com/asset/?id=169445602",BarrelA,.7,1.5)
  862. so("http://www.roblox.com/asset/?id=169445602",BarrelB,.7,1.5)
  863. so("http://www.roblox.com/asset/?id=169380505",BarrelA,.7,1.1)
  864. so("http://www.roblox.com/asset/?id=169380505",BarrelB,.7,1.1)
  865. table.insert(Effects,{BarrelA.CFrame.lookVector,"Shoot",10,BarrelA.Position,5,10,0,1})
  866. table.insert(Effects,{BarrelB.CFrame.lookVector,"Shoot",10,BarrelB.Position,5,10,0,1})
  867. for i = 0,1,0.2 do
  868. swait()
  869. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  870. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(5),math.rad(-50)),.3)
  871. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(30), math.rad(50)), 0.3)
  872. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3)
  873. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  874. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(10)),.3)
  875. end
  876. attack = false
  877. end
  878.  
  879. function BladeAttackOne()
  880. attack = true
  881. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end)
  882. for i = 0,1,0.1 do
  883. swait()
  884. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.4)
  885. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  886. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(100)),0.4)
  887. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)),0.4)
  888. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  889. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(0)),0.4)
  890. end
  891. --so("http://roblox.com/asset/?id=206083107",handle,1,1)
  892. so("http://www.roblox.com/asset/?id=200633148",handle,1,.9)
  893. for i = 0,1,0.1 do
  894. swait()
  895. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  896. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  897. local h = 5
  898. 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)
  899. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  900. 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)
  901. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  902. scfr = blcf
  903. elseif not scfr then
  904. scfr = blcf
  905. end
  906. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  907. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  908. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  909. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  910. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  911. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(-10)),0.4)
  912. end
  913. attack = false
  914. con:disconnect()
  915. end
  916.  
  917. function BladeAttackTwo()
  918. attack = true
  919. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end)
  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(70)),0.4)
  923. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  924. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  925. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  926. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  927. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  928. end
  929. --so("http://roblox.com/asset/?id=206083107",handle,1,.9)
  930. so("http://www.roblox.com/asset/?id=200633196",handle,1,1)
  931. for i = 0,1,0.1 do
  932. swait()
  933. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  934. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  935. local h = 5
  936. 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)
  937. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  938. 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)
  939. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  940. scfr = blcf
  941. elseif not scfr then
  942. scfr = blcf
  943. end
  944. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  945. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  946. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  947. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  948. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  949. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  950. end
  951. attack = false
  952. con:disconnect()
  953. end
  954.  
  955. function BladeAttackThree()
  956. attack = true
  957. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end)
  958. for i = 0,1,0.1 do
  959. swait()
  960. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),0.4)
  961. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  962. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  963. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  964. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  965. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4)
  966. end
  967. --so("http://roblox.com/asset/?id=206083107",handle,1,1.1)
  968. so("http://www.roblox.com/asset/?id=200633196",handle,1,.9)
  969. for i = 0,1,0.1 do
  970. swait()
  971. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  972. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  973. local h = 5
  974. 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)
  975. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  976. 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)
  977. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  978. scfr = blcf
  979. elseif not scfr then
  980. scfr = blcf
  981. end
  982. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.4)
  983. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.3)
  984. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)),0.4)
  985. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  986. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  987. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4)
  988. end
  989. attack = false
  990. con:disconnect()
  991. end
  992.  
  993. function BladeAttackFour()
  994. attack = true
  995. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end)
  996. for i = 0,1,0.1 do
  997. swait()
  998. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  999. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.4)
  1000. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1001. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1002. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4)
  1003. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4)
  1004. end
  1005. so("http://www.roblox.com/asset/?id=200633148",handle,1,.8)
  1006. Torso.Velocity=Head.CFrame.lookVector*100
  1007. for i = 0,1,0.05 do
  1008. swait()
  1009. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1010. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1011. local h = 5
  1012. 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)
  1013. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1014. 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)
  1015. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1016. scfr = blcf
  1017. elseif not scfr then
  1018. scfr = blcf
  1019. end
  1020. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3)
  1021. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-30),math.rad(70)),.3)
  1022. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)),0.3)
  1023. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1024. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3)
  1025. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1026. end
  1027. con:disconnect()
  1028. attack = false
  1029. end
  1030.  
  1031. function ElecEffect(cff,x,y,z)
  1032. local prt=part(3,workspace,"SmoothPlastic",0,0,BrickColor.new("Lime green"),"Part",vt(1,1,1))
  1033. prt.Anchored=true
  1034. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1035. prt.CFrame=cf(prt.Position)
  1036. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1037. game:GetService("Debris"):AddItem(prt,2)
  1038. xval=math.random()/2
  1039. yval=math.random()/2
  1040. zval=math.random()/2
  1041. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1042. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  1043. end
  1044.  
  1045. function Test()
  1046. ElecEffect(Hitbox.CFrame,2,4,2)
  1047. end
  1048.  
  1049. attacktype1 = 1
  1050. mouse.Button1Down:connect(function()
  1051. if Mode == "Gun" then
  1052. if attack==false then
  1053. if attacktype1==1 then
  1054. attack=true
  1055. attacktype1=1
  1056. Shootcombo()
  1057. end
  1058. end
  1059. end
  1060. if Mode == "Blade" then
  1061. if attack==false then
  1062. if attacktype==1 then
  1063. attack=true
  1064. attacktype=2
  1065. BladeAttackOne()
  1066. elseif attacktype==2 then
  1067. attack=true
  1068. attacktype=3
  1069. BladeAttackTwo()
  1070. elseif attacktype==3 then
  1071. attack=true
  1072. attacktype=4
  1073. BladeAttackThree()
  1074. elseif attacktype==4 then
  1075. attack=true
  1076. attacktype=1
  1077. BladeAttackFour()
  1078. end
  1079. end
  1080. end
  1081. end)
  1082.  
  1083. mouse.KeyDown:connect(function(k)
  1084. k=k:lower()
  1085. if k=='f' then
  1086. if Mode == "Gun" then
  1087. Mode = "Blade"
  1088. so("http://www.roblox.com/asset/?id=152052659",handle,1,1)
  1089. elseif Mode == "Blade" then
  1090. Mode = "Gun"
  1091. so("http://www.roblox.com/asset/?id=211134014",handle,1,1)
  1092. end
  1093. elseif k=='q' then
  1094. Test()
  1095. end
  1096. end)
  1097.  
  1098.  
  1099.  
  1100. local sine = 0
  1101. local change = 1
  1102. local val = 0
  1103.  
  1104. while true do
  1105. swait()
  1106. sine = sine + change
  1107. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1108. local velderp=RootPart.Velocity.y
  1109. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1110. if equipped==true or equipped==false then
  1111. if attack==false then
  1112. idle=idle+1
  1113. else
  1114. idle=0
  1115. end
  1116. if idle>=500 then
  1117. if attack==false then
  1118. --Sheath()
  1119. end
  1120. end
  1121. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1122. Anim="Jump"
  1123. if attack==false and Mode == "Gun" then
  1124. change=3
  1125. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1126. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1127. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1128. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1129. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  1130. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.3)
  1131. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1132. end
  1133. if attack==false and Mode == "Blade" then
  1134. change=3
  1135. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1136. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1137. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1138. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1139. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  1140. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.3)
  1141. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1142. end
  1143. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1144. Anim="Fall"
  1145. if attack==false and Mode == "Gun" then
  1146. change=3
  1147. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1148. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1149. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1150. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1151. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1152. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20)),.3)
  1153. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1154. end
  1155. if attack==false and Mode == "Blade" then
  1156. change=3
  1157. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1158. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1159. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1160. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1161. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1162. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20)),.3)
  1163. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1164. end
  1165. elseif torvel<1 and hitfloor~=nil then
  1166. Anim="Idle"
  1167. if attack==false and Mode == "Gun" then
  1168. change=3
  1169. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1170. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-20)),.3)
  1171. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1172. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1173. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0)),.3)
  1174. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(10)),.3)
  1175. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1176. end
  1177. if attack==false and Mode == "Blade" then
  1178. change=3
  1179. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1180. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  1181. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(20)), 0.3)
  1182. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.3)
  1183. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),.3)
  1184. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5)),.3)
  1185. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1186. end
  1187. elseif torvel>2 and hitfloor~=nil then
  1188. Anim="Walk"
  1189. if attack==false and Mode == "Gun" then
  1190. change=3
  1191. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1192. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-0)),.3)
  1193. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.3)
  1194. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3)
  1195. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1196. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.3)
  1197. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1198. end
  1199. if attack==false and Mode == "Blade" then
  1200. change=3
  1201. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  1202. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(1),math.rad(-10)),.3)
  1203. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(5), math.rad(20)), 0.3)
  1204. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1205. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1206. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1207. BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1208. end
  1209. end
  1210. end
  1211. if #Effects>0 then
  1212. --table.insert(Effects,{prt,"Block1",delay})
  1213. for e=1,#Effects do
  1214. if Effects[e]~=nil then
  1215. --for j=1,#Effects[e] do
  1216. local Thing=Effects[e]
  1217. if Thing~=nil then
  1218. local Part=Thing[1]
  1219. local Mode=Thing[2]
  1220. local Delay=Thing[3]
  1221. local IncX=Thing[4]
  1222. local IncY=Thing[5]
  1223. local IncZ=Thing[6]
  1224. if Thing[2]=="DecreaseStat" then
  1225. Thing[5]=Thing[5]-1
  1226. if Thing[5]<=0 then
  1227. if Thing[1]:findFirstChild("Stats")~=nil then
  1228. Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  1229. end
  1230. table.remove(Effects,e)
  1231. end
  1232. end
  1233. if Thing[2]=="Shoot" then
  1234. local Look=Thing[1]
  1235. local hit,pos = rayCast(Thing[4],Look,20,m)
  1236. local mag=(Thing[4]-pos).magnitude
  1237. 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)
  1238. Thing[4]=Thing[4]+(Look*20)
  1239. Thing[3]=Thing[3]-1
  1240. if hit~=nil then
  1241. Thing[3]=0
  1242. if Thing[8]==1 then
  1243. Damagefunc(Hitbox,hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,5),nil,nil,true)
  1244. elseif Thing[8]==2 then
  1245. Damagefunc(Hitbox,hit,Thing[5],Thing[6],Thing[7],"NormalDecreaseMvmt1",RootPart,0,2,math.random(1,5),nil,nil,true)
  1246. end
  1247. ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Lime green"),"Reference",vt())
  1248. ref.Anchored=true
  1249. ref.CFrame=cf(pos)
  1250. MagicCircle(BrickColor.new("Lime green"),cf(pos),5,5,5,1,1,1,0.03)
  1251. game:GetService("Debris"):AddItem(ref,1)
  1252. end
  1253. if Thing[3]<=0 then
  1254. table.remove(Effects,e)
  1255. end
  1256. end
  1257. if Thing[2]=="CylinderClang" then
  1258. if Thing[3]<=1 then
  1259. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  1260. Thing[7]=Thing[1].CFrame
  1261. effect("New Yeller",0,Thing[8],Thing[7])
  1262. Thing[8]=Thing[7]
  1263. Thing[3]=Thing[3]+Thing[4]
  1264. else
  1265. Part.Parent=nil
  1266. table.remove(Effects,e)
  1267. end
  1268. --[[Mesh=Thing[7]
  1269. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1270. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  1271. end
  1272. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" then
  1273. if Thing[1].Transparency<=1 then
  1274. if Thing[2]=="Block1" then
  1275. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1276. Mesh=Thing[7]
  1277. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1278. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1279. elseif Thing[2]=="Block2" then
  1280. Thing[1].CFrame=Thing[1].CFrame
  1281. Mesh=Thing[7]
  1282. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1283. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1284. elseif Thing[2]=="Cylinder" then
  1285. Mesh=Thing[7]
  1286. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1287. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1288. elseif Thing[2]=="Blood" then
  1289. Mesh=Thing[7]
  1290. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1291. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1292. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1293. elseif Thing[2]=="Elec" then
  1294. Mesh=Thing[1].Mesh
  1295. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1296. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1297. elseif Thing[2]=="Disappear" then
  1298. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1299. end
  1300. else
  1301. Part.Parent=nil
  1302. table.remove(Effects,e)
  1303. end
  1304. end
  1305. end
  1306. --end
  1307. end
  1308. end
  1309. end
  1310. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement