Advertisement
memberhero

Trooper:Gunslinger FE

Nov 26th, 2020 (edited)
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 112.07 KB | None | 0 0
  1. --FE Template
  2. if (game:GetService('RunService'):IsServer()) then return error('This script cannot be ran server-sided, please use hl/',0); end;
  3.  
  4. local remote = NS ([=[
  5. --[[
  6. Made by Fenrier.
  7. ]]
  8. Player=owner
  9. Character=Player.Character
  10. PlayerGui=Player.PlayerGui
  11. Backpack=Player.Backpack
  12. Torso=Character.Torso
  13. Head=Character.Head
  14. Humanoid=Character.Humanoid
  15. LeftArm=Character["Left Arm"]
  16. LeftLeg=Character["Left Leg"]
  17. RightArm=Character["Right Arm"]
  18. RightLeg=Character["Right Leg"]
  19. LS=Torso["Left Shoulder"]
  20. LH=Torso["Left Hip"]
  21. RS=Torso["Right Shoulder"]
  22. RH=Torso["Right Hip"]
  23. Neck=Torso.Neck
  24. it=Instance.new
  25. vt=Vector3.new
  26. cf=CFrame.new
  27. euler=CFrame.fromEulerAnglesXYZ
  28. angles=CFrame.Angles
  29. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  32. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  33. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  34. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  35. RootPart=Character.HumanoidRootPart
  36. RootJoint=RootPart.RootJoint
  37. RootCF=euler(-1.57,0,3.14)
  38. attack = false
  39. attackdebounce = false
  40. MMouse=nil
  41. combo=0
  42. local hitfloor,posfloor=nil,nil
  43. local idle=0
  44. local Anim="Idle"
  45. local Effects={}
  46. local Weapon={}
  47. local Welds={}
  48. local decreaseatk=0
  49. local decreasedef=0
  50. local decreasemvmt=0
  51. local Ammo=16
  52. local accuracy=0
  53. local gun=false
  54. local shoot=false
  55. local gunleft=true
  56. local gunright=true
  57. local shootgun=1
  58. local XVbullet=false
  59. local obliterate=false
  60. local quickmove=false
  61. local quickoblit=false
  62. local move1="(Z)\
  63. Reload"
  64. local move2="(X)\
  65. Deadly Dive"
  66. local move3="(C)\
  67. XV Bullet"
  68. local move4="(V)\
  69. Obliterate"
  70. local cooldowns={}
  71. local cooldown1=0 table.insert(cooldowns,cooldown1)
  72. local cooldown2=0 table.insert(cooldowns,cooldown2)
  73. local cooldown3=0 table.insert(cooldowns,cooldown3)
  74. local cooldown4=0 table.insert(cooldowns,cooldown4)
  75. local cooldownsadd={}
  76. local cooldownadd1=.25 table.insert(cooldownsadd,cooldownadd1)
  77. local cooldownadd2=.4 table.insert(cooldownsadd,cooldownadd2)
  78. local cooldownadd3=.7 table.insert(cooldownsadd,cooldownadd3)
  79. local cooldownadd4=.3 table.insert(cooldownsadd,cooldownadd4)
  80. local cooldownmax=100
  81.  
  82. --player
  83. player=nil
  84. --save shoulders
  85. RSH, LSH=nil, nil
  86. --welds
  87. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  88. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  89. LH=Torso["Left Hip"]
  90. RH=Torso["Right Hip"]
  91. TorsoColor=Torso.BrickColor
  92. TorsoRed=TorsoColor.Color.r
  93. TorsoGreen=TorsoColor.Color.g
  94. TorsoBlue=TorsoColor.Color.b
  95. NewCol=Color3.new(1,TorsoGreen,TorsoBlue)
  96. if Player:findFirstChild("Color1")~=nil then
  97. NewCol=Player.Color1.Value
  98. end
  99. local mdec=Instance.new("NumberValue",Decrease)
  100. mdec.Name="DecreaseDef"
  101. mdec.Value=.4
  102. local mdec2=Instance.new("NumberValue",Decrease)
  103. mdec2.Name="DecreaseMvmt"
  104. mdec2.Value=.1
  105.  
  106. local Animate=Humanoid.Animator
  107. --[[local animation=Instance.new("Animation")
  108. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  109. local animTrack=Humanoid:LoadAnimation(animation)]]
  110. local canjump=true
  111. function removeControl()
  112. canjump=false
  113. end
  114. function resumeControl()
  115. canjump=true
  116. end
  117. Player.Character.Humanoid.Changed:connect(function()
  118. if canjump==false then
  119. Player.Character.Humanoid.Jump=false
  120. end
  121. end)
  122.  
  123.  
  124. ArtificialHB = Instance.new("BindableEvent", script)
  125. ArtificialHB.Name = "Heartbeat"
  126.  
  127. script:WaitForChild("Heartbeat")
  128.  
  129. frame = 1 / 30
  130. tf = 0
  131. allowframeloss = true
  132. tossremainder = false
  133. lastframe = tick()
  134. script.Heartbeat:Fire()
  135.  
  136. game:GetService("RunService").Heartbeat:connect(function(s, p)
  137. tf = tf + s
  138. if tf >= frame then
  139. if allowframeloss then
  140. script.Heartbeat:Fire()
  141. lastframe = tick()
  142. else
  143. for i = 1, math.floor(tf / frame) do
  144. script.Heartbeat:Fire()
  145. end
  146. lastframe = tick()
  147. end
  148. if tossremainder then
  149. tf = 0
  150. else
  151. tf = tf - frame * math.floor(tf / frame)
  152. end
  153. end
  154. end)
  155.  
  156. function swait(num)
  157. if num == 0 or num == nil then
  158. ArtificialHB.Event:wait()
  159. else
  160. for i = 0, num do
  161. ArtificialHB.Event:wait()
  162. end
  163. end
  164. end
  165.  
  166. if Character:findFirstChild("Joy",true) ~= nil then
  167. Character:findFirstChild("Joy",true).Parent = nil
  168. end
  169. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  170. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  171. end
  172. if Character:findFirstChild("Stats",true) ~= nil then
  173. Character:findFirstChild("Stats",true).Parent = nil
  174. end
  175. local Stats=Instance.new("BoolValue")
  176. Stats.Name="Stats"
  177. Stats.Parent=Character
  178. local Atk=Instance.new("NumberValue")
  179. Atk.Name="Damage"
  180. Atk.Parent=Stats
  181. Atk.Value=1
  182. local Def=Instance.new("NumberValue")
  183. Def.Name="Defense"
  184. Def.Parent=Stats
  185. Def.Value=1
  186. local Mvmt=Instance.new("NumberValue")
  187. Mvmt.Name="Movement"
  188. Mvmt.Parent=Stats
  189. Mvmt.Value=1
  190. local Block=Instance.new("BoolValue")
  191. Block.Name="Block"
  192. Block.Parent=Stats
  193. Block.Value=false
  194. local Stun=Instance.new("NumberValue")
  195. Stun.Name="Stun"
  196. Stun.Parent=Stats
  197. Stun.Value=0
  198. local StunT=Instance.new("NumberValue")
  199. StunT.Name="StunThreshold"
  200. StunT.Parent=Stats
  201. StunT.Value=100
  202. local Rooted=Instance.new("BoolValue")
  203. Rooted.Name="Rooted"
  204. Rooted.Parent=Stats
  205. Rooted.Value=false
  206. local Stunned=Instance.new("BoolValue")
  207. Stunned.Name="Stunned"
  208. Stunned.Parent=Stats
  209. Stunned.Value=false
  210. local Stagger=Instance.new("BoolValue")
  211. Stagger.Name="Stagger"
  212. Stagger.Parent=Stats
  213. Stagger.Value=false
  214. local StaggerHit=Instance.new("BoolValue")
  215. StaggerHit.Name="StaggerHit"
  216. StaggerHit.Parent=Stats
  217. StaggerHit.Value=false
  218. local RecentEnemy=Instance.new("ObjectValue")
  219. RecentEnemy.Name="RecentEnemy"
  220. RecentEnemy.Parent=Stats
  221. RecentEnemy.Value=nil
  222. local Decrease=Instance.new("BoolValue")
  223. Decrease.Name="Decrease"
  224. Decrease.Parent=Stats
  225. Decrease.Value=false
  226. local mana=Instance.new("NumberValue")
  227. mana.Name="Mana"
  228. mana.Parent=Stats
  229. mana.Value=0
  230. local passive=Instance.new("NumberValue",Decrease)
  231. passive.Name="DecreaseAtk"
  232. passive.Value=0
  233.  
  234. function NoOutline(Part)
  235. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  236. end
  237.  
  238. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  239. local fp=it("Part")
  240. fp.formFactor=formfactor
  241. fp.Parent=parent
  242. fp.Reflectance=reflectance
  243. fp.Transparency=transparency
  244. fp.CanCollide=false
  245. fp.Locked=true
  246. fp.BrickColor=brickcolor
  247. fp.Name=name
  248. fp.Size=size
  249. fp.Position=Torso.Position
  250. NoOutline(fp)
  251. fp.Material="SmoothPlastic"
  252. fp:BreakJoints()
  253. return fp
  254. end
  255.  
  256. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  257. local mesh=it(Mesh)
  258. mesh.Parent=part
  259. if Mesh=="SpecialMesh" then
  260. mesh.MeshType=meshtype
  261. if meshid~="nil" then
  262. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  263. end
  264. end
  265. mesh.Offset=offset
  266. mesh.Scale=scale
  267. return mesh
  268. end
  269.  
  270. function weld(parent,part0,part1,c0)
  271. local weld=it("Motor")
  272. weld.Parent=parent
  273. weld.Part0=part0
  274. weld.Part1=part1
  275. weld.C0=c0
  276. return weld
  277. end
  278.  
  279. function gui(GuiType,parent,text,backtrans,backcol,pos,size)
  280. local gui=it(GuiType)
  281. gui.Parent=parent
  282. gui.Text=text
  283. gui.BackgroundTransparency=backtrans
  284. gui.BackgroundColor3=backcol
  285. gui.SizeConstraint="RelativeXY"
  286. gui.TextXAlignment="Center"
  287. gui.TextYAlignment="Center"
  288. gui.Position=pos
  289. gui.Size=size
  290. gui.Font="SourceSans"
  291. gui.FontSize="Size14"
  292. gui.TextWrapped=false
  293. gui.TextStrokeTransparency=0
  294. gui.TextColor=BrickColor.new("White")
  295. return gui
  296. end
  297.  
  298. local Color1=Torso.BrickColor
  299.  
  300. local fengui=it("GuiMain")
  301. fengui.Parent=Player.PlayerGui
  302. fengui.Name="WeaponGUI"
  303. local fenframe=it("Frame")
  304. fenframe.Parent=fengui
  305. fenframe.BackgroundColor3=Color3.new(255,255,255)
  306. fenframe.BackgroundTransparency=1
  307. fenframe.BorderColor3=Color3.new(17,17,17)
  308. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  309. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  310. local fenframe2=it("Frame")
  311. fenframe2.Parent=fengui
  312. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  313. fenframe2.BackgroundTransparency=1
  314. fenframe2.BorderColor3=Color3.new(17,17,17)
  315. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  316. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  317. local fenframe3=it("Frame")
  318. fenframe3.Parent=fengui
  319. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  320. fenframe3.BackgroundTransparency=1
  321. fenframe3.BorderColor3=Color3.new(17,17,17)
  322. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  323. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  324. fenframe3.Name="MoveFrame"
  325. local fenframe4=it("Frame")
  326. fenframe4.Parent=fengui
  327. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  328. fenframe4.BackgroundTransparency=1
  329. fenframe4.BorderColor3=Color3.new(17,17,17)
  330. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  331. fenframe4.Position=UDim2.new(0,0,0.7,0)
  332. local pressedf=false
  333. local fenframe5=it("Frame")
  334. fenframe5.Parent=fengui
  335. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  336. fenframe5.BackgroundTransparency=1
  337. fenframe5.BorderColor3=Color3.new(0,0,0)
  338. fenframe5.Size=UDim2.new(1,0,1,0)
  339. fenframe5.Position=UDim2.new(0,0,0,0)
  340. fenframe5.ZIndex=2
  341. --local tellbar=gui("TextLabel",fenframe5,"Press 'F' to equip your weapon.",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  342. local tellbar=gui("TextLabel",fenframe5,"-Obliterate has been changed to being ranged, constantly shooting forward while homing towards the nearest enemy at the mouse (+)\
  343. -Changed Deadly Impact ability to Deadly Dive which Trooper dives backwards while shooting multiple homing bullets (+)\
  344. -Slightly increased gunshot damage (+)\
  345. -Slightly decreased cooldown and mana cost of Reload (+)\
  346. -XV Bullet's defense debuff is slightly increased and lasts longer (+)\
  347. -XV Bullet changed to having a really short cooldown, but only works for one bullet (+/-)\
  348. -Normal combo damage has been decreased (-)\
  349. -Passive damage increase has been slightly decreased (-)",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  350. tellbar.Font="Arial"
  351. tellbar.TextScaled=true
  352. tellbar.TextTransparency=1
  353. tellbar.TextStrokeTransparency=1
  354. tellbar.ZIndex=2
  355. local fnumb=0
  356. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  357. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  358. local fenbarmana4=gui("TextLabel",fenframe,"Mana("..mana.Value..")",1,Color3.new(0,0,0),UDim2.new(0,0,.2,0),UDim2.new(.4,0,.2,0))
  359. --[[local fenbarblock1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(-.6,0,0,0),UDim2.new(.4,0,-4,0))
  360. local fenbarblock2=gui("TextLabel",fenframe,"",0,BrickColor.new("Bright red").Color,UDim2.new(-.6,0,0,0),UDim2.new(.4,0,0,0))
  361. local fenbarblock3=gui("TextLabel",fenframe,"Accuracy("..accuracy..")",1,Color3.new(0,0,0),UDim2.new(-.6,0,.2,0),UDim2.new(.4,0,.2,0))
  362. ]]
  363. local fenbardamage=gui("TextLabel",fenframe2,"Damage",.55,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0))
  364. local fenbardef=gui("TextLabel",fenframe2,"Defense",0.55,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0))
  365. local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",0.55,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0))
  366. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  367. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  368. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  369. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  370. local fenbarstun2=gui("TextLabel",fenframe4,"",0,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,0,0),UDim2.new(.4,0,0,0))
  371. local fenbarstun3=gui("TextLabel",fenframe4,"Stun("..Stun.Value..")",1,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,.2,0),UDim2.new(.4,0,.2,0))
  372. local fenbarmove1=gui("TextButton",fenframe3,move1,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.1,0),UDim2.new(.4,0,.4,0))
  373. fenbarmove1.ZIndex=2
  374. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  375. local fenbarmove2=gui("TextButton",fenframe3,move2,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.1,0),UDim2.new(.4,0,.4,0))
  376. fenbarmove2.ZIndex=2
  377. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  378. local fenbarmove3=gui("TextButton",fenframe3,move3,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.6,0),UDim2.new(.4,0,.4,0))
  379. fenbarmove3.ZIndex=2
  380. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  381. local fenbarmove4=gui("TextButton",fenframe3,move4,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.6,0),UDim2.new(.4,0,.4,0))
  382. fenbarmove4.ZIndex=2
  383. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  384. local fenbarammo1=gui("TextButton",fenframe2,"Ammo("..Ammo..")",.55,BrickColor.new(NewCol).Color,UDim2.new(1.26,0,0,0),UDim2.new(.2,0,1,0))
  385.  
  386. local modelzorz=Instance.new("Model")
  387. modelzorz.Parent=Character
  388. modelzorz.Name="Joy"
  389.  
  390. rprt1=part(3,modelzorz,0,0,TorsoColor,"Right Part01",vt(0.2,0.2,0.2))
  391. rprt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part02",vt(0.2,0.2,0.2))
  392. rprt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Right Part03",vt(0.2,0.2,0.2))
  393. rprt4=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part04",vt(0.2,0.2,0.2))
  394. rprt4n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Right Part04n",vt(0.2,0.2,0.2)) rprt4n.Material="Neon"
  395. rprt5=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part05",vt(0.2,0.2,0.2))
  396. rprt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part06",vt(0.2,0.2,0.2))
  397. rprt7=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part07",vt(0.2,0.2,0.2))
  398. rprt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Right Part08",vt(0.2,0.2,0.2))
  399. rprt9=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part09",vt(0.2,0.2,0.2))
  400. rprt9n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Right Part09n",vt(0.2,0.2,0.2)) rprt9n.Material="Neon"
  401. rprt10=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part10",vt(0.2,0.2,0.2))
  402. rprt11=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part11",vt(0.2,0.2,0.2))
  403. rprt12=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part12",vt(0.2,0.2,0.2))
  404. rprt13=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part13",vt(0.2,0.2,0.2))
  405. rprt14=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part14",vt(0.2,0.2,0.2))
  406. rprt15=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part15",vt(0.2,0.2,0.2))
  407. rprt16=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part16",vt(0.2,0.2,0.2))
  408. rprt14n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Right Part14n",vt(0.2,0.2,0.2)) rprt14n.Material="Neon"
  409. rprt15n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Right Part15n",vt(0.2,0.2,0.2)) rprt15n.Material="Neon"
  410. rprt16n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Right Part16n",vt(0.2,0.2,0.2)) rprt16n.Material="Neon"
  411. rprt17=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part17",vt(0.2,0.2,0.2))
  412. rprt18=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part18",vt(0.2,0.2,0.2))
  413. rprt19=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part19",vt(0.2,0.2,0.2))
  414. rprt20=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Right Part20",vt(0.2,0.2,0.2))
  415. rprt21=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part21",vt(0.2,0.2,0.2))
  416. rprt22=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Part22",vt(0.2,0.2,0.2))
  417. rprt23=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part23",vt(0.2,0.2,0.2))
  418. rprt24=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part24",vt(0.2,0.2,0.2))
  419. rprt25=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part25",vt(0.2,0.2,0.2))
  420. rprt23n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Right Part23n",vt(0.2,0.2,0.2)) rprt23n.Material="Neon"
  421. rprt24n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Right Part24n",vt(0.2,0.2,0.2)) rprt24n.Material="Neon"
  422. rprt25n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Right Part25n",vt(0.2,0.2,0.2)) rprt25n.Material="Neon"
  423. rprt26=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part26",vt(0.2,0.2,0.2))
  424. rprt27=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part27",vt(0.2,0.2,0.2))
  425. rprt28=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Right Part28",vt(0.2,0.2,0.2))
  426. rprt29=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Right Part29",vt(0.2,0.2,0.2))
  427. rprt30=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Right Part30",vt(0.2,0.2,0.2))
  428. rprt31=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Right Part31",vt(0.2,0.2,0.2))
  429. rprt32=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part32",vt(0.2,0.2,0.2))
  430. rprt33=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part33",vt(0.2,0.2,0.2))
  431. rprt34=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Right Part34",vt(0.2,0.2,0.2))
  432. rprt35=part(3,modelzorz,0,0,BrickColor.new("Black"),"Right Part35",vt(0.2,0.2,0.2))
  433. rprt36=part(3,modelzorz,0,0,BrickColor.new("Black"),"Right Part36",vt(0.2,0.2,0.2))
  434.  
  435. lprt1=part(3,modelzorz,0,0,TorsoColor,"Left Part01",vt(0.2,0.2,0.2))
  436. lprt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part02",vt(0.2,0.2,0.2))
  437. lprt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Left Part03",vt(0.2,0.2,0.2))
  438. lprt4=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part04",vt(0.2,0.2,0.2))
  439. lprt4n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Left Part04n",vt(0.2,0.2,0.2)) lprt4n.Material="Neon"
  440. lprt5=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part05",vt(0.2,0.2,0.2))
  441. lprt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part06",vt(0.2,0.2,0.2))
  442. lprt7=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part07",vt(0.2,0.2,0.2))
  443. lprt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Left Part08",vt(0.2,0.2,0.2))
  444. lprt9=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part09",vt(0.2,0.2,0.2))
  445. lprt9n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Left Part09n",vt(0.2,0.2,0.2)) lprt9n.Material="Neon"
  446. lprt10=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part10",vt(0.2,0.2,0.2))
  447. lprt11=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part11",vt(0.2,0.2,0.2))
  448. lprt12=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part12",vt(0.2,0.2,0.2))
  449. lprt13=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part13",vt(0.2,0.2,0.2))
  450. lprt14=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part14",vt(0.2,0.2,0.2))
  451. lprt15=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part15",vt(0.2,0.2,0.2))
  452. lprt16=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part16",vt(0.2,0.2,0.2))
  453. lprt14n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Left Part14n",vt(0.2,0.2,0.2)) lprt14n.Material="Neon"
  454. lprt15n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Left Part15n",vt(0.2,0.2,0.2)) lprt15n.Material="Neon"
  455. lprt16n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Left Part16n",vt(0.2,0.2,0.2)) lprt16n.Material="Neon"
  456. lprt17=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part17",vt(0.2,0.2,0.2))
  457. lprt18=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part18",vt(0.2,0.2,0.2))
  458. lprt19=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part19",vt(0.2,0.2,0.2))
  459. lprt20=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Left Part20",vt(0.2,0.2,0.2))
  460. lprt21=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part21",vt(0.2,0.2,0.2))
  461. lprt22=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Left Part22",vt(0.2,0.2,0.2))
  462. lprt23=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part23",vt(0.2,0.2,0.2))
  463. lprt24=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part24",vt(0.2,0.2,0.2))
  464. lprt25=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part25",vt(0.2,0.2,0.2))
  465. lprt23n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Left Part23n",vt(0.2,0.2,0.2)) lprt23n.Material="Neon"
  466. lprt24n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Left Part24n",vt(0.2,0.2,0.2)) lprt24n.Material="Neon"
  467. lprt25n=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Left Part25n",vt(0.2,0.2,0.2)) lprt25n.Material="Neon"
  468. lprt26=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part26",vt(0.2,0.2,0.2))
  469. lprt27=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part27",vt(0.2,0.2,0.2))
  470. lprt28=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Left Part28",vt(0.2,0.2,0.2))
  471. lprt29=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Left Part29",vt(0.2,0.2,0.2))
  472. lprt30=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Left Part30",vt(0.2,0.2,0.2))
  473. lprt31=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Left Part31",vt(0.2,0.2,0.2))
  474. lprt32=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part32",vt(0.2,0.2,0.2))
  475. lprt33=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part33",vt(0.2,0.2,0.2))
  476. lprt34=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Left Part34",vt(0.2,0.2,0.2))
  477. lprt35=part(3,modelzorz,0,0,BrickColor.new("Black"),"Left Part35",vt(0.2,0.2,0.2))
  478. lprt36=part(3,modelzorz,0,0,BrickColor.new("Black"),"Left Part36",vt(0.2,0.2,0.2))
  479.  
  480. rmsh1=mesh("BlockMesh",rprt1,"","",vt(0,0,0),vt(1,1,1))
  481. rmsh2=mesh("BlockMesh",rprt2,"","",vt(0,0,0),vt(1,6,1.5))
  482. rmsh3=mesh("BlockMesh",rprt3,"","",vt(0,0,0),vt(1.01,4.51,1.01))
  483. rmsh4=mesh("BlockMesh",rprt4,"","",vt(0,0,0),vt(1.01,.49,.99))
  484. rmsh4n=mesh("BlockMesh",rprt4n,"","",vt(0,0,0),vt(1.05,.54,1.04))
  485. rmsh5=mesh("SpecialMesh",rprt5,"Wedge","nil",vt(0,0,0),vt(1,1.5,1))
  486. rmsh6=mesh("BlockMesh",rprt6,"","",vt(0,0,0),vt(1,6,1))
  487. rmsh7=mesh("SpecialMesh",rprt7,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  488. rmsh8=mesh("BlockMesh",rprt8,"","",vt(0,0,0),vt(1.01,3,1.01))
  489. rmsh9=mesh("BlockMesh",rprt9,"","",vt(0,0,0),vt(.5,6.5,1))
  490. rmsh9n=mesh("BlockMesh",rprt9n,"","",vt(0,0,0),vt(.55,6.55,1.05))
  491. rmsh10=mesh("BlockMesh",rprt10,"","",vt(0,0,0),vt(.9,2,1.01))
  492. rmsh11=mesh("SpecialMesh",rprt11,"Wedge","nil",vt(0,0,0),vt(1.1,1,1.6))
  493. rmsh12=mesh("BlockMesh",rprt12,"","",vt(0,0,0),vt(1.1,1,1.6))
  494. rmsh13=mesh("SpecialMesh",rprt13,"Wedge","nil",vt(0,0,0),vt(1.1,1,1.6))
  495. rmsh14=mesh("BlockMesh",rprt14,"","",vt(0,0,0),vt(1,7,1))
  496. rmsh15=mesh("SpecialMesh",rprt15,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  497. rmsh16=mesh("SpecialMesh",rprt16,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  498. rmsh14n=mesh("BlockMesh",rprt14n,"","",vt(0,0,0),vt(1.05,7.05,1.05))
  499. rmsh15n=mesh("SpecialMesh",rprt15n,"Wedge","nil",vt(0,0,0),vt(1.05,1.05,1.05))
  500. rmsh16n=mesh("SpecialMesh",rprt16n,"Wedge","nil",vt(0,0,0),vt(1.05,1.05,1.05))
  501. rmsh17=mesh("BlockMesh",rprt17,"","",vt(0,0,0),vt(.8,10,1.5))
  502. rmsh18=mesh("BlockMesh",rprt18,"","",vt(0,0,0),vt(.8,1,.5))
  503. rmsh19=mesh("SpecialMesh",rprt19,"Wedge","nil",vt(0,0,0),vt(.8,.5,.5))
  504. rmsh20=mesh("BlockMesh",rprt20,"","",vt(0,0,0),vt(1,10.5,.5))
  505. rmsh21=mesh("BlockMesh",rprt21,"","",vt(0,0,0),vt(1,13.5,1))
  506. rmsh22=mesh("CylinderMesh",rprt22,"","",vt(0,0,0),vt(.8,13.5,.8))
  507. rmsh23=mesh("BlockMesh",rprt23,"","",vt(0,0,0),vt(1.5,11.5,1))
  508. rmsh24=mesh("SpecialMesh",rprt24,"Wedge","nil",vt(0,0,0),vt(1.5,1,1))
  509. rmsh25=mesh("SpecialMesh",rprt25,"Wedge","nil",vt(0,0,0),vt(1.5,.5,1))
  510. rmsh23n=mesh("BlockMesh",rprt23n,"","",vt(0,0,0),vt(1.55,11.55,1.05))
  511. rmsh24n=mesh("SpecialMesh",rprt24n,"Wedge","nil",vt(0,0,0),vt(1.55,1.05,1.05))
  512. rmsh25n=mesh("SpecialMesh",rprt25n,"Wedge","nil",vt(0,0,0),vt(1.55,.55,1.05))
  513. rmsh26=mesh("BlockMesh",rprt26,"","",vt(0,0,0),vt(1.5,6,1))
  514. rmsh27=mesh("SpecialMesh",rprt27,"Wedge","nil",vt(0,0,0),vt(1.5,1,1))
  515. rmsh28=mesh("BlockMesh",rprt28,"","",vt(0,0,0),vt(2,1,1.5))
  516. rmsh29=mesh("SpecialMesh",rprt29,"Wedge","nil",vt(0,0,0),vt(2,2,1.5))
  517. rmsh30=mesh("BlockMesh",rprt30,"","",vt(0,0,0),vt(2,2,.75))
  518. rmsh31=mesh("BlockMesh",rprt31,"","",vt(0,0,0),vt(2,1,1.5))
  519. rmsh32=mesh("BlockMesh",rprt32,"","",vt(0,0,0),vt(2.01,1.5,1))
  520. rmsh33=mesh("SpecialMesh",rprt33,"Wedge","nil",vt(0,0,0),vt(2.01,1,1))
  521. rmsh34=mesh("SpecialMesh",rprt34,"Wedge","nil",vt(0,0,0),vt(2.01,1,1))
  522. rmsh35=mesh("BlockMesh",rprt35,"","",vt(0,0,0),vt(1.49,1,1.99))
  523. rmsh36=mesh("SpecialMesh",rprt36,"Wedge","nil",vt(0,0,0),vt(1.49,2,1.99))
  524.  
  525. lmsh1=mesh("BlockMesh",lprt1,"","",vt(0,0,0),vt(1,1,1))
  526. lmsh2=mesh("BlockMesh",lprt2,"","",vt(0,0,0),vt(1,6,1.5))
  527. lmsh3=mesh("BlockMesh",lprt3,"","",vt(0,0,0),vt(1.01,4.51,1.01))
  528. lmsh4=mesh("BlockMesh",lprt4,"","",vt(0,0,0),vt(1.01,.49,.99))
  529. lmsh4n=mesh("BlockMesh",lprt4n,"","",vt(0,0,0),vt(1.06,.54,1.04))
  530. lmsh5=mesh("SpecialMesh",lprt5,"Wedge","nil",vt(0,0,0),vt(1,1.5,1))
  531. lmsh6=mesh("BlockMesh",lprt6,"","",vt(0,0,0),vt(1,6,1))
  532. lmsh7=mesh("SpecialMesh",lprt7,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  533. lmsh8=mesh("BlockMesh",lprt8,"","",vt(0,0,0),vt(1.01,3,1.01))
  534. lmsh9=mesh("BlockMesh",lprt9,"","",vt(0,0,0),vt(.5,6.5,1))
  535. lmsh9n=mesh("BlockMesh",lprt9n,"","",vt(0,0,0),vt(.55,6.55,1.05))
  536. lmsh10=mesh("BlockMesh",lprt10,"","",vt(0,0,0),vt(.9,2,1.01))
  537. lmsh11=mesh("SpecialMesh",lprt11,"Wedge","nil",vt(0,0,0),vt(1.1,1,1.6))
  538. lmsh12=mesh("BlockMesh",lprt12,"","",vt(0,0,0),vt(1.1,1,1.6))
  539. lmsh13=mesh("SpecialMesh",lprt13,"Wedge","nil",vt(0,0,0),vt(1.1,1,1.6))
  540. lmsh14=mesh("BlockMesh",lprt14,"","",vt(0,0,0),vt(1,7,1))
  541. lmsh15=mesh("SpecialMesh",lprt15,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  542. lmsh16=mesh("SpecialMesh",lprt16,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  543. lmsh14n=mesh("BlockMesh",lprt14n,"","",vt(0,0,0),vt(1.05,7.05,1.05))
  544. lmsh15n=mesh("SpecialMesh",lprt15n,"Wedge","nil",vt(0,0,0),vt(1.05,1.05,1.05))
  545. lmsh16n=mesh("SpecialMesh",lprt16n,"Wedge","nil",vt(0,0,0),vt(1.05,1.05,1.05))
  546. lmsh17=mesh("BlockMesh",lprt17,"","",vt(0,0,0),vt(.8,10,1.5))
  547. lmsh18=mesh("BlockMesh",lprt18,"","",vt(0,0,0),vt(.8,1,.5))
  548. lmsh19=mesh("SpecialMesh",lprt19,"Wedge","nil",vt(0,0,0),vt(.8,.5,.5))
  549. lmsh20=mesh("BlockMesh",lprt20,"","",vt(0,0,0),vt(1,10.5,.5))
  550. lmsh21=mesh("BlockMesh",lprt21,"","",vt(0,0,0),vt(1,13.5,1))
  551. lmsh22=mesh("CylinderMesh",lprt22,"","",vt(0,0,0),vt(.8,13.5,.8))
  552. lmsh23=mesh("BlockMesh",lprt23,"","",vt(0,0,0),vt(1.5,11.5,1))
  553. lmsh24=mesh("SpecialMesh",lprt24,"Wedge","nil",vt(0,0,0),vt(1.5,1,1))
  554. lmsh25=mesh("SpecialMesh",lprt25,"Wedge","nil",vt(0,0,0),vt(1.5,.5,1))
  555. lmsh23n=mesh("BlockMesh",lprt23n,"","",vt(0,0,0),vt(1.55,11.55,1.05))
  556. lmsh24n=mesh("SpecialMesh",lprt24n,"Wedge","nil",vt(0,0,0),vt(1.55,1.05,1.05))
  557. lmsh25n=mesh("SpecialMesh",lprt25n,"Wedge","nil",vt(0,0,0),vt(1.55,.55,1.05))
  558. lmsh26=mesh("BlockMesh",lprt26,"","",vt(0,0,0),vt(1.5,6,1))
  559. lmsh27=mesh("SpecialMesh",lprt27,"Wedge","nil",vt(0,0,0),vt(1.5,1,1))
  560. lmsh28=mesh("BlockMesh",lprt28,"","",vt(0,0,0),vt(2,1,1.5))
  561. lmsh29=mesh("SpecialMesh",lprt29,"Wedge","nil",vt(0,0,0),vt(2,2,1.5))
  562. lmsh30=mesh("BlockMesh",lprt30,"","",vt(0,0,0),vt(2,2,.75))
  563. lmsh31=mesh("BlockMesh",lprt31,"","",vt(0,0,0),vt(2,1,1.5))
  564. lmsh32=mesh("BlockMesh",lprt32,"","",vt(0,0,0),vt(2.01,1.5,1))
  565. lmsh33=mesh("SpecialMesh",lprt33,"Wedge","nil",vt(0,0,0),vt(2.01,1,1))
  566. lmsh34=mesh("SpecialMesh",lprt34,"Wedge","nil",vt(0,0,0),vt(2.01,1,1))
  567. lmsh35=mesh("BlockMesh",lprt35,"","",vt(0,0,0),vt(1.49,1,1.99))
  568. lmsh36=mesh("SpecialMesh",lprt36,"Wedge","nil",vt(0,0,0),vt(1.49,2,1.99))
  569.  
  570. --rwld1=weld(rprt1,rprt1,RightLeg,euler(1.57,1.57,.5)*cf(0,-2,-.6))
  571. rwld1=weld(RightArm,rprt1,LeftLeg,euler(2.2,.5,0)*cf(.5,-1.5,.5))
  572. --rwld1=weld(rprt1,rprt1,RightArm,euler(1.57,0,0)*cf(0,.9,-.2))
  573. rwld2=weld(rprt1,rprt2,rprt1,euler(.5,0,0)*cf(0,0,0))
  574. rwld3=weld(rprt1,rprt3,rprt2,euler(0,0,0)*cf(0,-.15,.05))
  575. rwld4=weld(rprt1,rprt4,rprt2,euler(0,0,0)*cf(0,.55,-.05))
  576. rwld4n=weld(rprt1,rprt4n,rprt4,euler(0,0,0)*cf(0,0,0))
  577. rwld5=weld(rprt1,rprt5,rprt2,euler(0,0,0)*cf(0,.45,.25))
  578. rwld6=weld(rprt1,rprt6,rprt2,cf(0,-1,-.3)*euler(1.07,0,0))
  579. rwld7=weld(rprt1,rprt7,rprt6,euler(0,0,3.14)*cf(0,.7,0))
  580. rwld8=weld(rprt1,rprt8,rprt6,euler(0,0,0)*cf(0,-.4,0))
  581. rwld9=weld(rprt1,rprt9,rprt6,euler(0,0,0)*cf(0,-.05,.1))
  582. rwld9n=weld(rprt1,rprt9n,rprt9,euler(0,0,0)*cf(0,0,0))
  583. rwld10=weld(rprt1,rprt10,rprt6,euler(0,0,0)*cf(0,.1,.1))
  584. rwld11=weld(rprt1,rprt11,rprt6,euler(3.14,0,0)*cf(0,-.6,.05))
  585. rwld12=weld(rprt1,rprt12,rprt11,euler(0,0,0)*cf(0,.2,0))
  586. rwld13=weld(rprt1,rprt13,rprt12,euler(3.14,0,0)*cf(0,.2,0))
  587. rwld14=weld(rprt1,rprt14,rprt6,euler(0,0,0)*cf(0,-.4,-.2))
  588. rwld15=weld(rprt1,rprt15,rprt14,euler(0,0,0)*cf(0,-.8,0))
  589. rwld16=weld(rprt1,rprt16,rprt14,euler(3.14,0,0)*cf(0,.8,0))
  590. rwld14n=weld(rprt1,rprt14n,rprt14,euler(0,0,0)*cf(0,0,0))
  591. rwld15n=weld(rprt1,rprt15n,rprt15,euler(0,0,0)*cf(0,-.005,0))
  592. rwld16n=weld(rprt1,rprt16n,rprt16,euler(0,0,0)*cf(0,-.005,0))
  593. rwld17=weld(rprt1,rprt17,rprt14,euler(0,0,0)*cf(0,.3,-.05))
  594. rwld18=weld(rprt1,rprt18,rprt14,euler(0,0,0)*cf(0,-.8,-.15))
  595. rwld19=weld(rprt1,rprt19,rprt18,euler(0,0,0)*cf(0,-.15,0))
  596. rwld20=weld(rprt1,rprt20,rprt17,euler(0,0,0)*cf(0,-.05,-.2))
  597. rwld21=weld(rprt1,rprt21,rprt20,euler(0,0,0)*cf(0,-.2,-.15))
  598. rwld22=weld(rprt1,rprt22,rprt21,euler(0,0,0)*cf(0,-.01,0))
  599. rwld23=weld(rprt1,rprt23,rprt21,euler(0,0,0)*cf(0,.25,.1))
  600. rwld24=weld(rprt1,rprt24,rprt23,euler(0,3.14,0)*cf(0,-1.25,0))
  601. rwld25=weld(rprt1,rprt25,rprt23,euler(3.14,0,0)*cf(0,1.2,0))
  602. rwld23n=weld(rprt1,rprt23n,rprt23,euler(0,0,0)*cf(0,0,0))
  603. rwld24n=weld(rprt1,rprt24n,rprt24,euler(0,0,0)*cf(0,-.005,0))
  604. rwld25n=weld(rprt1,rprt25n,rprt25,euler(0,0,0)*cf(0,-.005,0))
  605. rwld26=weld(rprt1,rprt26,rprt23,euler(0,0,0)*cf(0,-.55,-.2))
  606. rwld27=weld(rprt1,rprt27,rprt26,euler(0,0,0)*cf(0,-.7,0))
  607. rwld28=weld(rprt1,rprt28,rprt26,euler(0,0,0)*cf(0,.6,.049))
  608. rwld29=weld(rprt1,rprt29,rprt28,euler(0,0,0)*cf(0,-.3,0))
  609. rwld30=weld(rprt1,rprt30,rprt28,euler(0,0,0)*cf(0,.3,.075))
  610. rwld31=weld(rprt1,rprt31,rprt28,euler(0,0,0)*cf(0,.6,0))
  611. rwld32=weld(rprt1,rprt32,rprt31,euler(0,0,0)*cf(0,.25,-.06))
  612. rwld33=weld(rprt1,rprt33,rprt32,euler(0,0,0)*cf(0,-.25,0))
  613. rwld34=weld(rprt1,rprt34,rprt32,euler(3.14,0,0)*cf(0,.25,0))
  614. rwld35=weld(rprt1,rprt35,rprt26,euler(0,0,0)*cf(0,-.7,.1))
  615. rwld36=weld(rprt1,rprt36,rprt26,euler(0,0,0)*cf(0,-1,.1))
  616.  
  617. --lwld1=weld(lprt1,lprt1,RightLeg,euler(1.57,1.57,.5)*cf(0,-2,-.6))
  618. lwld1=weld(lprt1,lprt1,RightLeg,euler(2.2,-.5,0)*cf(-.5,-1.5,.5))
  619. --lwld1=weld(lprt1,lprt1,RightArm,euler(1.57,0,0)*cf(0,.9,-.2))
  620. lwld2=weld(rprt1,lprt2,lprt1,euler(.5,0,0)*cf(0,0,0))
  621. lwld3=weld(rprt1,lprt3,lprt2,euler(0,0,0)*cf(0,-.15,.05))
  622. lwld4=weld(rprt1,lprt4,lprt2,euler(0,0,0)*cf(0,.55,-.05))
  623. lwld4n=weld(rprt1,lprt4n,lprt4,euler(0,0,0)*cf(0,0,0))
  624. lwld5=weld(rprt1,lprt5,lprt2,euler(0,0,0)*cf(0,.45,.25))
  625. lwld6=weld(rprt1,lprt6,lprt2,cf(0,-1,-.3)*euler(1.07,0,0))
  626. lwld7=weld(rprt1,lprt7,lprt6,euler(0,0,3.14)*cf(0,.7,0))
  627. lwld8=weld(rprt1,lprt8,lprt6,euler(0,0,0)*cf(0,-.4,0))
  628. lwld9=weld(rprt1,lprt9,lprt6,euler(0,0,0)*cf(0,-.05,.1))
  629. lwld9n=weld(rprt1,lprt9n,lprt9,euler(0,0,0)*cf(0,0,0))
  630. lwld10=weld(rprt1,lprt10,lprt6,euler(0,0,0)*cf(0,.1,.1))
  631. lwld11=weld(rprt1,lprt11,lprt6,euler(3.14,0,0)*cf(0,-.6,.05))
  632. lwld12=weld(rprt1,lprt12,lprt11,euler(0,0,0)*cf(0,.2,0))
  633. lwld13=weld(rprt1,lprt13,lprt12,euler(3.14,0,0)*cf(0,.2,0))
  634. lwld14=weld(rprt1,lprt14,lprt6,euler(0,0,0)*cf(0,-.4,-.2))
  635. lwld15=weld(rprt1,lprt15,lprt14,euler(0,0,0)*cf(0,-.8,0))
  636. lwld16=weld(rprt1,lprt16,lprt14,euler(3.14,0,0)*cf(0,.8,0))
  637. lwld14n=weld(rprt1,lprt14n,lprt14,euler(0,0,0)*cf(0,0,0))
  638. lwld15n=weld(rprt1,lprt15n,lprt15,euler(0,0,0)*cf(0,-.005,0))
  639. lwld16n=weld(rprt1,lprt16n,lprt16,euler(0,0,0)*cf(0,-.005,0))
  640. lwld17=weld(rprt1,lprt17,lprt14,euler(0,0,0)*cf(0,.3,-.05))
  641. lwld18=weld(rprt1,lprt18,lprt14,euler(0,0,0)*cf(0,-.8,-.15))
  642. lwld19=weld(rprt1,lprt19,lprt18,euler(0,0,0)*cf(0,-.15,0))
  643. lwld20=weld(rprt1,lprt20,lprt17,euler(0,0,0)*cf(0,-.05,-.2))
  644. lwld21=weld(rprt1,lprt21,lprt20,euler(0,0,0)*cf(0,-.2,-.15))
  645. lwld22=weld(rprt1,lprt22,lprt21,euler(0,0,0)*cf(0,-.01,0))
  646. lwld23=weld(rprt1,lprt23,lprt21,euler(0,0,0)*cf(0,.25,.1))
  647. lwld24=weld(rprt1,lprt24,lprt23,euler(0,3.14,0)*cf(0,-1.25,0))
  648. lwld25=weld(rprt1,lprt25,lprt23,euler(3.14,0,0)*cf(0,1.2,0))
  649. lwld23n=weld(rprt1,lprt23n,lprt23,euler(0,0,0)*cf(0,0,0))
  650. lwld24n=weld(rprt1,lprt24n,lprt24,euler(0,0,0)*cf(0,-.005,0))
  651. lwld25n=weld(rprt1,lprt25n,lprt25,euler(0,0,0)*cf(0,-.005,0))
  652. lwld26=weld(rprt1,lprt26,lprt23,euler(0,0,0)*cf(0,-.55,-.2))
  653. lwld27=weld(rprt1,lprt27,lprt26,euler(0,0,0)*cf(0,-.7,0))
  654. lwld28=weld(rprt1,lprt28,lprt26,euler(0,0,0)*cf(0,.6,.049))
  655. lwld29=weld(rprt1,lprt29,lprt28,euler(0,0,0)*cf(0,-.3,0))
  656. lwld30=weld(rprt1,lprt30,lprt28,euler(0,0,0)*cf(0,.3,.075))
  657. lwld31=weld(rprt1,lprt31,lprt28,euler(0,0,0)*cf(0,.6,0))
  658. lwld32=weld(rprt1,lprt32,lprt31,euler(0,0,0)*cf(0,.25,-.06))
  659. lwld33=weld(rprt1,lprt33,lprt32,euler(0,0,0)*cf(0,-.25,0))
  660. lwld34=weld(rprt1,lprt34,lprt32,euler(3.14,0,0)*cf(0,.25,0))
  661. lwld35=weld(rprt1,lprt35,lprt26,euler(0,0,0)*cf(0,-.7,.1))
  662. lwld36=weld(rprt1,lprt36,lprt26,euler(0,0,0)*cf(0,-1,.1))
  663.  
  664. for _,c in pairs(modelzorz:children()) do
  665. table.insert(Weapon,c)
  666. end
  667. for _,c in pairs(rprt1:children()) do
  668. if c.className=="Motor" then
  669. table.insert(Welds,c)
  670. end
  671. end
  672. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt(0.2,0.2,0.2))
  673. hitbox.Anchored=false
  674. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  675. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  676. hitbox2.Anchored=true
  677. local hitboxCF=cf(0,0,0)
  678.  
  679. hboxpos=Instance.new("BodyPosition",nil)
  680. hboxpos.P=2000
  681. hboxpos.D=100
  682. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  683.  
  684. function hitboxweld()
  685. hbwld.Parent=modelzorz
  686. hbwld.Part0=hitbox
  687. hbwld.Part1=lprt17
  688. end
  689.  
  690. local gunpart=rprt36
  691. local gunpart2=rprt22
  692.  
  693.  
  694.  
  695. local bodvel=Instance.new("BodyVelocity")
  696. local bg=Instance.new("BodyGyro")
  697.  
  698. so = function(id,par,vol,pit)
  699. local sou = Instance.new("Sound",par or workspace)
  700. sou.Volume=vol
  701. sou.Pitch=pit or 1
  702. sou.SoundId="http://www.roblox.com/asset/?id="..id
  703. coroutine.resume(coroutine.create(function(Sound)
  704. swait()
  705. Sound:play()
  706. end),sou)
  707. game:GetService("Debris"):AddItem(sou,6)
  708. end
  709.  
  710. function clerp(a,b,t)
  711. local qa = {QuaternionFromCFrame(a)}
  712. local qb = {QuaternionFromCFrame(b)}
  713. local ax, ay, az = a.x, a.y, a.z
  714. local bx, by, bz = b.x, b.y, b.z
  715. local _t = 1-t
  716. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  717. end
  718.  
  719. function QuaternionFromCFrame(cf)
  720. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  721. local trace = m00 + m11 + m22
  722. if trace > 0 then
  723. local s = math.sqrt(1 + trace)
  724. local recip = 0.5/s
  725. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  726. else
  727. local i = 0
  728. if m11 > m00 then
  729. i = 1
  730. end
  731. if m22 > (i == 0 and m00 or m11) then
  732. i = 2
  733. end
  734. if i == 0 then
  735. local s = math.sqrt(m00-m11-m22+1)
  736. local recip = 0.5/s
  737. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  738. elseif i == 1 then
  739. local s = math.sqrt(m11-m22-m00+1)
  740. local recip = 0.5/s
  741. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  742. elseif i == 2 then
  743. local s = math.sqrt(m22-m00-m11+1)
  744. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  745. end
  746. end
  747. end
  748.  
  749. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  750. local xs, ys, zs = x + x, y + y, z + z
  751. local wx, wy, wz = w*xs, w*ys, w*zs
  752. local xx = x*xs
  753. local xy = x*ys
  754. local xz = x*zs
  755. local yy = y*ys
  756. local yz = y*zs
  757. local zz = z*zs
  758. 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))
  759. end
  760.  
  761. function QuaternionSlerp(a, b, t)
  762. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  763. local startInterp, finishInterp;
  764. if cosTheta >= 0.0001 then
  765. if (1 - cosTheta) > 0.0001 then
  766. local theta = math.acos(cosTheta)
  767. local invSinTheta = 1/math.sin(theta)
  768. startInterp = math.sin((1-t)*theta)*invSinTheta
  769. finishInterp = math.sin(t*theta)*invSinTheta
  770. else
  771. startInterp = 1-t
  772. finishInterp = t
  773. end
  774. else
  775. if (1+cosTheta) > 0.0001 then
  776. local theta = math.acos(-cosTheta)
  777. local invSinTheta = 1/math.sin(theta)
  778. startInterp = math.sin((t-1)*theta)*invSinTheta
  779. finishInterp = math.sin(t*theta)*invSinTheta
  780. else
  781. startInterp = t-1
  782. finishInterp = t
  783. end
  784. end
  785. 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
  786. end
  787.  
  788. function hideanim()
  789. equipped=false
  790. for i=0,1,0.1 do
  791. swait()
  792. GunLeft(.7)
  793. GunRight(.7)
  794. rwld1.C0=clerp(rwld1.C0,euler(2.2,0,-.6)*cf(-.2,.7,-.6),.4)
  795. lwld1.C0=clerp(lwld1.C0,euler(2.2,0,.6)*cf(.2,.7,-.6),.4)
  796. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0),.4)
  797. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  798. RW.C0=clerp(RW.C0,cf(.2,0.3,-.5)*euler(.2,0,-1),.4)
  799. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  800. LW.C0=clerp(LW.C0,cf(-.2,0.3,-.5)*euler(.2,0,1),.4)
  801. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  802. end
  803. lwld1.Part1=RightLeg
  804. lwld1.C0=euler(2.2,-.5,0)*cf(-.5,-1.5,.5)
  805. rwld1.Part1=LeftLeg
  806. rwld1.C0=euler(2.2,.5,0)*cf(.5,-1.5,.5)
  807. for i=0,1,0.3 do
  808. swait()
  809. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  810. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  811. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  812. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  813. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  814. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  815. RH.C0=clerp(RH.C0,RHC0,.4)
  816. LH.C0=clerp(LH.C0,LHC0,.4)
  817. end
  818. mdec2.Parent=nil
  819. mdec.Parent=Decrease
  820. end
  821.  
  822. mdec.Parent=Decrease
  823. function equipanim()
  824. equipped=true
  825. mdec.Parent=nil
  826. mdec2.Parent=Decrease
  827. for i=0,1,0.2 do
  828. swait()
  829. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0),.4)
  830. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  831. RW.C0=clerp(RW.C0,cf(.2,0.3,-.5)*euler(.2,0,-1),.4)
  832. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  833. LW.C0=clerp(LW.C0,cf(-.2,0.3,-.5)*euler(.2,0,1),.4)
  834. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  835. end
  836. rwld1.Part1=RightArm
  837. lwld1.Part1=LeftArm
  838. --[[rwld1.C0=euler(1.57,0,0)*cf(0,.9,-.2)
  839. lwld1.C0=euler(1.57,0,0)*cf(0,.9,-.2)]]
  840. rwld1.C0=euler(2.2,0,-.6)*cf(-.2,.7,-.6)
  841. lwld1.C0=euler(2.2,0,.6)*cf(.2,.7,-.6)
  842. end
  843.  
  844. function StaggerAnim()
  845. attack=true
  846. removeControl()
  847. for i=1,math.random(2,4) do
  848. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  849. end
  850. for i=0,1,0.35 do
  851. swait()
  852. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  853. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  854. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  855. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  856. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  857. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  858. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  859. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  860. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  861. if Stun.Value>=StunT.Value then
  862. break
  863. end
  864. end
  865. for i=0,1,0.2 do
  866. swait()
  867. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  868. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  869. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  870. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  871. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  872. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  873. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  874. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  875. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  876. if Stun.Value>=StunT.Value then
  877. break
  878. end
  879. end
  880. for i=0,1,0.1 do
  881. swait()
  882. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  883. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  884. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.8)*euler(0,-.4,0),.3)
  885. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  886. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.6)*euler(0,.4,0),.3)
  887. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  888. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  889. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  890. if Stun.Value>=StunT.Value then
  891. break
  892. end
  893. end
  894. for i=1,40 do
  895. swait()
  896. if Stun.Value>=StunT.Value then
  897. break
  898. end
  899. end
  900. resumeControl()
  901. combo=0
  902. attack=false
  903. end
  904.  
  905. function StaggerHitt() end
  906.  
  907. function StunAnim()
  908. attack=true
  909. removeControl()
  910. Stunned.Value=true
  911. showDamage(Character,"Stunned","Interrupt")
  912. local dec=Instance.new("NumberValue",Decrease)
  913. dec.Name="DecreaseMvmt"
  914. dec.Value=10
  915. for i=0,1,0.3 do
  916. swait()
  917. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  918. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  919. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  920. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  921. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  922. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  923. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  924. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  925. end
  926. for i=0,1,0.3 do
  927. swait()
  928. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  929. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  930. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  931. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  932. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  933. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  934. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  935. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  936. end
  937. for i=0,1,0.3 do
  938. swait()
  939. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  940. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  941. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  942. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  943. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  944. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  945. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  946. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  947. end
  948. local gairost=Instance.new("BodyGyro")
  949. gairost.Parent=RootPart
  950. gairost.maxTorque=Vector3.new(2000,0,2000)
  951. gairost.P=2000
  952. gairost.cframe=cf(0,0,0)
  953. for i=0,1,0.1 do
  954. swait()
  955. if hitfloor~=nil then
  956. Torso.Velocity=vt(0,0,0)
  957. end
  958. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  959. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,3.14,0),.3)
  961. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  962. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  963. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  964. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  965. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  966. end
  967. for i=1,70 do
  968. swait()
  969. gairost.cframe=RootPart.CFrame
  970. if hitfloor~=nil then
  971. Torso.Velocity=vt(0,0,0)
  972. end
  973. end
  974. for i=0,1,0.2 do
  975. swait()
  976. Stun.Value=0
  977. gairost.cframe=RootPart.CFrame
  978. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  979. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  980. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  981. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  982. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  983. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  984. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  985. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  986. end
  987. resumeControl()
  988. gairost.Parent=nil
  989. dec.Parent=nil
  990. Stun.Value=0
  991. combo=0
  992. Stunned.Value=false
  993. attack=false
  994. for i=1,10 do
  995. swait()
  996. Stun.Value=0
  997. end
  998. end
  999. remote = Instance.new 'RemoteFunction';
  1000. remote.Parent = script;
  1001. remote.OnServerInvoke = function (player, request, ...)
  1002. if (player ~= owner) then
  1003. return error ('You cannot invoke this remote', 0);
  1004. end;
  1005. if (request == 1) then
  1006.  
  1007. ob1d(...)
  1008. end
  1009. if (request == 2) then
  1010. local k = ...;
  1011. key(k)
  1012.  
  1013. end;
  1014. if (request == 3) then
  1015.  
  1016. ob1u(...)
  1017. end
  1018. if (request == 4) then
  1019. s()
  1020. end;
  1021. if (request == 5) then
  1022. ds()
  1023. end;
  1024. if (request == 6) then
  1025. local k = ...;
  1026. key2(k)
  1027. end;
  1028. end
  1029. remote.Name = 'ServerRemote';
  1030. function getMouseHit()
  1031. return remote:InvokeClient (owner, 1);
  1032. end;
  1033. function GunLeft(i)
  1034. gunleft=true
  1035. lwld2.C0=clerp(lwld2.C0,euler(.5,0,0)*cf(0,0,0),i)
  1036. lwld6.C0=clerp(lwld6.C0,cf(0,-1,-.3)*euler(1.07,0,0),i)
  1037. lwld23.C0=clerp(lwld23.C0,euler(0,0,0)*cf(0,.25,.1),i)
  1038. end
  1039. function TonfaLeft(i)
  1040. gunleft=false
  1041. lwld2.C0=clerp(lwld2.C0,euler(3.14,0,0)*cf(0,0,0),i)
  1042. lwld6.C0=clerp(lwld6.C0,cf(0,-.8,-.5)*euler(1.57,0,0),i)
  1043. lwld23.C0=clerp(lwld23.C0,euler(0,0,0)*cf(0,.9,.1),i)
  1044. end
  1045. function GunRight(i)
  1046. gunright=true
  1047. rwld2.C0=clerp(rwld2.C0,euler(.5,0,0)*cf(0,0,0),i)
  1048. rwld6.C0=clerp(rwld6.C0,cf(0,-1,-.3)*euler(1.07,0,0),i)
  1049. rwld23.C0=clerp(rwld23.C0,euler(0,0,0)*cf(0,.25,.1),i)
  1050. end
  1051. function TonfaRight(i)
  1052. gunright=false
  1053. rwld2.C0=clerp(rwld2.C0,euler(3.14,0,0)*cf(0,0,0),i)
  1054. rwld6.C0=clerp(rwld6.C0,cf(0,-.8,-.5)*euler(1.57,0,0),i)
  1055. rwld23.C0=clerp(rwld23.C0,euler(0,0,0)*cf(0,.9,.1),i)
  1056. end
  1057.  
  1058. function attackone()
  1059. attack=true
  1060. for i=0,1,0.15 do
  1061. swait()
  1062. TonfaLeft(.6)
  1063. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-1.2),.3)
  1064. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.2),.3)
  1065. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.6,0,1)*euler(0,1.7,0),.3)
  1066. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1067. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-.7)*euler(0,-1.57,0),.3)
  1068. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1069. RH.C0=clerp(RH.C0,cf(.9,-1,.4)*euler(0,0.57,-.1),.2)
  1070. LH.C0=clerp(LH.C0,cf(-.9,-.9,-.4)*euler(0,-2.57,.4),.2)
  1071. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1072. break
  1073. end
  1074. end
  1075. so("199145095",lprt17,1,1.2)
  1076. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,6,math.random(20,30),"Normal",RootPart,.5,1,math.random(3,8),nil,true,false) end)
  1077. hbwld.Parent=nil
  1078. hboxpos.Parent=hitbox
  1079. hitbox.Parent=modelzorz
  1080. hitbox.Size=vt(.5,3,1)
  1081. hitboxCF=lprt17.CFrame*cf(0,-.2,0)
  1082. hitbox.CFrame=hitboxCF
  1083. for i=0,1,0.4 do
  1084. swait()
  1085. TonfaLeft(.5)
  1086. hitboxCF=lprt17.CFrame*cf(0,-.2,0)
  1087. hitbox.CFrame=hitboxCF
  1088. MagniDamage(hitbox,3,4,4,math.random(20,30),"Normal",RootPart,.5,1,math.random(3,8),nil,true,false)
  1089. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,1.2),.3)
  1090. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1.2),.3)
  1091. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,0,1)*euler(0,1.7,0),.3)
  1092. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1093. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.5,0,-.7)*euler(0,-1.57,0),.3)
  1094. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1095. RH.C0=clerp(RH.C0,cf(.9,-1,-.4)*euler(0,2.57,-.4),.2)
  1096. LH.C0=clerp(LH.C0,cf(-.9,-.9,.4)*euler(0,-0.57,.1),.2)
  1097. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1098. break
  1099. end
  1100. end
  1101. for i=0,1,0.15 do
  1102. swait()
  1103. hitboxCF=lprt17.CFrame*cf(0,-.2,0)
  1104. hitbox.CFrame=hitboxCF
  1105. MagniDamage(hitbox,3,4,4,math.random(20,30),"Normal",RootPart,.5,1,math.random(3,8),nil,true,false)
  1106. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,1.2),.3)
  1107. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1.2),.3)
  1108. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,0,1)*euler(0,1.7,0),.3)
  1109. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1110. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1,0,.2)*euler(0,-1.57,0),.3)
  1111. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1112. RH.C0=clerp(RH.C0,cf(.9,-1,-.4)*euler(0,2.57,-.4),.2)
  1113. LH.C0=clerp(LH.C0,cf(-.9,-.9,.4)*euler(0,-0.57,.1),.2)
  1114. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1115. break
  1116. end
  1117. end
  1118. --con1:disconnect()
  1119. hitbox.Parent=modelzorz
  1120. hitbox.Size=vt()
  1121. hitboxweld()
  1122. hboxpos.Parent=nil
  1123. attack=false
  1124. end
  1125.  
  1126. function attacktwo()
  1127. attack=true
  1128. for i=0,1,0.15 do
  1129. swait()
  1130. TonfaRight(.6)
  1131. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.4)*euler(.2,0,0),.3)
  1132. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1.4),.3)
  1133. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.7,0,.5)*euler(0,1,0),.3)
  1134. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1135. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-.4)*euler(0,-1.57,0),.3)
  1136. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1137. RH.C0=clerp(RH.C0,cf(.9,-1,-.4)*euler(0,2.77,-.4),.2)
  1138. LH.C0=clerp(LH.C0,cf(-.9,-.9,.4)*euler(0,-0.37,.1),.2)
  1139. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1140. break
  1141. end
  1142. end
  1143. so("199145204",rprt17,1,1.2)
  1144. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,6,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false) end)
  1145. hbwld.Parent=nil
  1146. hboxpos.Parent=hitbox
  1147. hitbox.Parent=modelzorz
  1148. hitbox.Size=vt(.5,3,1)
  1149. hitboxCF=rprt17.CFrame*cf(0,-.2,0)
  1150. hitbox.CFrame=hitboxCF
  1151. for i=0,1,0.4 do
  1152. swait()
  1153. TonfaRight(.5)
  1154. hitboxCF=rprt17.CFrame*cf(0,-.2,0)
  1155. hitbox.CFrame=hitboxCF
  1156. MagniDamage(hitbox,3,4,4,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false)
  1157. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1)*euler(-.05,0,0),.5)
  1158. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1),.5)
  1159. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.5,0,0)*euler(0,1.4,0)*euler(0,-.2,0),.3)
  1160. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1161. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.6),.3)
  1162. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1163. RH.C0=clerp(RH.C0,cf(.9,-1,.4)*euler(0,.67,-.1),.2)
  1164. LH.C0=clerp(LH.C0,cf(-.9,-.9,-.4)*euler(0,-2.47,.4),.2)
  1165. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1166. break
  1167. end
  1168. end
  1169. for i=0,1,0.15 do
  1170. swait()
  1171. TonfaRight(.4)
  1172. hitboxCF=rprt17.CFrame*cf(0,-.2,0)
  1173. hitbox.CFrame=hitboxCF
  1174. MagniDamage(hitbox,3,4,4,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false)
  1175. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.2)*euler(-.1,0,0),.3)
  1176. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.2),.3)
  1177. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.8,0,0)*euler(0,1.5,0)*euler(0,-.2,0),.3)
  1178. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1179. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.6),.3)
  1180. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1181. RH.C0=clerp(RH.C0,cf(.9,-1,.4)*euler(0,.47,-.1),.2)
  1182. LH.C0=clerp(LH.C0,cf(-.9,-.9,-.4)*euler(0,-2.67,.4),.2)
  1183. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1184. break
  1185. end
  1186. end
  1187. --con1:disconnect()
  1188. hitbox.Parent=modelzorz
  1189. hitbox.Size=vt()
  1190. hitboxweld()
  1191. hboxpos.Parent=nil
  1192. attack=false
  1193. end
  1194.  
  1195. function attackthree()
  1196. attack=true
  1197. for i=0,1,0.15 do
  1198. swait()
  1199. TonfaLeft(.6)
  1200. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  1201. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1202. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.2),.3)
  1203. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1204. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(1.57,0,1)*euler(0,-1.57,0),.3)
  1205. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1206. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,-.4),.3)
  1207. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,.1),.3)
  1208. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1209. break
  1210. end
  1211. end
  1212. so("199145095",lprt17,1,1)
  1213. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,6,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false) end)
  1214. hbwld.Parent=nil
  1215. hboxpos.Parent=hitbox
  1216. hitbox.Parent=modelzorz
  1217. hitbox.Size=vt(.5,3,1)
  1218. hitboxCF=lprt17.CFrame*cf(0,-.2,0)
  1219. hitbox.CFrame=hitboxCF
  1220. for i=0,1,0.15 do
  1221. swait()
  1222. TonfaLeft(.6)
  1223. hitboxCF=lprt17.CFrame*cf(0,-.2,0)
  1224. hitbox.CFrame=hitboxCF
  1225. MagniDamage(hitbox,3,4,4,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false)
  1226. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1227. RootJoint.C0=RootCF*euler(0,0,-.5+6.28*i)
  1228. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,1),.3)
  1229. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1230. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-1.57,0),.3)
  1231. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1232. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1233. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1234. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1235. break
  1236. end
  1237. end
  1238. for i=0,1,0.2 do
  1239. swait()
  1240. hitboxCF=lprt17.CFrame*cf(0,-.2,0)
  1241. hitbox.CFrame=hitboxCF
  1242. MagniDamage(hitbox,3,4,4,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false)
  1243. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1244. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1245. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,1),.3)
  1246. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1247. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.3,0,-1.57)*euler(0,-1.2,0),.3)
  1248. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1249. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1250. break
  1251. end
  1252. end
  1253. --con1:disconnect()
  1254. hitbox.Parent=modelzorz
  1255. hitbox.Size=vt()
  1256. hitboxweld()
  1257. hboxpos.Parent=nil
  1258. attack=false
  1259. end
  1260.  
  1261. function attackfour()
  1262. attack=true
  1263. for i=0,1,0.15 do
  1264. swait()
  1265. TonfaLeft(.6)
  1266. TonfaRight(.6)
  1267. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.3)
  1268. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.3)
  1269. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.3)
  1270. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.4)
  1271. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1.8)*euler(0,2,0),.4)
  1272. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1273. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-1.8)*euler(0,-2,0),.4)
  1274. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1275. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,-.1),.4)
  1276. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,.4),.4)
  1277. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1278. break
  1279. end
  1280. end
  1281. so("199145146",lprt17,1,1.1)
  1282. so("199145146",rprt17,1,1.1)
  1283. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,6,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false) end)
  1284. hbwld.Parent=nil
  1285. hboxpos.Parent=hitbox
  1286. hitbox.Parent=modelzorz
  1287. hitbox.Size=vt(.5,3,1)
  1288. hitboxCF=lprt17.CFrame*cf(0,-.2,0)
  1289. hitbox.CFrame=hitboxCF
  1290. for i=0,1,0.13 do
  1291. swait()
  1292. TonfaLeft(.7)
  1293. TonfaRight(.7)
  1294. hitboxCF=lprt17.CFrame*cf(0,-.2,0)
  1295. hitbox.CFrame=hitboxCF
  1296. MagniDamage(hitbox,3,4,4,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false)
  1297. hitboxCF=rprt17.CFrame*cf(0,-.2,0)
  1298. hitbox.CFrame=hitboxCF
  1299. MagniDamage(hitbox,3,4,4,math.random(20,30),"Normal",RootPart,.5,2,math.random(3,8),nil,true,false)
  1300. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.3)
  1301. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.3)
  1302. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1303. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.4)
  1304. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1,0,-1.2)*euler(0,1.5,0),.4)
  1305. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1306. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.7,0,1.2)*euler(0,-1.5,0),.4)
  1307. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1308. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,-.1),.4)
  1309. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,.4),.4)
  1310. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1311. break
  1312. end
  1313. end
  1314. --con1:disconnect()
  1315. hitbox.Parent=modelzorz
  1316. hitbox.Size=vt()
  1317. hitboxweld()
  1318. hboxpos.Parent=nil
  1319. attack=false
  1320. end
  1321.  
  1322. function GunStance()
  1323. attack=true
  1324. gun=true
  1325. quickoblit=true
  1326. local dec=Instance.new("NumberValue",Decrease)
  1327. dec.Name="DecreaseMvmt"
  1328. dec.Value=.7
  1329. Humanoid.AutoRotate=false
  1330. --removeControl()
  1331. for i=0,1,0.15 do
  1332. swait()
  1333. if shootgun==1 then
  1334. GunRight(1)
  1335. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.1,0,0),.4)
  1336. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.57),.4)
  1337. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57),.4)
  1338. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1339. LW.C0=clerp(LW.C0,cf(-1,0.5,-.8)*euler(1.7,0,1)*euler(0,-1,0),.4)
  1340. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1341. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.4)
  1342. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.4)
  1343. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1344. break
  1345. end
  1346. else
  1347. GunLeft(1)
  1348. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57)*euler(.1,0,0),.4)
  1349. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1.57),.4)
  1350. RW.C0=clerp(RW.C0,cf(1,0.5,-.8)*euler(1.7,0,-1)*euler(0,1,0),.4)
  1351. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1352. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57),.4)
  1353. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1354. RH.C0=clerp(RH.C0,cf(.5,-1,-.2)*euler(0,1.57,0)*euler(-.4,1.57,0),.4)
  1355. LH.C0=clerp(LH.C0,cf(-.5,-1,.2)*euler(0,-1.57,0)*euler(.2,1.57,0),.4)
  1356. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1357. break
  1358. end
  1359. end
  1360. end
  1361. gairo=Instance.new("BodyGyro")
  1362. --gairo.Parent=RootPart
  1363. gairo.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1364. gairo.P=20e+003
  1365. gairo.cframe=RootPart.CFrame
  1366. local offset=nil
  1367. while gun==true do
  1368. swait()
  1369. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1370. break
  1371. end
  1372. local gunpos=vt(getMouseHit().x,Head.Position.Y,getMouseHit().z)
  1373. offset=(gunpart.Position.y-getMouseHit().y)/60
  1374. --mag=(gprt8.Position-getMouseHit()).magnitude/80
  1375. mag=(gunpart.Position-getMouseHit()).magnitude/66
  1376. offset=offset/mag
  1377. --gairo.cframe=cf(Head.Position,gunpos)
  1378.  
  1379. newpos=vt(getMouseHit().x,Torso.Position.Y,getMouseHit().z)
  1380. --RootPart.CFrame=cf(RootPart.Position,newpos)
  1381. MoveCF=cf(RootPart.Position,newpos)
  1382. local mpos = Torso.CFrame*euler(0,0,0)--*CFrame.new(3,-1,-0.2) -- thx doogle <3
  1383. local cff = CFrame.new(mpos.p,newpos) * CFrame.Angles(math.pi/2,0,0)
  1384. local x,y,z = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1385.  
  1386. if shootgun==1 then
  1387. Neck.C0=necko*euler(0,0,-1.57)*euler(offset,0,0)
  1388. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(offset,0,0),.3)
  1389. RootJoint.C0=RootJoint.C0:lerp(CFrame.Angles(x,y,z)*euler(0,3.14,0)*euler(0,0,1.57)*cf(0,0,-.2),.3)
  1390. else
  1391. Neck.C0=necko*euler(0,0,1.57)*euler(offset,0,0)
  1392. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset,0,0),.3)
  1393. RootJoint.C0=RootJoint.C0:lerp(CFrame.Angles(x,y,z)*euler(0,3.14,0)*euler(0,0,-1.57)*cf(0,0,-.2),.3)
  1394. end
  1395. --LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset,0,0),.2)
  1396. end
  1397. dec.Parent=nil
  1398. if shoot==true then
  1399. quickoblit=false
  1400. for i=0,1,0.15 do
  1401. swait()
  1402. if shootgun==1 then
  1403. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(1,0,0),.4)
  1404. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1405. LW.C0=clerp(LW.C0,cf(-1,0.5,-.8)*euler(1.7,0,1)*euler(0,-1,0),.4)
  1406. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1407. else
  1408. RW.C0=clerp(RW.C0,cf(1,0.5,-.8)*euler(1.7,0,-1)*euler(0,1,0),.4)
  1409. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1410. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(1,0,0),.4)
  1411. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1412. end
  1413. end
  1414. if shootgun==1 then
  1415. shootgun=2
  1416. gunpart=lprt36
  1417. gunpart2=lprt22
  1418. else
  1419. gunpart=rprt36
  1420. gunpart2=rprt22
  1421. shootgun=1
  1422. end
  1423. --[[for i=0,1,0.1 do
  1424. swait()
  1425. gwld6.C0=clerp(gwld6.C0,euler(0,0,0)*cf(0,.5,-.1),.6)
  1426. gwld1.C0=clerp(gwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  1427. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57)*euler(0,0,0),.2)
  1428. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(1,0,0),.2)
  1429. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1430. end]]
  1431. if quickoblit==true then
  1432. local oldgunpart=gunpart
  1433. local oldgunpart2=gunpart2
  1434. if shootgun==1 then
  1435. gunpart=lprt36
  1436. gunpart2=lprt22
  1437. else
  1438. gunpart=rprt36
  1439. gunpart2=rprt22
  1440. end
  1441. for i=0,1,0.2 do
  1442. swait()
  1443. if shootgun==2 then
  1444. RootJoint.C0=RootJoint.C0*euler(0,0,-1)
  1445. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(1,0,-1.5),.4)
  1446. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1447. LW.C0=clerp(LW.C0,cf(-1,0.5,-.8)*euler(1.2,0,1)*euler(0,-1,0),.4)
  1448. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1449. else
  1450. RootJoint.C0=RootJoint.C0*euler(0,0,1)
  1451. RW.C0=clerp(RW.C0,cf(1,0.5,-.8)*euler(1.2,0,-1)*euler(0,1,0),.4)
  1452. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1453. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(1,0,1.5),.4)
  1454. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1455. end
  1456. end
  1457. for i=0,1,0.2 do
  1458. swait()
  1459. if i<.6 then
  1460. so("203691885",gunpart,1,1)
  1461. Shootcombo2()
  1462. end
  1463. if shootgun==2 then
  1464. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1),.4)
  1465. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.4)
  1466. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(-.5,0,0)*euler(0,1.57,0),.4)
  1467. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1468. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-1)*euler(0,0,0),.4)
  1469. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1470. else
  1471. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.4)
  1472. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1),.4)
  1473. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,1)*euler(0,0,0),.4)
  1474. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1475. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(-.5,0,0)*euler(0,-1.57,0),.4)
  1476. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1477. end
  1478. end
  1479. gunpart=oldgunpart
  1480. gunpart2=oldgunpart2
  1481. end
  1482. end
  1483. quickoblit=false
  1484. gairo.Parent=nil
  1485. Humanoid.AutoRotate=true
  1486. shoot=false
  1487. attack=false
  1488. --removeControl()
  1489. end
  1490.  
  1491. function do1()
  1492. if attack==true then return end
  1493. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1494. if cooldowns[1]>=cooldownmax and mana.Value>=20 then
  1495. --if true then
  1496. attack=true
  1497. cooldowns[1]=0
  1498. local dec=Instance.new("NumberValue",Decrease)
  1499. dec.Name="DecreaseMvmt"
  1500. dec.Value=10
  1501. so("203691857",rprt1,1,1)
  1502. so("203691857",lprt1,1,1)
  1503. for i=0,1,0.1 do
  1504. swait()
  1505. TonfaLeft(1)
  1506. TonfaRight(1)
  1507. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.3)
  1508. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.3)
  1509. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1510. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
  1511. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1,0,-1.2)*euler(0,0,0),.3)
  1512. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1513. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.7,0,1.2)*euler(0,0,0),.3)
  1514. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1515. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,-.1),.4)
  1516. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,.4),.4)
  1517. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1518. break
  1519. end
  1520. end
  1521. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1522. else
  1523. if Ammo>0 then
  1524. for i=1,Ammo/2 do
  1525. Bullet(rprt22)
  1526. Bullet(lprt22)
  1527. end
  1528. end
  1529. mana.Value=mana.Value-20
  1530. Ammo=16
  1531. end
  1532. so("203691878",rprt1,1,1)
  1533. so("203691878",lprt1,1,1)
  1534. for i=0,1,0.07 do
  1535. swait()
  1536. GunLeft(1)
  1537. GunRight(1)
  1538. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1),.2)
  1539. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1540. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-1),.2)
  1541. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1542. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1543. break
  1544. end
  1545. end
  1546. dec.Parent=nil
  1547. attack=false
  1548. end
  1549. end
  1550.  
  1551. function do2()
  1552. if attack==true then return end
  1553. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1554. if cooldowns[2]>=cooldownmax then
  1555. --if true then
  1556. attack=true
  1557. cooldowns[2]=0
  1558. num=0
  1559. canshoot=false
  1560. if mana.Value>=20 and Ammo>=2 then
  1561. mana.Value=mana.Value-20
  1562. Ammo=Ammo-2
  1563. canshoot=true
  1564. else
  1565. so("203691822",rprt22,1,1)
  1566. so("203691822",lprt22,1,1)
  1567. end
  1568. for i=0,1,0.1 do
  1569. swait()
  1570. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-50 end
  1571. Neck.C0=clerp(Neck.C0,necko*euler(.5,0,0),.3)
  1572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(-.8,0,0),.2)
  1573. RW.C0=clerp(RW.C0,cf(1.5,0.8,0)*euler(.9,0,-.1)*euler(0,.2,0),.4)
  1574. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1575. LW.C0=clerp(LW.C0,cf(-1.5,0.8,0)*euler(1,0,.05)*euler(0,-.4,0),.4)
  1576. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1577. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,.5),.3)
  1578. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,-.5),.3)
  1579. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1580. break
  1581. end
  1582. --[[if num>=4 then
  1583. num=0
  1584. Bullet(rprt22)
  1585. Bullet(lprt22)
  1586. TrueAim("Left")
  1587. TrueAim("Right")
  1588. so("203691885",rprt36,1,math.random(80,120)/100)
  1589. so("203691885",lprt36,1,math.random(80,120)/100)
  1590. MagicCircle(BrickColor.new(NewCol),cf(rprt36.Position),1,1,1,1,1,1,.1)
  1591. MagicCircle(BrickColor.new(NewCol),cf(lprt36.Position),1,1,1,1,1,1,.1)
  1592. end]]
  1593. if canshoot==true then
  1594. if num==2 then
  1595. Bullet(lprt22)
  1596. MouseLook=cf((lprt22.Position+getMouseHit())/2,getMouseHit())
  1597. TrueAim("Left",MouseLook.lookVector)
  1598. so("203691885",lprt36,1,math.random(80,120)/100)
  1599. MagicCircle(BrickColor.new(NewCol),cf(lprt36.Position),1,1,1,1,1,1,.1)
  1600. elseif num==4 then
  1601. num=0
  1602. Bullet(rprt22)
  1603. MouseLook=cf((rprt22.Position+getMouseHit())/2,getMouseHit())
  1604. TrueAim("Right",MouseLook.lookVector)
  1605. so("203691885",rprt36,1,math.random(80,120)/100)
  1606. MagicCircle(BrickColor.new(NewCol),cf(rprt36.Position),1,1,1,1,1,1,.1)
  1607. end
  1608. end
  1609. num=num+1
  1610. end
  1611. for i=0,1,0.1 do
  1612. swait()
  1613. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-50 end
  1614. Neck.C0=clerp(Neck.C0,necko*euler(.5,0,0),.3)
  1615. RootJoint.C0=RootJoint.C0*euler(-.4,0,0)
  1616. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1,0,-1.2)*euler(0,1.5,0),.3)
  1617. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1618. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.7,0,1.2)*euler(0,-1.5,0),.3)
  1619. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1620. RH.C0=clerp(RH.C0,cf(1,0,-.8)*euler(0,1.57,0)*euler(-.2,0,-.5),.3)
  1621. LH.C0=clerp(LH.C0,cf(-1,0,-.8)*euler(0,-1.57,0)*euler(-.2,0,.5),.3)
  1622. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1623. break
  1624. end
  1625. end
  1626. attack=false
  1627. end
  1628. end
  1629.  
  1630. function do3()
  1631. XVbullet=false
  1632. if attack==true then return end
  1633. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1634. if cooldowns[3]>=cooldownmax then
  1635. --if true then
  1636. attack=true
  1637. cooldowns[3]=0
  1638. XVbullet=true
  1639. attack=false
  1640. local blocknum=0
  1641. while XVbullet==true do
  1642. swait()
  1643. blocknum=blocknum+1
  1644. if blocknum>=10 then
  1645. blocknum=0
  1646. MagicBlock(BrickColor.new(NewCol),cf(gunpart.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,1)
  1647. end
  1648. end
  1649. end
  1650. end
  1651.  
  1652. function do4()
  1653. if obliterate==true then
  1654. obliterate=false
  1655. return end
  1656. if attack==true then return end
  1657. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1658. if cooldowns[4]>=cooldownmax and mana.Value>=3 then
  1659. --if true then
  1660. attack=true
  1661. obliterate=true
  1662. Humanoid.AutoRotate=false
  1663. local dec=Instance.new("NumberValue",Decrease)
  1664. dec.Name="DecreaseMvmt"
  1665. dec.Value=10
  1666. Look=RootPart.CFrame.lookVector
  1667. local anim=0
  1668. local oldanim=0
  1669. so("203691326",rprt36,1,1.5)
  1670. so("203691326",lprt36,1,1.5)
  1671. for i=1,0,-0.1 do
  1672. swait()
  1673. rprt4n.Transparency=i
  1674. rprt9n.Transparency=i
  1675. rprt14n.Transparency=i
  1676. rprt15n.Transparency=i
  1677. rprt16n.Transparency=i
  1678. rprt23n.Transparency=i
  1679. rprt24n.Transparency=i
  1680. rprt25n.Transparency=i
  1681. lprt4n.Transparency=i
  1682. lprt9n.Transparency=i
  1683. lprt14n.Transparency=i
  1684. lprt15n.Transparency=i
  1685. lprt16n.Transparency=i
  1686. lprt23n.Transparency=i
  1687. lprt24n.Transparency=i
  1688. lprt25n.Transparency=i
  1689. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.5)
  1690. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.5)
  1691. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1,0,-1.2)*euler(0,1.5,0),.5)
  1692. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1693. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.7,0,1.2)*euler(0,-1.5,0),.5)
  1694. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1695. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,-.1),.5)
  1696. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,.4),.5)
  1697. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Humanoid.Health<=0 then
  1698. break
  1699. end
  1700. end
  1701. dec.Value=.2
  1702. for i=1,15 do
  1703. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1704. break
  1705. end
  1706. if mana.Value<3 or obliterate==false then
  1707. break
  1708. end
  1709. mana.Value=mana.Value-2
  1710. repeat
  1711. if anim==1 then
  1712. anim=2
  1713. elseif anim==2 then
  1714. anim=3
  1715. elseif anim==3 then
  1716. anim=2
  1717. end
  1718. if i==1 then
  1719. anim=1
  1720. end
  1721. until anim~=oldanim
  1722. oldanim=anim
  1723. for i=0,1,0.25 do
  1724. swait()
  1725. GunRight(1)
  1726. GunLeft(1)
  1727. --Torso.Velocity=Look*10
  1728. offset1=(lprt36.Position.y-getMouseHit().y)/60
  1729. mag1=(lprt36.Position-getMouseHit()).magnitude/66
  1730. offset1=offset1/mag1
  1731. offset2=(rprt36.Position.y-getMouseHit().y)/60
  1732. mag2=(rprt36.Position-getMouseHit()).magnitude/66
  1733. offset2=offset2/mag2
  1734. if anim==1 then
  1735. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.4)
  1736. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.4)
  1737. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.6,0,-.1)*euler(0,.2,0),.4)
  1738. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset2,0,0),.4)
  1739. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.6,0,.1)*euler(0,-.2,0),.4)
  1740. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset1,0,0),.4)
  1741. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,-.1),.4)
  1742. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,.4),.4)
  1743. elseif anim==2 then
  1744. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.4)
  1745. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.4)
  1746. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.6,0,-.1)*euler(.2,0,0),.5)
  1747. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset2,0,0),.4)
  1748. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0)*euler(0,0,0),.4)
  1749. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset1,0,0),.4)
  1750. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,-.1),.4)
  1751. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,.4),.4)
  1752. elseif anim==3 then
  1753. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.4)
  1754. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.4)
  1755. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0)*euler(0,0,0),.4)
  1756. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset2,0,0),.4)
  1757. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.6,0,.1)*euler(.2,0,0),.5)
  1758. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(offset1,0,0),.4)
  1759. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,-.1),.4)
  1760. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,.4),.4)
  1761. end
  1762. end
  1763. local shoot=1
  1764. if anim==2 then
  1765. shoot=2
  1766. elseif anim==3 then
  1767. shoot=1
  1768. end
  1769. if shoot==2 then
  1770.  
  1771. Bullet(lprt22)
  1772. MouseLook=cf((lprt22.Position+getMouseHit())/2,getMouseHit())
  1773. TrueAim("Left")
  1774. so("203691885",lprt36,1,math.random(80,120)/100)
  1775. MagicCircle(BrickColor.new(NewCol),cf(lprt36.Position),1,1,1,3,3,3,.1)
  1776. elseif shoot==1 then
  1777. Bullet(rprt22)
  1778. MouseLook=cf((rprt22.Position+getMouseHit())/2,getMouseHit())
  1779. TrueAim("Right")
  1780. so("203691885",rprt36,1,math.random(80,120)/100)
  1781. MagicCircle(BrickColor.new(NewCol),cf(rprt36.Position),1,1,1,3,3,3,.1)
  1782. end
  1783. --[[MagniDamage(rprt36,10,4,6,math.random(15,25),"Knockdown2",true,nil,nil,nil,math.random(1,5))
  1784. MagniDamage(lprt36,10,4,6,math.random(15,25),"Knockdown2",true,nil,nil,nil,math.random(1,5))
  1785. MagicBlock(BrickColor.new(NewCol),cf(rprt36.Position),1,1,1,5,5,5,.1,1)
  1786. MagicCircle(BrickColor.new(NewCol),cf(rprt36.Position),1,1,1,5,5,5,.1)
  1787. MagicRing(BrickColor.new("Bright yellow"),cf(rprt36.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,2,2,.1,.1)
  1788. MagicBlock(BrickColor.new(NewCol),cf(lprt36.Position),1,1,1,5,5,5,.1,1)
  1789. MagicCircle(BrickColor.new(NewCol),cf(lprt36.Position),1,1,1,5,5,5,.1)
  1790. MagicRing(BrickColor.new("Bright yellow"),cf(lprt36.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,2,2,.1,.1)
  1791. ]]
  1792. end
  1793. Humanoid.AutoRotate=true
  1794. dec.Parent=nil
  1795. cooldowns[4]=0
  1796. attack=false
  1797. for i=0,1.1,.05 do
  1798. swait()
  1799. rprt4n.Transparency=i
  1800. rprt9n.Transparency=i
  1801. rprt14n.Transparency=i
  1802. rprt15n.Transparency=i
  1803. rprt16n.Transparency=i
  1804. rprt23n.Transparency=i
  1805. rprt24n.Transparency=i
  1806. rprt25n.Transparency=i
  1807. lprt4n.Transparency=i
  1808. lprt9n.Transparency=i
  1809. lprt14n.Transparency=i
  1810. lprt15n.Transparency=i
  1811. lprt16n.Transparency=i
  1812. lprt23n.Transparency=i
  1813. lprt24n.Transparency=i
  1814. lprt25n.Transparency=i
  1815. end
  1816. end
  1817. end
  1818.  
  1819. function Shootcombo()
  1820. --numb=(1-(accuracy*.01))*5
  1821. spread=vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)*(gunpart.Position-getMouseHit()).magnitude/100
  1822. local MouseLook=cf((gunpart.Position+getMouseHit())/2,getMouseHit()+spread)
  1823. table.insert(Effects,{MouseLook.lookVector,"Shoot",30,gunpart.Position,8,10,0,1})
  1824. Bullet(gunpart2)
  1825. end
  1826.  
  1827. function Shootcombo2()
  1828. --numb=(1-(accuracy*.01))*5
  1829. spread=vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*(gunpart.Position-getMouseHit()).magnitude/100
  1830. local MouseLook=cf((gunpart.Position+getMouseHit())/2,getMouseHit()+spread)
  1831. table.insert(Effects,{MouseLook.lookVector,"Shoot",30,gunpart.Position,6,8,0,1})
  1832. Bullet(gunpart2)
  1833. end
  1834.  
  1835. function XVShot()
  1836. local MouseLook=cf((gunpart.Position+getMouseHit())/2,getMouseHit())
  1837. table.insert(Effects,{MouseLook.lookVector,"Shoot",30,gunpart.Position,8,10,0,2})
  1838. Bullet(gunpart2)
  1839. end
  1840.  
  1841. function TrueAim(Arm,aim)
  1842. --numb=(1-(accuracy*.01))*5
  1843. --spread=vt((math.random(-1,0)+math.random())*numb,(math.random(-1,0)+math.random())*numb,(math.random(-1,0)+math.random())*numb)*(gunpart.Position-getMouseHit()).magnitude/100
  1844. --local MouseLook=cf((gunpart.Position+getMouseHit())/2,getMouseHit()+spread)
  1845. thepart=nil
  1846. if Arm=="Left" then
  1847. thepart=lprt36
  1848. elseif Arm=="Right" then
  1849. thepart=rprt36
  1850. end
  1851. --local MouseLook=cf((gunpart.Position+getMouseHit())/2,getMouseHit())
  1852. local target,distance=findNearestTorso(getMouseHit())
  1853. --[[if target~=nil then
  1854. cf2=cf(thepart.Position,target.Position)
  1855. tehCF=clerp(cf(thepart.Position),cf2,.8)
  1856. Thing[1]=tehCF.lookVector
  1857. end]]
  1858. tehcf=(thepart.CFrame*euler(1.57,0,0)).lookVector
  1859. if aim~=nil then
  1860. tehcf=aim
  1861. end
  1862. table.insert(Effects,{tehcf,"Shoot",30,thepart.Position,6,8,0,3,thepart,target})
  1863. Bullet(gunpart2)
  1864. end
  1865.  
  1866. function Bullet(Part)
  1867. bullet=part(3,workspace,0,0,BrickColor.new("Bright yellow"),"Bullet",vt(0.2,0.2,0.2))
  1868. bmsh=mesh("CylinderMesh",bullet,"","",vt(0,0,0),vt(.8,1.5,.8))
  1869. bullet.CanCollide=true
  1870. bullet.CFrame=Part.CFrame*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1871. bullet.Velocity=(Torso.CFrame.lookVector*math.random(10,40))+(vt(1,0,0)*math.random(0,1000)/100)+(vt(0,1,0)*math.random(0,1000)/100)+(vt(0,0,1)*math.random(0,1000)/100)
  1872. game:GetService("Debris"):AddItem(bullet,3)
  1873. end
  1874.  
  1875. function DecreaseStat(Model,Stat,Amount,Duration)
  1876. if Model:findFirstChild("Stats")~=nil then
  1877. if Model.Stats[Stat]~=nil then
  1878. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  1879. d=Instance.new("NumberValue",Model.Stats.Decrease)
  1880. dur=Instance.new("NumberValue",d)
  1881. dur.Name="Duration"
  1882. dur.Value=Duration
  1883. game:GetService("Debris"):AddItem(d,20)
  1884. if Stat=="Damage" then
  1885. d.Name="DecreaseAtk"
  1886. elseif Stat=="Defense" then
  1887. d.Name="DecreaseDef"
  1888. elseif Stat=="Movement" then
  1889. d.Name="DecreaseMvmt"
  1890. end
  1891. if Model:findFirstChild("Torso")~=nil then
  1892. display=""
  1893. if Stat=="Damage" then
  1894. if Amount>0 then
  1895. display="-Damage"
  1896. else
  1897. display="+Damage"
  1898. end
  1899. elseif Stat=="Defense" then
  1900. if Amount>0 then
  1901. display="-Defense"
  1902. else
  1903. display="+Defense"
  1904. end
  1905. elseif Stat=="Movement" then
  1906. if Amount>0 then
  1907. display="-Movement"
  1908. else
  1909. display="+Movement"
  1910. end
  1911. end
  1912. showDamage(Model,display,"Debuff")
  1913. end
  1914. d.Value=Amount
  1915. end
  1916. end
  1917. end
  1918.  
  1919. function GetDist(Part1,Part2,magni)
  1920. local targ=Part1.Position-Part2.Position
  1921. local mag=targ.magnitude
  1922. if mag<=magni then
  1923. return true
  1924. else
  1925. return false
  1926. end
  1927. end
  1928.  
  1929. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  1930. for _,c in pairs(workspace:children()) do
  1931. local hum=c:findFirstChild("Humanoid")
  1932. if hum~=nil then
  1933. local head=nil
  1934. for _,d in pairs(c:children()) do
  1935. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  1936. if d.className=="Model" and ranged~=true then
  1937. head=d:findFirstChild("Hitbox")
  1938. if d.Parent==Character then break end
  1939. if head~=nil then
  1940. local targ=head.Position-Part.Position
  1941. local mag=targ.magnitude
  1942. if mag<=magni and c.Name~=Player.Name then
  1943. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1944. ref.Anchored=true
  1945. ref.CFrame=cf(head.Position)
  1946. game:GetService("Debris"):AddItem(ref,1)
  1947. hitnum=math.random(1,5)
  1948. if hitnum==1 then so("199148971",ref,1,1)
  1949. elseif hitnum==2 then so("199149025",ref,1,1)
  1950. elseif hitnum==3 then so("199149072",ref,1,1)
  1951. elseif hitnum==4 then so("199149109",ref,1,1)
  1952. elseif hitnum==5 then so("199149119",ref,1,1)
  1953. end
  1954. --StaggerHit.Value=true
  1955. end
  1956. end
  1957. end
  1958. if d.className=="Part" then
  1959. head=d
  1960. if head~=nil then
  1961. local targ=head.Position-Part.Position
  1962. local mag=targ.magnitude
  1963. if mag<=magni and c.Name~=Player.Name then
  1964. if stun==nil then
  1965. stun=math.random(5,10)
  1966. end
  1967. local Rang=nil
  1968. if Ranged==false then
  1969. Rang=true
  1970. end
  1971. local stag=nil
  1972. if shbash==true then
  1973. stag=true
  1974. end
  1975. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  1976. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  1977. end
  1978. end
  1979. end
  1980. end
  1981. end
  1982. end
  1983. end
  1984.  
  1985. function findNearestTorso(pos)
  1986. local list = game.Workspace:children()
  1987. local torso = nil
  1988. local dist = 1000
  1989. local temp = nil
  1990. local human = nil
  1991. local temp2 = nil
  1992. for x = 1, #list do
  1993. temp2 = list[x]
  1994. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  1995. temp = temp2:findFirstChild("Torso")
  1996. human = temp2:findFirstChild("Humanoid")
  1997. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1998. if (temp.Position - pos).magnitude < dist then
  1999. local dohit=true
  2000. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(temp.Parent)~=nil then
  2001. if game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor==Player.TeamColor then dohit=false end
  2002. end
  2003. if dohit==true then
  2004. torso = temp
  2005. dist = (temp.Position - pos).magnitude
  2006. end
  2007. end
  2008. end
  2009. end
  2010. end
  2011. return torso,dist
  2012. end
  2013.  
  2014. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2015. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2016. end
  2017.  
  2018. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2019. LastPoint=Point
  2020. function effect(Color,Ref,LP,P1,returnn)
  2021. if LP==nil or P1==nil then return end
  2022. local effectsmsh=Instance.new("CylinderMesh")
  2023. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2024. effectsmsh.Name="Mesh"
  2025. local effectsg=Instance.new("Part")
  2026. NoOutline(effectsg)
  2027. effectsg.formFactor=3
  2028. effectsg.CanCollide=false
  2029. effectsg.Name="Eff"
  2030. effectsg.Locked=true
  2031. effectsg.Anchored=true
  2032. effectsg.Size=Vector3.new(0.5,1,0.5)
  2033. effectsg.Parent=workspace
  2034. effectsmsh.Parent=effectsg
  2035. effectsg.BrickColor=BrickColor.new(Color)
  2036. effectsg.Reflectance=Ref
  2037. local point1=P1
  2038. local mg=(LP.p - point1.p).magnitude
  2039. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2040. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2041. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2042. game:GetService("Debris"):AddItem(effectsg,2)
  2043. if returnn then return effectsg end
  2044. if not returnn then
  2045. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  2046. end
  2047. end
  2048.  
  2049. local function CFrameFromTopBack(at, top, back)
  2050. local right = top:Cross(back)
  2051. return CFrame.new(at.x, at.y, at.z,
  2052. right.x, top.x, back.x,
  2053. right.y, top.y, back.y,
  2054. right.z, top.z, back.z)
  2055. end
  2056.  
  2057. function Triangle(a, b, c)
  2058. local edg1 = (c-a):Dot((b-a).unit)
  2059. local edg2 = (a-b):Dot((c-b).unit)
  2060. local edg3 = (b-c):Dot((a-c).unit)
  2061. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2062. a, b, c = a, b, c
  2063. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2064. a, b, c = b, c, a
  2065. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2066. a, b, c = c, a, b
  2067. else
  2068. assert(false, "unreachable")
  2069. end
  2070.  
  2071. local len1 = (c-a):Dot((b-a).unit)
  2072. local len2 = (b-a).magnitude - len1
  2073. local width = (a + (b-a).unit*len1 - c).magnitude
  2074.  
  2075. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2076.  
  2077. local list = {}
  2078.  
  2079. if len1 > 0.01 then
  2080. local w1 = Instance.new('WedgePart', m)
  2081. game:GetService("Debris"):AddItem(w1,5)
  2082. w1.Material = "SmoothPlastic"
  2083. w1.FormFactor = 'Custom'
  2084. w1.BrickColor = BrickColor.new("Bright red")
  2085. w1.Transparency = 0
  2086. w1.Reflectance = 0
  2087. w1.Material = "SmoothPlastic"
  2088. w1.CanCollide = false
  2089. NoOutline(w1)
  2090. local sz = Vector3.new(0.2, width, len1)
  2091. w1.Size = sz
  2092. local sp = Instance.new("SpecialMesh",w1)
  2093. sp.MeshType = "Wedge"
  2094. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2095. w1:BreakJoints()
  2096. w1.Anchored = true
  2097. w1.Parent = workspace
  2098. w1.Transparency = 0.7
  2099. table.insert(Effects,{w1,"Disappear",.05})
  2100. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2101. table.insert(list,w1)
  2102. end
  2103.  
  2104. if len2 > 0.01 then
  2105. local w2 = Instance.new('WedgePart', m)
  2106. game:GetService("Debris"):AddItem(w2,5)
  2107. w2.Material = "SmoothPlastic"
  2108. w2.FormFactor = 'Custom'
  2109. w2.BrickColor = BrickColor.new("Bright red")
  2110. w2.Transparency = 0
  2111. w2.Reflectance = 0
  2112. w2.Material = "SmoothPlastic"
  2113. w2.CanCollide = false
  2114. NoOutline(w2)
  2115. local sz = Vector3.new(0.2, width, len2)
  2116. w2.Size = sz
  2117. local sp = Instance.new("SpecialMesh",w2)
  2118. sp.MeshType = "Wedge"
  2119. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2120. w2:BreakJoints()
  2121. w2.Anchored = true
  2122. w2.Parent = workspace
  2123. w2.Transparency = 0.7
  2124. table.insert(Effects,{w2,"Disappear",.05})
  2125. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2126. table.insert(list,w2)
  2127. end
  2128. return unpack(list)
  2129. end
  2130.  
  2131. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  2132. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2133. prt.Anchored=true
  2134. prt.CFrame=cframe
  2135. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2136. game:GetService("Debris"):AddItem(prt,10)
  2137. if Type==1 or Type==nil then
  2138. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  2139. elseif Type==2 then
  2140. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  2141. end
  2142. end
  2143.  
  2144. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2145. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2146. prt.Anchored=true
  2147. prt.CFrame=cframe
  2148. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2149. game:GetService("Debris"):AddItem(prt,10)
  2150. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2151. end
  2152.  
  2153. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2154. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2155. prt.Anchored=true
  2156. prt.CFrame=cframe
  2157. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2158. game:GetService("Debris"):AddItem(prt,10)
  2159. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2160. end
  2161.  
  2162. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2163. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2164. prt.Anchored=true
  2165. prt.CFrame=cframe
  2166. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  2167. game:GetService("Debris"):AddItem(prt,10)
  2168. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2169. end
  2170.  
  2171. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  2172. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2173. prt.Anchored=true
  2174. prt.CFrame=cframe
  2175. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  2176. game:GetService("Debris"):AddItem(prt,10)
  2177. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  2178. end
  2179.  
  2180. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2181. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2182. prt.Anchored=true
  2183. prt.CFrame=cframe
  2184. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  2185. game:GetService("Debris"):AddItem(prt,10)
  2186. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2187. end
  2188.  
  2189. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2190. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2191. prt.Anchored=true
  2192. prt.CFrame=cframe*cf(x2,y2,z2)
  2193. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  2194. game:GetService("Debris"):AddItem(prt,10)
  2195. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2196. end
  2197.  
  2198. function MagicFire(brickcolor,cframe,x1,y1,z1,delay)
  2199. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2200. prt.Anchored=true
  2201. prt.CFrame=cframe
  2202. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2203. game:GetService("Debris"):AddItem(prt,10)
  2204. table.insert(Effects,{prt,"Fire",delay,1,1,1,msh})
  2205. end
  2206.  
  2207. function MagicFireWave(brickcolor,cframe,x1,y1,z1)
  2208. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2209. prt.Anchored=true
  2210. prt.CFrame=cframe
  2211. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2212. d=Instance.new("Decal")
  2213. d.Parent=prt
  2214. d.Texture="http://www.roblox.com/asset/?id=26356434"
  2215. d.Face="Top"
  2216. d=Instance.new("Decal")
  2217. d.Parent=prt
  2218. d.Texture="http://www.roblox.com/asset/?id=26356434"
  2219. d.Face="Bottom"
  2220. game:GetService("Debris"):AddItem(prt,10)
  2221. table.insert(Effects,{prt,"FireWave",1,30,math.random(400,600)/100,msh})
  2222. end
  2223.  
  2224. function ElecEffect(cff,x,y,z)
  2225. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  2226. prt.Anchored=true
  2227. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2228. prt.CFrame=cf(prt.Position)
  2229. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2230. game:GetService("Debris"):AddItem(prt,10)
  2231. xval=math.random()/3
  2232. yval=math.random()/3
  2233. zval=math.random()/3
  2234. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  2235. Effects[#Effects+1]={prt,"Elec",0.2,x,y,z,xval,yval,zval,msh} --part, type, delay
  2236. end
  2237.  
  2238. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  2239. if hit.Parent==nil then
  2240. return
  2241. end
  2242. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  2243. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2244. ref.Anchored=true
  2245. ref.CFrame=cf(hit.Position)
  2246. game:GetService("Debris"):AddItem(ref,1)
  2247. hitnum=math.random(1,5)
  2248. if hitnum==1 then so("199148971",ref,1,1)
  2249. elseif hitnum==2 then so("199149025",ref,1,1)
  2250. elseif hitnum==3 then so("199149072",ref,1,1)
  2251. elseif hitnum==4 then so("199149109",ref,1,1)
  2252. elseif hitnum==5 then so("199149119",ref,1,1)
  2253. end
  2254. --StaggerHit.Value=true
  2255. end
  2256. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2257. hit=hit.Parent.Parent:findFirstChild("Torso")
  2258. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2259. end
  2260. if hit.Parent.className=="Hat" then
  2261. hit=hit.Parent.Parent:findFirstChild("Head")
  2262. end
  2263. h=hit.Parent:FindFirstChild("Humanoid")
  2264. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2265. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2266. if Player.Neutral==false then
  2267. if hit.Parent:findFirstChild("Alignment")~=nil then
  2268. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  2269. end
  2270. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2271. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  2272. end
  2273. end
  2274. if Sound=="Shatter" then
  2275. so("199146069",hit,1,1)
  2276. end
  2277. c=Instance.new("ObjectValue")
  2278. c.Name="creator"
  2279. c.Value=owner
  2280. c.Parent=hit.Parent.Humanoid
  2281. RecentEnemy.Value=hit.Parent
  2282. game:GetService("Debris"):AddItem(c,.5)
  2283. minim=minim*Atk.Value
  2284. maxim=maxim*Atk.Value
  2285. Damage=0
  2286. if minim==maxim then
  2287. Damage=maxim
  2288. else
  2289. Damage=math.random(minim,maxim)
  2290. end
  2291. --print(Damage)
  2292. blocked=false
  2293. enblock=nil
  2294. Stats=hit.Parent:findFirstChild("Stats")
  2295. if Stats~=nil then
  2296. invis=Stats:findFirstChild("Invisibility")
  2297. isinvis=Stats:findFirstChild("IsInvisible")
  2298. if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
  2299. invis.Value=0
  2300. end
  2301. enblock=Stats:findFirstChild("Block")
  2302. if enblock~=nil then
  2303. if enblock.Value==true then
  2304. blocked=true
  2305. end
  2306. end
  2307. if Stats:findFirstChild("Defense")~=nil then
  2308. Damage=Damage/(Stats.Defense.Value)
  2309. if Damage<=3 and (ranged==false or ranged==nil or Sound=="Slash") and blocked~=true then
  2310. hitnum=math.random(1,5)
  2311. if hitnum==1 then so("199149321",hit,1,1)
  2312. elseif hitnum==2 then so("199149338",hit,1,1)
  2313. elseif hitnum==3 then so("199149367",hit,1,1)
  2314. elseif hitnum==4 then so("199149409",hit,1,1)
  2315. elseif hitnum==5 then so("199149452",hit,1,1)
  2316. end
  2317. elseif (ranged==false or ranged==nil or Sound=="Slash") and blocked~=true then
  2318. hitnum=math.random(1,6)
  2319. if hitnum==1 then so("199149137",hit,1,1)
  2320. elseif hitnum==2 then so("199149186",hit,1,1)
  2321. elseif hitnum==3 then so("199149221",hit,1,1)
  2322. elseif hitnum==4 then so("199149235",hit,1,1)
  2323. elseif hitnum==5 then so("199149269",hit,1,1)
  2324. elseif hitnum==6 then so("199149297",hit,1,1)
  2325. end
  2326. end
  2327. if Damage<=3 and staghit==true then
  2328. if ranged~=true then
  2329. --StaggerHit.Value=true
  2330. end
  2331. end
  2332. end
  2333. if Stats:findFirstChild("Stun")~=nil then
  2334. if blocked==true then
  2335. incstun=incstun/2
  2336. end
  2337. if Stats.Stun.Value<Stats.StunThreshold.Value then
  2338. Stats.Stun.Value=Stats.Stun.Value+incstun
  2339. end
  2340. end
  2341. if Stats:findFirstChild("Stagger")~=nil then
  2342. if stagger==true then
  2343. Stats.Stagger.Value=true
  2344. end
  2345. end
  2346. end
  2347. if blocked==true then
  2348. showDamage(hit.Parent,"Block","Damage")
  2349. if ranged~=true then
  2350. enblock.Value=false
  2351. Stagger.Value=true
  2352. hitnum=math.random(1,2)
  2353. if hitnum==1 then so("199148933",hit,1,1)
  2354. elseif hitnum==2 then so("199148947",hit,1,1)
  2355. end
  2356. end
  2357. if ranged==true and Sound=="Slash" then
  2358. hitnum=math.random(1,2)
  2359. if hitnum==1 then so("199148933",hit,1,1)
  2360. elseif hitnum==2 then so("199148947",hit,1,1)
  2361. end
  2362. end
  2363. else
  2364. Damage=math.floor(Damage)
  2365. coroutine.resume(coroutine.create(function(Hum,Dam)
  2366. hit.Parent:TakeDamage(Damage)
  2367. end),h,Damage)
  2368. if obliterate==false then
  2369. passive.Value=passive.Value-.04
  2370. else
  2371. passive.Value=passive.Value-.02
  2372. end
  2373. showDamage(hit.Parent,Damage,"Damage")
  2374. if DecreaseState~=nil then
  2375. if DecreaseState=="Shatter" then
  2376. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  2377. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  2378. else
  2379. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  2380. end
  2381. end
  2382. if Type=="Knockdown" then
  2383. hum=hit.Parent.Humanoid
  2384. hum.PlatformStand=true
  2385. coroutine.resume(coroutine.create(function(HHumanoid)
  2386. swait(1)
  2387. HHumanoid.PlatformStand=false
  2388. end),hum)
  2389. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2390. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2391. local bodvol=Instance.new("BodyVelocity")
  2392. bodvol.velocity=angle*knockback
  2393. bodvol.P=5000
  2394. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2395. bodvol.Parent=hit
  2396. rl=Instance.new("BodyAngularVelocity")
  2397. rl.P=3000
  2398. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2399. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2400. rl.Parent=hit
  2401. game:GetService("Debris"):AddItem(bodvol,.5)
  2402. game:GetService("Debris"):AddItem(rl,.5)
  2403. elseif Type=="Shatter" then
  2404. for i=1,10 do
  2405. BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  2406. end
  2407. elseif Type=="Knockdown2" then
  2408. hum=hit.Parent.Humanoid
  2409. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2410. local bodvol=Instance.new("BodyVelocity")
  2411. bodvol.velocity=angle*knockback
  2412. bodvol.P=5000
  2413. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2414. bodvol.Parent=hit
  2415. game:GetService("Debris"):AddItem(bodvol,.5)
  2416. elseif Type=="Normal" then
  2417. vp=Instance.new("BodyVelocity")
  2418. vp.P=500
  2419. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2420. if KnockbackType==1 then
  2421. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2422. elseif KnockbackType==2 then
  2423. vp.velocity=Property.CFrame.lookVector*knockback
  2424. end
  2425. game:GetService("Debris"):AddItem(vp,.5)
  2426. if knockback>0 then
  2427. vp.Parent=hit.Parent.Torso
  2428. end
  2429. end
  2430. end
  2431. debounce=Instance.new("BoolValue")
  2432. debounce.Name="DebounceHit"
  2433. debounce.Parent=hit.Parent
  2434. debounce.Value=true
  2435. game:GetService("Debris"):AddItem(debounce,Delay)
  2436. c=Instance.new("ObjectValue")
  2437. c.Name="creator"
  2438. c.Value=Player
  2439. c.Parent=h
  2440. game:GetService("Debris"):AddItem(c,.5)
  2441. CRIT=false
  2442. end
  2443. end
  2444.  
  2445. showDamage=function(Char,Dealt,Type)
  2446. m=Instance.new("Model")
  2447. m.Name="Effect"
  2448. c=Instance.new("Part")
  2449. c.Transparency=1
  2450. c.Name="Head"
  2451. c.TopSurface=0
  2452. c.BottomSurface=0
  2453. c.formFactor="Plate"
  2454. c.Size=Vector3.new(1,.4,1)
  2455. b=Instance.new("BillboardGui",c)
  2456. b.Size=UDim2.new(5,0,5,0)
  2457. b.AlwaysOnTop=true
  2458. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  2459. if Type=="Damage" then
  2460. damgui.Font="SourceSans"
  2461. if Dealt=="Block" then
  2462. damgui.TextColor3=BrickColor.new("Bright blue").Color
  2463. elseif Dealt<3 then
  2464. damgui.TextColor3=BrickColor.new("White").Color
  2465. elseif Dealt>=3 and Dealt<20 then
  2466. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  2467. else
  2468. damgui.TextColor3=BrickColor.new("Really red").Color
  2469. damgui.Font="SourceSansBold"
  2470. end
  2471. elseif Type=="Debuff" then
  2472. damgui.TextColor3=BrickColor.new("White").Color
  2473. elseif Type=="Interrupt" then
  2474. damgui.TextColor3=BrickColor.new("New Yeller").Color
  2475. end
  2476. --damgui.FontSize="Size48"
  2477. damgui.TextScaled=true
  2478. ms=Instance.new("CylinderMesh")
  2479. ms.Scale=Vector3.new(.8,.8,.8)
  2480. ms.Parent=c
  2481. c.Reflectance=0
  2482. Instance.new("BodyGyro").Parent=c
  2483. c.Parent=m
  2484. if Char:findFirstChild("Head")~=nil then
  2485. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2486. elseif Char.Parent:findFirstChild("Head")~=nil then
  2487. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2488. end
  2489. f=Instance.new("BodyPosition")
  2490. f.P=2000
  2491. f.D=100
  2492. f.maxForce=Vector3.new(545000,545000,545000)
  2493. if Type=="Damage" then
  2494. f.position=c.Position+Vector3.new(0,3,0)
  2495. elseif Type=="Debuff" or Type=="Interrupt" then
  2496. f.position=c.Position+Vector3.new(0,5,0)
  2497. end
  2498. f.Parent=c
  2499. game:GetService("Debris"):AddItem(m,5)
  2500. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  2501. c.CanCollide=false
  2502. m.Parent=workspace
  2503. c.CanCollide=false
  2504. end
  2505.  
  2506. combo=0
  2507. function ob1d(mouse)
  2508. if gun==true then
  2509. --mana.Value=mana.Value-10
  2510. shoot=true
  2511. if Ammo>0 then
  2512. Ammo=Ammo-1
  2513. so("203691885",gunpart,1,1)
  2514. if XVbullet==false then
  2515. Shootcombo()
  2516. else
  2517. XVbullet=false
  2518. XVShot()
  2519. end
  2520. else
  2521. so("203691822",gunpart,1,1)
  2522. end
  2523. gun=false
  2524. end
  2525. if attack==true or equipped==false then return end
  2526. hold=true
  2527. if combo==0 then
  2528. combo=1
  2529. attackone()
  2530. elseif combo==1 then
  2531. combo=2
  2532. attacktwo()
  2533. elseif combo==2 then
  2534. combo=3
  2535. attackthree()
  2536. elseif combo==3 then
  2537. combo=0
  2538. attackfour()
  2539. end
  2540. coroutine.resume(coroutine.create(function()
  2541. for i=1,50 do
  2542. if attack==false then
  2543. swait()
  2544. end
  2545. end
  2546. if attack==false then
  2547. combo=0
  2548. end
  2549. end))
  2550. end
  2551.  
  2552. function ob1u(mouse)
  2553. hold = false
  2554. end
  2555.  
  2556. buttonhold = false
  2557.  
  2558. fenbarmove1.MouseButton1Click:connect(do1)
  2559. fenbarmove2.MouseButton1Click:connect(do2)
  2560. fenbarmove3.MouseButton1Click:connect(do3)
  2561. fenbarmove4.MouseButton1Click:connect(do4)
  2562. eul=0
  2563. equipped=false
  2564. function key(key)
  2565. --[[if key=="q" then
  2566. for i=0,1,0.1 do
  2567. swait()
  2568. GunLeft(.4)
  2569. end
  2570. end
  2571. if key=="e" then
  2572. for i=0,1,0.1 do
  2573. swait()
  2574. GunRight(.4)
  2575. end
  2576. end
  2577. if key=="r" then
  2578. for i=0,1,0.1 do
  2579. swait()
  2580. TonfaLeft(.4)
  2581. end
  2582. end
  2583. if key=="t" then
  2584. for i=0,1,0.1 do
  2585. swait()
  2586. TonfaRight(.4)
  2587. end
  2588. end]]
  2589. if key=="e" then
  2590. if gun==true then
  2591. gun=false
  2592. end
  2593. end
  2594. if key=="v" and obliterate==true then
  2595. do4()
  2596. end
  2597. if attack==true then return end
  2598. if key=="f" then
  2599. pressedf=true
  2600. fnumb=0
  2601. attack=true
  2602. if equipped==false then
  2603. equipped=true
  2604. RSH=ch.Torso["Right Shoulder"]
  2605. LSH=ch.Torso["Left Shoulder"]
  2606. --
  2607. RSH.Parent=nil
  2608. LSH.Parent=nil
  2609. --
  2610. RW.Name="Right Shoulder"
  2611. RW.Part0=ch.Torso
  2612. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2613. RW.C1=cf(0, 0.5, 0)
  2614. RW.Part1=ch["Right Arm"]
  2615. RW.Parent=ch.Torso
  2616. --
  2617. LW.Name="Left Shoulder"
  2618. LW.Part0=ch.Torso
  2619. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2620. LW.C1=cf(0, 0.5, 0)
  2621. LW.Part1=ch["Left Arm"]
  2622. LW.Parent=ch.Torso
  2623. --
  2624. Animate.Parent=nil
  2625. equipanim()
  2626. else
  2627. equipped=false
  2628. hideanim()
  2629. LH.C1=LHC1
  2630. RH.C1=RHC1
  2631. Animate.Parent=Humanoid
  2632. swait(0)
  2633. RW.Parent=nil
  2634. LW.Parent=nil
  2635. RSH.Parent=player.Character.Torso
  2636. LSH.Parent=player.Character.Torso
  2637. end
  2638. attack=false
  2639. end
  2640. if equipped==false then return end
  2641. --[[if key=="q" then
  2642. attack=true
  2643. for i=0,1,0.1 do
  2644. swait()
  2645. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.1,0,0),.4)
  2646. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.57),.4)
  2647. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57),.4)
  2648. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2649. LW.C0=clerp(LW.C0,cf(-1,0.5,-.8)*euler(1.7,0,1)*euler(0,-1,0),.4)
  2650. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2651. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.4)
  2652. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.4)
  2653. end
  2654. swait(200)
  2655. attack=false
  2656. end]]
  2657. if key=="e" then
  2658. if gun==false then
  2659. GunStance()
  2660. end
  2661. end
  2662. if key=="z" then
  2663. do1()
  2664. end
  2665. if key=="x" then
  2666. do2()
  2667. end
  2668. if key=="c" then
  2669. do3()
  2670. end
  2671. if key=="v" then
  2672. do4()
  2673. end
  2674. if key=="h" then
  2675. --mana.Value=100
  2676. end
  2677. if attack==false then
  2678. RecentEnemy.Value=nil
  2679. end
  2680. end
  2681.  
  2682. function key2(key)
  2683.  
  2684.  
  2685. end
  2686.  
  2687. function s(mouse)
  2688. player=Player
  2689. ch=Character
  2690. MMouse=mouse
  2691. end
  2692.  
  2693. function ds(mouse)
  2694. end
  2695.  
  2696. print("Trooper loaded.")
  2697.  
  2698. local mananum=0
  2699. local donum=0
  2700. local stunnum=0
  2701. local passivenum=0
  2702. local staggeranim=false
  2703. local stunanim=false
  2704. local Point=nil
  2705. local LastPoint=nil
  2706. local moving=0
  2707. local walk=0
  2708. local walkforw=true
  2709. while true do
  2710. swait()
  2711. if Humanoid.Health<=0 then
  2712. attack=true
  2713. resumeControl()
  2714. modelzorz.Parent=workspace
  2715. game:GetService("Debris"):AddItem(modelzorz,30)
  2716. for i=1,#Weapon do
  2717. Weapon[i].Parent=modelzorz
  2718. Weapon[i].CanCollide=true
  2719. end
  2720. for i=1,#Welds do
  2721. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  2722. Welds[i].Parent=nil
  2723. else
  2724. Welds[i].Parent=rprt1
  2725. end
  2726. end
  2727. end
  2728. if fnumb<21 then
  2729. fnumb=fnumb+1
  2730. if pressedf==false then
  2731. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  2732. tellbar.TextTransparency=tellbar.TextTransparency-.05
  2733. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  2734. else
  2735. if fnumb==20 then
  2736. fenframe5.Parent=nil
  2737. print("daigui")
  2738. end
  2739. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  2740. tellbar.TextTransparency=tellbar.TextTransparency+.05
  2741. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  2742. end
  2743. end
  2744. if hbwld.Parent==nil then
  2745. hitbox2.Name="Hitbox"
  2746. else
  2747. hitbox2.Name="Hitbox2"
  2748. end
  2749. hitbox2.Parent=hitbox.Parent
  2750. hitbox2.Size=hitbox.Size
  2751. hitbox2.CFrame=hitboxCF
  2752. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2753. passivenum=passivenum+1
  2754. if passivenum>=100 then
  2755. passivenum=0
  2756. if passive.Value<0 then
  2757. passive.Value=passive.Value/2
  2758. if passive.Value>0 then
  2759. passive.Value=0
  2760. end
  2761. end
  2762. end
  2763. --[[if gun==true then
  2764. if Anim~="Idle" then
  2765. moving=.94
  2766. else
  2767. moving=1
  2768. end
  2769. accuracy=accuracy+5
  2770. accuracy=accuracy*moving
  2771. if accuracy>=100 then
  2772. accuracy=100
  2773. end
  2774. else
  2775. accuracy=accuracy-2
  2776. if accuracy<=0 then
  2777. accuracy=0
  2778. end
  2779. end]]
  2780. if Stagger.Value==true and staggeranim==false then
  2781. coroutine.resume(coroutine.create(function()
  2782. staggeranim=true
  2783. while attack==true do
  2784. swait()
  2785. end
  2786. StaggerAnim()
  2787. StaggerHit.Value=false
  2788. Stagger.Value=false
  2789. staggeranim=false
  2790. end))
  2791. end
  2792. if StaggerHit.Value==true and staggeranim==false then
  2793. coroutine.resume(coroutine.create(function()
  2794. staggeranim=true
  2795. while attack==true do
  2796. swait()
  2797. end
  2798. StaggerHitt()
  2799. StaggerHit.Value=false
  2800. Stagger.Value=false
  2801. staggeranim=false
  2802. end))
  2803. end
  2804. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
  2805. Humanoid.WalkSpeed=0
  2806. else
  2807. Humanoid.WalkSpeed=16*Mvmt.Value
  2808. end
  2809. if Stun.Value>=StunT.Value and stunanim==false then
  2810. coroutine.resume(coroutine.create(function()
  2811. stunanim=true
  2812. while attack==true do
  2813. swait()
  2814. end
  2815. StunAnim()
  2816. Stun.Value=0
  2817. stunanim=false
  2818. end))
  2819. end
  2820. local stunnum2=40
  2821. if stunnum>=stunnum2 then
  2822. if Stun.Value>0 then
  2823. Stun.Value=Stun.Value-1
  2824. end
  2825. stunnum=0
  2826. end
  2827. stunnum=stunnum+1
  2828. if donum>=.5 then
  2829. handidle=true
  2830. elseif donum<=0 then
  2831. handidle=false
  2832. end
  2833. if handidle==false then
  2834. donum=donum+0.003
  2835. else
  2836. donum=donum-0.003
  2837. end
  2838. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2839. local velderp=RootPart.Velocity.y
  2840. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2841. if equipped==true then
  2842. if attack==false then
  2843. idle=idle+1
  2844. else
  2845. idle=0
  2846. end
  2847. if idle>=500 then
  2848. if attack==false then
  2849. --Sheath()
  2850. end
  2851. end
  2852. if Anim=="Walk" then
  2853. if walkforw==true then
  2854. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  2855. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  2856. else
  2857. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  2858. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  2859. end
  2860. else
  2861. RH.C1=clerp(RH.C1,RHC1,.2)
  2862. LH.C1=clerp(LH.C1,LHC1,.2)
  2863. end
  2864. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2865. Anim="Jump"
  2866. if attack==false then
  2867. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  2868. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  2869. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2870. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.8)*euler(0,.3,0),.2)
  2871. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2872. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.8)*euler(0,-.3,0),.2)
  2873. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2874. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2875. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2876. end
  2877. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2878. Anim="Fall"
  2879. if attack==false then
  2880. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  2881. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  2882. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2883. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,1.2),.2)
  2884. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2885. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-1.2),.3)
  2886. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2887. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2888. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2889. end
  2890. elseif torvel<1 and hitfloor~=nil then
  2891. Anim="Idle"
  2892. if attack==false then
  2893. if gunleft==true and gunright==true then
  2894. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.15)
  2895. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.15)
  2896. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.1,0,0),.2)
  2897. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.2)
  2898. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.6-(donum/5),0,.3+(donum/7))*euler(0,.2,0),.2)
  2899. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2900. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.7-(donum/5),0,.4-(donum/7))*euler(0,-1.57,0),.2)
  2901. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2902. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.07,-.1),.2)
  2903. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-2.07,.4),.2)
  2904. elseif gunleft==false and gunright==false then
  2905. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.15)
  2906. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.15)
  2907. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.8),.2)
  2908. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.8),.2)
  2909. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.6-(donum/2),0,.6+(donum/2))*euler(0,1.57,0),.2)
  2910. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2911. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.7-(donum/2),0,-.2-(donum/2))*euler(0,-1.57,0),.2)
  2912. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2913. RH.C0=clerp(RH.C0,cf(.9,-1,.4)*euler(0,0.77,-.1),.2)
  2914. LH.C0=clerp(LH.C0,cf(-.9,-.9,-.4)*euler(0,-2.37,.4),.2)
  2915. else
  2916. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.15)
  2917. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.15)
  2918. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.2)
  2919. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.2)
  2920. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3-(donum/3),0,.3+(donum/3))*euler(0,.6,0),.2)
  2921. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2922. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.3-(donum/3),0,-.3-(donum/3))*euler(0,-.6,0),.2)
  2923. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2924. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,.1),.2)
  2925. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-1.57,.4),.2)
  2926. end
  2927. end
  2928. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  2929. Anim="Walk"
  2930. walk=walk+1
  2931. if walk>=15-(5*Mvmt.Value) then
  2932. walk=0
  2933. if walkforw==true then
  2934. walkforw=false
  2935. elseif walkforw==false then
  2936. walkforw=true
  2937. end
  2938. end
  2939. if attack==false then
  2940. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.2)
  2941. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.2)
  2942. Neck.C0=clerp(Neck.C0,necko*euler(.05,0,0),.2)
  2943. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2944. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.5)*euler(0,.6,0),.2)
  2945. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2946. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5)*euler(0,-.6,0),.2)
  2947. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2948. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  2949. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  2950. end
  2951. elseif torvel>=30 and hitfloor~=nil then
  2952. Anim="Run"
  2953. if attack==false then
  2954. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.4)
  2955. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,.9,-.2),.4)
  2956. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.4)
  2957. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.2,0,0),.4)
  2958. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.5)*euler(0,.6,0),.4)
  2959. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2960. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5)*euler(0,-.6,0),.4)
  2961. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2962. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.2,0,.4),.4)
  2963. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0,-1.57,0)*euler(-.2,0,-.4),.4)
  2964. end
  2965. end
  2966. end
  2967. if #Effects>0 then
  2968. --table.insert(Effects,{prt,"Block1",delay})
  2969. for e=1,#Effects do
  2970. if Effects[e]~=nil then
  2971. --for j=1,#Effects[e] do
  2972. local Thing=Effects[e]
  2973. if Thing~=nil then
  2974. local Part=Thing[1]
  2975. local Mode=Thing[2]
  2976. local Delay=Thing[3]
  2977. local IncX=Thing[4]
  2978. local IncY=Thing[5]
  2979. local IncZ=Thing[6]
  2980. if Thing[2]=="Shoot" then
  2981. local Look=Thing[1]
  2982. local move=30
  2983. if Thing[8]==3 then
  2984. move=10
  2985. end
  2986. local hit,pos = rayCast(Thing[4],Thing[1],move,modelzorz)
  2987. if Thing[10]~=nil --[[and (Thing[8]==3)]] then
  2988. --[[ex=(pos.X+target.Position.X)/2
  2989. why=(pos.Y+target.Position.Y)/2
  2990. zee=(pos.Z+target.Position.Z)/2
  2991. dist=vt(ex,why,zee)
  2992. Thing[1]=cf(Thing[4],dist).lookVector]]
  2993. --MagicCircle(BrickColor.new(NewCol),cf(Thing[4]),5,5,5,0,0,0,.05)
  2994. --tehCF=clerp(cf2,cf(Thing[4]),.4)
  2995. --tehCF=clerp(cf(pos),cf(target.Position),.4)
  2996. --Thing[4]=tehCF
  2997.  
  2998. da=pos
  2999. cf2=cf(Thing[4],Thing[10].Position)
  3000. cfa=cf(Thing[4],pos)
  3001. --tehCF=clerp(cf2,cf(Thing[4]),.5)
  3002. tehCF=cfa:lerp(cf2,.2)
  3003. Thing[1]=(tehCF).lookVector
  3004.  
  3005. end
  3006. --Look=Thing[1]
  3007. local mag=(Thing[4]-pos).magnitude
  3008. MagicHead(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,.2)
  3009. if Thing[8]==2 then
  3010. --MagicBlock(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,1,1,1,1,1,.1,1)
  3011. MagicRing(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0)*euler(1.57,0,0),1,1,.1,.5,.5,.1,.1,1)
  3012. end
  3013. --[[if Thing[8]==3 then --trueaim
  3014. if Thing[3]==29 then
  3015. MagicCircle(BrickColor.new(NewCol),cf(pos),5,5,5,1,1,1,0.1)
  3016. spread=vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)*(pos-getMouseHit()).magnitude/100
  3017. local MouseLook=cf((pos+getMouseHit())/2,getMouseHit()+spread)
  3018. Thing[1]=MouseLook.lookVector
  3019. end
  3020. end]]
  3021. Thing[4]=Thing[4]+(Look*move)
  3022. Thing[3]=Thing[3]-1
  3023. if Thing[5]>2 then
  3024. Thing[5]=Thing[5]-.3
  3025. Thing[6]=Thing[6]-.3
  3026. end
  3027. if hit~=nil then
  3028. Thing[3]=0
  3029. if Thing[8]==1 or Thing[8]==3 then
  3030. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,5),nil,nil,true)
  3031. elseif Thing[8]==2 then
  3032. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,.1,2,math.random(3,8),nil,nil,true,"Defense",.1,200)
  3033. if hit.Parent:findFirstChild("Humanoid")~=nil or hit.Parent.Parent:findFirstChild("Humanoid")~=nil then
  3034. ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt(0.2,0.2,0.2))
  3035. ref.Anchored=true
  3036. ref.CFrame=cf(pos)
  3037. so("161006093",ref,1,1.2)
  3038. game:GetService("Debris"):AddItem(ref,.2)
  3039. MagicBlock(BrickColor.new(NewCol),cf(ref.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,10,10,10,.1,2)
  3040. MagicRing(BrickColor.new("Bright yellow"),cf(ref.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,4,4,.1,.1)
  3041. MagniDamage(ref,15,Thing[5]/1.5,Thing[6]/1.5,0,"Normal",ref,0,1,math.random(3,8),nil,nil,true,"Defense",.05,300)
  3042. end
  3043. end
  3044. ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt())
  3045. ref.Anchored=true
  3046. ref.CFrame=cf(pos)
  3047. MagicCircle(BrickColor.new(NewCol),cf(pos),5,5,5,1,1,1,0.07)
  3048. game:GetService("Debris"):AddItem(ref,1)
  3049. end
  3050. if Thing[3]<=0 then
  3051. table.remove(Effects,e)
  3052. end
  3053. end
  3054. if Thing[2]=="CylinderClang" then
  3055. if Thing[3]<=1 then
  3056. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  3057. Thing[7]=Thing[1].CFrame
  3058. effect("New Yeller",0,Thing[8],Thing[7])
  3059. Thing[8]=Thing[7]
  3060. Thing[3]=Thing[3]+Thing[4]
  3061. else
  3062. Part.Parent=nil
  3063. table.remove(Effects,e)
  3064. end
  3065. --[[Mesh=Thing[7]
  3066. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3067. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  3068. end
  3069. if Thing[2]=="FireWave" then
  3070. if Thing[3]<=Thing[4] then
  3071. Thing[1].CFrame=Thing[1].CFrame*euler(0,1,0)
  3072. Thing[3]=Thing[3]+1
  3073. Thing[6].Scale=Thing[6].Scale+vt(Thing[5],0,Thing[5])
  3074. else
  3075. Part.Parent=nil
  3076. table.remove(Effects,e)
  3077. end
  3078. end
  3079. if Thing[2]=="showDamage" then
  3080. if Thing[6]<Thing[5] then
  3081. Thing[6]=Thing[6]+1
  3082. elseif Thing[6]<Thing[7] then
  3083. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  3084. Thing[6]=Thing[6]+1
  3085. elseif Thing[6]<Thing[8] then
  3086. Thing[6]=Thing[6]+1
  3087. elseif Thing[6]<Thing[9] then
  3088. Thing[6]=Thing[6]+1
  3089. Thing[4].position=Thing[4].position+vt(0,.2,0)
  3090. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  3091. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  3092. else
  3093. Thing[1].Parent=nil
  3094. table.remove(Effects,e)
  3095. end
  3096. end
  3097. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" and Thing[2]~="Wave" and Thing[2]~="FireWave" and Thing[2]~="showDamage" then
  3098. if Thing[1].Transparency<=1 then
  3099. if Thing[2]=="Block1" then
  3100. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3101. Mesh=Thing[7]
  3102. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3103. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3104. elseif Thing[2]=="Block2" then
  3105. Thing[1].CFrame=Thing[1].CFrame
  3106. Mesh=Thing[7]
  3107. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3108. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3109. elseif Thing[2]=="Fire" then
  3110. Thing[1].CFrame=cf(Thing[1].Position)+vt(0,.2,0)
  3111. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3112. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3113. elseif Thing[2]=="Cylinder" then
  3114. Mesh=Thing[7]
  3115. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3116. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3117. elseif Thing[2]=="Blood" then
  3118. Mesh=Thing[7]
  3119. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3120. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3121. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3122. elseif Thing[2]=="Elec" then
  3123. Mesh=Thing[10]
  3124. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3125. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3126. elseif Thing[2]=="Disappear" then
  3127. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3128. end
  3129. else
  3130. Part.Parent=nil
  3131. table.remove(Effects,e)
  3132. end
  3133. end
  3134. end
  3135. --end
  3136. end
  3137. end
  3138. end
  3139. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  3140. fenbarmana4.Text="Mana("..mana.Value..")"
  3141. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  3142. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  3143. fenbarhp3.Text="("..math.floor(Humanoid.Health)..")"
  3144. --[[fenbarblock2:TweenSize(UDim2.new(.4,0,-4*accuracy/100,0),nil,1,0.4,true)
  3145. fenbarblock3.Text="Accuracy("..math.floor(accuracy)..")"]]
  3146. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  3147. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  3148. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  3149. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  3150. for _,c in pairs(Decrease:children()) do
  3151. if c:findFirstChild("Duration")~=nil then
  3152. c.Duration.Value=c.Duration.Value-1
  3153. if c.Duration.Value<=0 then
  3154. c.Parent=nil
  3155. end
  3156. end
  3157. if c.Name=="DecreaseAtk" then
  3158. decreaseatk=decreaseatk+c.Value
  3159. elseif c.Name=="DecreaseDef" then
  3160. decreasedef=decreasedef+c.Value
  3161. elseif c.Name=="DecreaseMvmt" then
  3162. decreasemvmt=decreasemvmt+c.Value
  3163. end
  3164. end
  3165. Atk.Value=1-decreaseatk
  3166. if Atk.Value<=0 then
  3167. Atk.Value=0
  3168. end
  3169. Def.Value=1-decreasedef
  3170. if Def.Value<=0 then
  3171. Def.Value=0.01
  3172. end
  3173. Mvmt.Value=1-decreasemvmt
  3174. if Mvmt.Value<=0 then
  3175. Mvmt.Value=0
  3176. end
  3177. decreaseatk=0
  3178. decreasedef=0
  3179. decreasemvmt=0
  3180. AtkVal=Atk.Value*100
  3181. AtkVal=math.floor(AtkVal)
  3182. AtkVal=AtkVal/100
  3183. fenbardamage.Text="Damage\
  3184. ("..(AtkVal)..")"
  3185. DefVal=Def.Value*100
  3186. DefVal=math.floor(DefVal)
  3187. DefVal=DefVal/100
  3188. fenbardef.Text="Defense\
  3189. ("..(DefVal)..")"
  3190. MvmtVal=Mvmt.Value*100
  3191. MvmtVal=math.floor(MvmtVal)
  3192. MvmtVal=MvmtVal/100
  3193. if Rooted.Value==true then MvmtVal=0 end
  3194. fenbarmove.Text="Walkspeed\
  3195. ("..(MvmtVal)..")"
  3196. fenbarammo1.Text="Ammo\
  3197. ("..(Ammo)..")"
  3198. if Stun.Value>=StunT.Value then
  3199. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  3200. else
  3201. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  3202. end
  3203. fenbarstun3.Text="Stun("..Stun.Value..")"
  3204. if mana.Value>=100 then
  3205. mana.Value=100
  3206. else
  3207. if mananum<=10 then
  3208. mananum=mananum+1
  3209. else
  3210. mananum=0
  3211. mana.Value=mana.Value+1
  3212. end
  3213. end
  3214. for i=1,#cooldowns do
  3215. if cooldowns[i]>=cooldownmax then
  3216. cooldowns[i]=cooldownmax
  3217. else
  3218. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  3219. end
  3220. end
  3221. end
  3222.  
  3223.  
  3224. --[[
  3225. Copyrighted (C) Fenrier 2015
  3226. ]]
  3227.  
  3228.  
  3229. ]=], owner.Character):WaitForChild 'ServerRemote';
  3230.  
  3231. local plr = game.Players.LocalPlayer
  3232. local chr = plr.Character
  3233. local mouse = plr:GetMouse()
  3234.  
  3235. q = Instance.new('HopperBin', plr.Backpack)
  3236. q.Name = 'Joy'
  3237. Bin=q
  3238.  
  3239. Bin.Selected:connect(function(mouse)
  3240. remote:InvokeServer(4);
  3241. mouse.Button1Down:connect(function()
  3242. remote:InvokeServer (1,mouse);
  3243. end)
  3244. mouse.Button1Up:Connect(function()
  3245. remote:InvokeServer (3,mouse);
  3246. end)
  3247. mouse.KeyDown:connect(function(k)
  3248. k = k:lower()
  3249.  
  3250. remote:InvokeServer (2, k);
  3251. end)
  3252. mouse.KeyUp:connect(function(k)
  3253. k = k:lower()
  3254.  
  3255. remote:InvokeServer (6, k);
  3256. end)
  3257. end)
  3258.  
  3259. Bin.Deselected:Connect(function()
  3260. remote:InvokeServer(5);
  3261. end)
  3262.  
  3263. remote.OnClientInvoke = function (request, ...)
  3264. if (request == 1) then
  3265. return mouse.Hit.p;
  3266. end;
  3267. end;
  3268.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement