Advertisement
AgentVK

Scitia

Jan 2nd, 2018
825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 111.42 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local Torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13. local deb = false
  14. local shot = 0
  15. local potential = false
  16. local debris=game:service"Debris"
  17. local l = game:GetService("Lighting")
  18. local rs = game:GetService("RunService").RenderStepped
  19. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  20. math.randomseed(os.time())
  21. for i,v in pairs(char:children()) do
  22. if v:IsA("Accessory") then
  23. v:Destroy()
  24. end
  25. end
  26. char["Body Colors"].HeadColor = BrickColor.new("White")
  27. char["Body Colors"].LeftArmColor = BrickColor.new("White")
  28. char["Body Colors"].RightArmColor = BrickColor.new("White")
  29. char["Body Colors"].TorsoColor = BrickColor.new("White")
  30. char["Body Colors"].RightLegColor = BrickColor.new("White")
  31. char["Body Colors"].LeftLegColor = BrickColor.new("White")
  32. Player=game:GetService("Players").LocalPlayer
  33. Character=Player.Character
  34. PlayerGui=Player.PlayerGui
  35. Backpack=Player.Backpack
  36. Torso=Character.Torso
  37. Head=Character.Head
  38. Humanoid=Character.Humanoid
  39. Mouse=Player:GetMouse()
  40. RootPart = Character.HumanoidRootPart
  41. RootJoint = RootPart.RootJoint
  42. LeftArm=Character["Left Arm"]
  43. LeftLeg=Character["Left Leg"]
  44. RightArm=Character["Right Arm"]
  45. RightLeg=Character["Right Leg"]
  46. LS=Torso["Left Shoulder"]
  47. LH=Torso["Left Hip"]
  48. RS=Torso["Right Shoulder"]
  49. RH=Torso["Right Hip"]
  50. Neck=Torso.Neck
  51. it=Instance.new
  52. vt=Vector3.new
  53. cf=CFrame.new
  54. euler=CFrame.fromEulerAnglesXYZ
  55. angles=CFrame.Angles
  56. local decreaseatk=0
  57. local decreasedef=0
  58. local decreasemvmt=0
  59. local Anim="Idle"
  60. local Effects={}
  61. local armorparts={}
  62. local armorwelds={}
  63. local weaponparts={}
  64. local weaponwelds={}
  65. local necko=euler(0,0,0)*cf(0,1,0)
  66. local attack=false
  67. local jump=false
  68. local start=false
  69. local move=10
  70. local hitfloor,posfloor=nil,nil
  71. local hitboxing=false
  72. local snipe=false
  73. local run=Instance.new("NumberValue")
  74. run.Name="DecreaseMvmt"
  75. run.Value=-.6
  76. local bName="Sticia"
  77. local MainColor=BrickColor.new("Really black")
  78. local SubColor=BrickColor.new("Really black")
  79. --[[if script:findFirstChild("SiegmundHealth")~=nil then
  80. for _,c in pairs(game.Players:children()) do
  81. d=script.SiegmundHealth:Clone()
  82. d.Parent=c.PlayerGui
  83. end
  84. end]]
  85. --local damageFunc=workspace.damageFunc
  86.  
  87.  
  88.  
  89. function NoOutline(Part)
  90. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  91. end
  92. Humanoid.Animator.Parent = nil
  93. Character.Animate.Parent = nil
  94. local Create = LoadLibrary("RbxUtility").Create
  95.  
  96. ArtificialHB = Create("BindableEvent", script){
  97. Parent = script,
  98. Name = "Heartbeat",
  99. }
  100.  
  101. script:WaitForChild("Heartbeat")
  102.  
  103. frame = 1 / 30
  104. tf = 0
  105. allowframeloss = false
  106. tossremainder = false
  107. lastframe = tick()
  108. script.Heartbeat:Fire()
  109.  
  110. game:GetService("RunService").Heartbeat:connect(function(s, p)
  111. tf = tf + s
  112. if tf >= frame then
  113. if allowframeloss then
  114. script.Heartbeat:Fire()
  115. lastframe = tick()
  116. else
  117. for i = 1, math.floor(tf / frame) do
  118. script.Heartbeat:Fire()
  119. end
  120. lastframe = tick()
  121. end
  122. if tossremainder then
  123. tf = 0
  124. else
  125. tf = tf - frame * math.floor(tf / frame)
  126. end
  127. end
  128. end)
  129.  
  130. function swait(num)
  131. if num == 0 or num == nil then
  132. ArtificialHB.Event:wait()
  133. else
  134. for i = 0, num do
  135. ArtificialHB.Event:wait()
  136. end
  137. end
  138. end
  139.  
  140. --[[frame,t,lastframe = 1/30,0,tick()
  141. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  142. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  143.  
  144. swait = function(dt)
  145. if dt == nil then
  146. dt = frame
  147. elseif dt < frame then
  148. dt = frame
  149. elseif dt > frame then
  150. --round this out into frames
  151. dt = math.floor(dt/frame)
  152. end
  153. local timetomeet = tick() + dt
  154. end]] --maybe later
  155.  
  156. --30hz Pacemaker
  157.  
  158. script:WaitForChild("Heartbeat")
  159.  
  160. frame = 1/30
  161. tf = 0
  162. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  163. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  164. lastframe = tick()
  165. script.Heartbeat:Fire() --ayy lmao
  166.  
  167. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  168. tf = tf + s
  169. if tf >= frame then
  170. if allowframeloss then
  171. script.Heartbeat:Fire()
  172. lastframe=tick()
  173. else
  174. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  175. for i=1, math.floor(tf/frame) do
  176. script.Heartbeat:Fire()
  177. end
  178. lastframe=tick()
  179. end
  180. if tossremainder then
  181. tf = 0
  182. else
  183. tf = tf - frame * math.floor(tf/frame)
  184. end
  185. end
  186. end)
  187.  
  188. function clerp(a,b,t)
  189. local qa = {QuaternionFromCFrame(a)}
  190. local qb = {QuaternionFromCFrame(b)}
  191. local ax, ay, az = a.x, a.y, a.z
  192. local bx, by, bz = b.x, b.y, b.z
  193. local _t = 1-t
  194. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  195. end
  196.  
  197. function QuaternionFromCFrame(cf)
  198. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  199. local trace = m00 + m11 + m22
  200. if trace > 0 then
  201. local s = math.sqrt(1 + trace)
  202. local recip = 0.5/s
  203. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  204. else
  205. local i = 0
  206. if m11 > m00 then
  207. i = 1
  208. end
  209. if m22 > (i == 0 and m00 or m11) then
  210. i = 2
  211. end
  212. if i == 0 then
  213. local s = math.sqrt(m00-m11-m22+1)
  214. local recip = 0.5/s
  215. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  216. elseif i == 1 then
  217. local s = math.sqrt(m11-m22-m00+1)
  218. local recip = 0.5/s
  219. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  220. elseif i == 2 then
  221. local s = math.sqrt(m22-m00-m11+1)
  222. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  223. end
  224. end
  225. end
  226.  
  227. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  228. local xs, ys, zs = x + x, y + y, z + z
  229. local wx, wy, wz = w*xs, w*ys, w*zs
  230. local xx = x*xs
  231. local xy = x*ys
  232. local xz = x*zs
  233. local yy = y*ys
  234. local yz = y*zs
  235. local zz = z*zs
  236. 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))
  237. end
  238.  
  239. function QuaternionSlerp(a, b, t)
  240. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  241. local startInterp, finishInterp;
  242. if cosTheta >= 0.0001 then
  243. if (1 - cosTheta) > 0.0001 then
  244. local theta = math.acos(cosTheta)
  245. local invSinTheta = 1/math.sin(theta)
  246. startInterp = math.sin((1-t)*theta)*invSinTheta
  247. finishInterp = math.sin(t*theta)*invSinTheta
  248. else
  249. startInterp = 1-t
  250. finishInterp = t
  251. end
  252. else
  253. if (1+cosTheta) > 0.0001 then
  254. local theta = math.acos(-cosTheta)
  255. local invSinTheta = 1/math.sin(theta)
  256. startInterp = math.sin((t-1)*theta)*invSinTheta
  257. finishInterp = math.sin(t*theta)*invSinTheta
  258. else
  259. startInterp = t-1
  260. finishInterp = t
  261. end
  262. end
  263. 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
  264. end
  265.  
  266. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  267. local fp=it("Part")
  268. fp.formFactor=formfactor
  269. fp.Parent=parent
  270. fp.Reflectance=reflectance
  271. fp.Transparency=transparency
  272. fp.CanCollide=false
  273. fp.Locked=true
  274. fp.BrickColor=brickcolor
  275. fp.Name=name
  276. fp.Size=size
  277. NoOutline(fp)
  278. fp.Material="SmoothPlastic"
  279. fp:BreakJoints()
  280. return fp
  281. end
  282.  
  283. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  284. local mesh=it(Mesh)
  285. mesh.Parent=part
  286. if Mesh=="SpecialMesh" then
  287. mesh.MeshType=meshtype
  288. if meshid~="nil" then
  289. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  290. end
  291. end
  292. mesh.Offset=offset
  293. mesh.Scale=scale
  294. return mesh
  295. end
  296.  
  297. function weld(parent,part0,part1,c0)
  298. local weld=it("Weld")
  299. weld.Parent=parent
  300. weld.Part0=part0
  301. weld.Part1=part1
  302. weld.C0=c0
  303. return weld
  304. end
  305.  
  306. function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
  307. local gui=it(GuiType)
  308. gui.Parent=parent
  309. gui.BackgroundTransparency=backtrans
  310. gui.BackgroundColor3=backcol
  311. gui.SizeConstraint="RelativeXY"
  312. gui.Position=pos
  313. gui.Size=size
  314. if GuiType=="TextLabel" then
  315. gui.Text=text
  316. gui.TextXAlignment="Center"
  317. gui.TextYAlignment="Center"
  318. gui.Font="SourceSans"
  319. gui.FontSize="Size14"
  320. gui.TextWrapped=false
  321. gui.TextStrokeTransparency=0
  322. gui.TextColor=BrickColor.new("White")
  323. elseif GuiType=="ImageLabel" then
  324. gui.Image="rbxassetid://"..image
  325. gui.ImageColor3=backcol
  326. end
  327. return gui
  328. end
  329.  
  330. local Characte=Instance.new("Model")
  331. Characte.Parent=Character
  332. Characte.Name=bName
  333.  
  334.  
  335. --local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
  336. local Torsoc=part(0,Character,0,0,SubColor,"Torso Copy",vt(2,2,1))
  337. --local LeftArm=part(0,Character,0,0,MainColor,"Left Arm",vt(1,2,1))
  338. local LeftArmc=part(0,Character,0,0,SubColor,"Left Arm Copy",vt(1,2,1))
  339. --local RightArm=part(0,Character,0,0,MainColor,"Right Arm",vt(1,2,1))
  340. local RightArmc=part(0,Character,0,0,SubColor,"Right Arm Copy",vt(1,2,1))
  341. --local LeftLeg=part(0,Character,0,0,MainColor,"Left Leg",vt(1,2,1))
  342. local LeftLegc=part(0,Character,0,0,SubColor,"Left Leg Copy",vt(1,2,1))
  343. --local RightLeg=part(0,Character,0,0,MainColor,"Right Leg",vt(1,2,1))
  344. local RightLegc=part(0,Character,0,0,SubColor,"Right Leg Copy",vt(1,2,1))
  345.  
  346.  
  347. --local Head=part(0,Character,0,0,BrickColor.new("Pastel brown"),"Head",vt(2,1,1))
  348. --[[local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
  349. local Torsoc=part(0,Character,0,0,SubColor,"Torso Copy",vt(2,2,1))
  350. local LeftArm=part(0,Character,0,0,SubColor,"Left Arm",vt(1,2,1))
  351. local LeftArmc=part(0,Character,0,0,MainColor,"Left Arm Copy",vt(1,2,1))
  352. local RightArm=part(0,Character,0,0,SubColor,"Right Arm",vt(1,2,1))
  353. local RightArmc=part(0,Character,0,0,MainColor,"Right Arm Copy",vt(1,2,1))
  354. local LeftLeg=part(0,Character,0,0,SubColor,"Left Leg",vt(1,2,1))
  355. local LeftLegc=part(0,Character,0,0,MainColor,"Left Leg Copy",vt(1,2,1))
  356. local RightLeg=part(0,Character,0,0,SubColor,"Right Leg",vt(1,2,1))
  357. local RightLegc=part(0,Character,0,0,MainColor,"Right Leg Copy",vt(1,2,1))]]
  358. --local RootPart=part(0,Character,0,1,BrickColor.new("Black"),"HumanoidRootPart",vt(2,2,1))
  359. Head.CanCollide=true
  360. Torso.CanCollide=true
  361. LeftArm.CanCollide=true
  362. RightArm.CanCollide=true
  363. LeftLeg.CanCollide=true
  364. RightLeg.CanCollide=true
  365. RootPart.CanCollide=false
  366. Character.Head.face:Remove()
  367. face=Instance.new("Decal",Head)
  368. face.Face="Front"
  369. --face.Texture="http://www.roblox.com/asset/?id="
  370. face.Texture="http://www.roblox.com/asset/?id="
  371.  
  372. local HMesh=mesh("SpecialMesh",Head,"Head","nil",vt(0,0,0),vt(1.25,1.25,1.25))
  373. local TMsh=mesh("SpecialMesh",Torso,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(1.8,1,.8))
  374. local LAMsh=mesh("SpecialMesh",LeftArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,.8,.8))
  375. local RAMsh=mesh("SpecialMesh",RightArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,.8,.8))
  376. local LLMsh=mesh("SpecialMesh",LeftLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,1,.8))
  377. local RLMsh=mesh("SpecialMesh",RightLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,1,.8))
  378. local TcMsh=mesh("SpecialMesh",Torsoc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-2,-1,-1))
  379. local LAcMsh=mesh("SpecialMesh",LeftArmc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1,-1))
  380. local RAcMsh=mesh("SpecialMesh",RightArmc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1,-1))
  381. local LLcMsh=mesh("SpecialMesh",LeftLegc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1.2,-1))
  382. local RLcMsh=mesh("SpecialMesh",RightLegc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1.2,-1))
  383. TMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  384. LAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  385. RAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  386. LLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  387. RLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  388. TcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  389. LAcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  390. RAcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  391. LLcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  392. RLcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  393.  
  394.  
  395. --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  396. Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
  397.  
  398. --[[
  399. local Neck=weld(Torso,Torso,Head,cf(0,0,0))
  400. Neck.C0=cf(0, 1.5, 0)
  401. local RW=weld(Torso,Torso,RightArm,cf(1.5, 0, 0))
  402. --RW.C1=cf(0,.5,0)
  403. local RWc=weld(Torso,RightArm,RightArmc,cf(0,0,0))
  404. local LW=weld(Torso,Torso,LeftArm,cf(-1.5, 0, 0))
  405. --LW.C1=cf(0,.5,0)
  406. local LWc=weld(Torso,LeftArm,LeftArmc,cf(0,0,0))
  407. local RH=weld(Torso,Torso,RightLeg,cf(.5, -2, 0))
  408. --RH.C1=cf(0,1,0)
  409. local RHc=weld(Torso,RightLeg,RightLegc,cf(0,0,0))
  410. local LH=weld(Torso,Torso,LeftLeg,cf(-.5, -2, 0))
  411. --LH.C1=cf(0,1,0)
  412. local LHc=weld(Torso,LeftLeg,LeftLegc,cf(0,0,0))
  413. local RootJoint=weld(Torso,Torso,RootPart,cf(0,0,0))
  414. local RootJointc=weld(Torso,Torso,Torsoc,cf(0,0,0))
  415. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  416.  
  417. ]]
  418. local RWc=weld(Torso,RightArm,RightArmc,cf(0,0,0))
  419. local LWc=weld(Torso,LeftArm,LeftArmc,cf(0,0,0))
  420. local RHc=weld(Torso,RightLeg,RightLegc,cf(0,0,0))
  421. local LHc=weld(Torso,LeftLeg,LeftLegc,cf(0,0,0))
  422. local RootJointc=weld(Torso,Torso,Torsoc,cf(0,0,0))
  423. --RootPart.CFrame=Characterz.Torso.CFrame*cf(0,6,0)
  424. New = function(Object, Parent, Name, Data)
  425. local Object = Instance.new(Object)
  426. for Index, Value in pairs(Data or {}) do
  427. Object[Index] = Value
  428. end
  429. Object.Parent = Parent
  430. Object.Name = Name
  431. return Object
  432. end
  433.  
  434.  
  435.  
  436. --Torso.CFrame=cf(0,0,0)
  437. --Torso.CFrame=workspace.Map.BossSpawn.CFrame*cf(0,5,0)
  438. --Cuz im too lazy V
  439. local newMotor = function(part0, part1, c0, c1)
  440. local w = Create('Motor'){
  441. Parent = part0,
  442. Part0 = part0,
  443. Part1 = part1,
  444. C0 = c0,
  445. C1 = c1,
  446. }
  447. return w
  448. end
  449. RootJoint = New("Motor6D",RootPart,"RootJoint",{Part0 = RootPart,Part1 = Torso,})
  450. Neck = New("Motor6D",RootPart,"Neck",{Part0 = Torso,Part1 = Head,})
  451. function clerp(a, b, t)
  452. return a:lerp(b, t)
  453. end
  454.  
  455. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  456. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  457.  
  458. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  459. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  460. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  461. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  462. RootJoint.C1 = CFrame.new(0, 0, 0)
  463. RootJoint.C0 = CFrame.new(0, 0, 0)
  464. Neck.C1 = CFrame.new(0, 0, 0)
  465. Neck.C0 = CFrame.new(0, 1.5, 0)
  466.  
  467. local rarmc1 = RW.C1
  468. local larmc1 = LW.C1
  469. local rlegc1 = RH.C1
  470. local llegc1 = LH.C1
  471.  
  472. local resetc1 = false
  473.  
  474. function PlayAnimationFromTable(table, speed, bool)
  475. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  476. Neck.C0 = clerp(Neck.C0, table[2], speed)
  477. RW.C0 = clerp(RW.C0, table[3], speed)
  478. LW.C0 = clerp(LW.C0, table[4], speed)
  479. RH.C0 = clerp(RH.C0, table[5], speed)
  480. LH.C0 = clerp(LH.C0, table[6], speed)
  481. if bool == true then
  482. if resetc1 == false then
  483. resetc1 = true
  484. RootJoint.C1 = RootJoint.C1
  485. Torso.Neck.C1 = Torso.Neck.C1
  486. RW.C1 = rarmc1
  487. LW.C1 = larmc1
  488. RH.C1 = rlegc1
  489. LH.C1 = llegc1
  490. end
  491. end
  492. end
  493. local modelzorz=it("Model",Character)
  494. modelzorz.Name="Katana"
  495.  
  496.  
  497. Handle = New("Part",modelzorz,"Handle",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.0999999, 0.300000012, 0.199998885),CFrame = CFrame.new(-40.2000084, 1.89947248, 1.26853383, 2.65214953e-06, -4.85777855e-06, 1.00000298, 0.258808136, -0.965930879, -4.3958421e-06, 0.965928674, 0.258808881, -1.37090694e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0705882, 0.933333, 0.831373),})
  498. Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1, 0.800000012, 0.699999988),})
  499. Blade = New("Part",modelzorz,"Blade",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999917, 0.100000016, 3.39999914),CFrame = CFrame.new(-40.2000122, 1.30930293, -0.934016109, 9.66507287e-07, -1.00000596, 1.90273795e-07, 0.965930223, -9.82820893e-07, 0.258818597, -0.258820087, 6.63599167e-08, 0.965925813),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0705882, 0.933333, 0.831373),})
  500. Mesh = New("BlockMesh",Blade,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
  501. mot = New("Weld",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818775, -1, 0, 0, 0, 0.258818775, 0.965925872),C1 = CFrame.new(-2.28024721, 2.38418579e-05, 3.81469727e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
  502. Blade = New("Part",modelzorz,"Blade",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0999998897, 0.999999821, 0.199998796),CFrame = CFrame.new(-40.2000084, 1.1097939, -2.41413832, -1.00000596, 1.90272658e-07, 9.66506832e-07, -9.82820893e-07, 0.258817554, 0.9659307, 6.63599167e-08, 0.96592629, -0.258818924),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0, 1, 1),})
  503. Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
  504. mot = New("Weld",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.258817732, 0.965926349, 0, 0.965926349, -0.258817613),C1 = CFrame.new(-3.76157427, -0.190331817, 7.62939453e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
  505. Blade = New("Part",modelzorz,"Blade",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0999998897, 0.599999785, 0.199998796),CFrame = CFrame.new(-40.2000122, 0.989097118, -2.87376833, -1.00000596, 4.33940158e-07, 8.84327847e-07, -9.82820893e-07, 0.49999994, 0.866030335, 6.63599167e-08, 0.866025567, -0.500000238),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0, 1, 1),})
  506. Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
  507. mot = New("Weld",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.499998987, 0.866025984, 0, 0.866026163, -0.499998987),C1 = CFrame.new(-4.2367816, -0.192703366, 7.62939453e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
  508. Blade = New("Part",modelzorz,"Blade",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0999998897, 0.899999857, 0.399998784),CFrame = CFrame.new(-40.2000122, 0.752844095, -3.01075649, 1.00000596, -1.90274022e-07, 9.66387688e-07, 9.82936854e-07, -0.258818716, 0.96593076, -6.63909532e-08, -0.965926468, -0.258820325),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0, 1, 1),})
  509. Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
  510. mot = New("Weld",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 1.15706708e-10, -3.10033353e-11, 1.01307851e-15, -0.258818865, -0.965926468, -1.19788332e-10, 0.965926409, -0.258819014),C1 = CFrame.new(-4.43024635, 4.61339951e-05, 7.62939453e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
  511. Handle1 = New("Part",modelzorz,"Handle1",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999917, 0.400000006, 0.199998885),CFrame = CFrame.new(-40.2000046, 1.75712657, 0.737277806, -0.707115054, -0.707107127, -8.20886271e-07, 0.68301028, -0.683021247, 0.258819044, -0.183013171, 0.183014363, 0.965925753),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0705882, 0.933333, 0.831373),})
  512. Mesh = New("BlockMesh",Handle1,"Mesh",{Scale = Vector3.new(1, 1, 0.400000006),})
  513. mot = New("Weld",Handle1,"mot",{Part0 = Handle1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707111597, 0.683007956, -0.183012307, -0.707102239, -0.683017492, 0.183013409, -1.01115427e-06, 0.258819193, 0.965925813),C1 = CFrame.new(-0.54999578, 2.62260437e-06, 3.81469727e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
  514. hitbox = New("Part",modelzorz,"Hitbox",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999917, 0.100000016, 4.29999828),CFrame = CFrame.new(-40.2000084, 1.19283509, -1.36868203, 0, -1, 0, 0.965925872, 0, 0.258818775, -0.258818775, 0, 0.965925872),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0705882, 0.933333, 0.831373),})
  515. Mesh = New("BlockMesh",hitbox,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
  516. mot = New("Weld",hitbox,"mot",{Part0 = hitbox,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818775, -1, 0, 0, 0, 0.258818775, 0.965925872),C1 = CFrame.new(-2.73024631, 2.83718109e-05, 7.62939453e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
  517.  
  518. local modelzorz2=it("Model",Character)
  519. modelzorz2.Name="Sheath"
  520.  
  521. Sheath = New("Part",modelzorz2,"Sheath",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.599999905, 0.400000006, 3.19999957),CFrame = CFrame.new(-41.2000008, 1.33448899, -0.857201993, 0, -1, 0, 0.965925872, 0, 0.258818984, -0.258818984, 0, 0.965925872),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
  522. Mesh = New("BlockMesh",Sheath,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
  523. mot = New("Weld",Sheath,"mot",{Part0 = Sheath,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),C1 = CFrame.new(-0.599998474, 0.334478617, 0.757201672, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  524. Sheath2 = New("Part",modelzorz2,"Sheath2",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.599999905, 0.400000006, 3.09999967),CFrame = CFrame.new(-41.2000008, 1.32154906, -0.905498028, 0, -1, 0, 0.965925872, 0, 0.258818984, -0.258818984, 0, 0.965925872),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0156863, 0.686275, 0.92549),})
  525. Mesh = New("BlockMesh",Sheath2,"Mesh",{Scale = Vector3.new(0.600000024, 0.75999999, 1),})
  526. mot = New("Weld",Sheath2,"mot",{Part0 = Sheath2,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),C1 = CFrame.new(9.53674316e-07, 0, -0.0499994755, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
  527. Sheath1 = New("Part",modelzorz2,"Sheath1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 1.29999995, 0.699998796),CFrame = CFrame.new(-41.2000008, 0.703852952, -3.01759815, 1, 0, 1.1920929e-07, -1.15147344e-07, -0.258818865, 0.965925932, 3.08535988e-08, -0.965925932, -0.258818865),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
  528. Mesh = New("SpecialMesh",Sheath1,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
  529. mot = New("Weld",Sheath1,"mot",{Part0 = Sheath1,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 1, -1.15147337e-07, 3.08535988e-08, 0, -0.258818865, -0.965925872, 1.1920929e-07, 0.965925872, -0.258818865),C1 = CFrame.new(-0.0499961376, 0, -2.25000286, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
  530. Sheath1 = New("Part",modelzorz2,"Sheath1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 0.799999833, 0.399998784),CFrame = CFrame.new(-41.2000008, 0.620673895, -1.99436212, -1, -1.1868978e-09, 1.69256964e-09, 1.99513539e-09, -0.342020988, 0.939691901, -5.33113442e-10, 0.939691901, 0.342020988),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
  531. Mesh = New("SpecialMesh",Sheath1,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
  532. mot = New("Weld",Sheath1,"mot",{Part0 = Sheath1,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, -1, 1.99513517e-09, -5.33113442e-10, -1.1868978e-09, -0.342020959, 0.939691842, 1.69256964e-09, 0.939691842, 0.342020959),C1 = CFrame.new(-0.395173788, 0, -1.28316116, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
  533. Sheath1 = New("Part",modelzorz2,"Sheath1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 0.899999857, 0.399998784),CFrame = CFrame.new(-41.2000008, 1.03275704, -2.79913402, 1, 8.51018589e-10, -2.31827668e-10, 2.31826017e-10, 1.74343586e-06, 1.0000006, 8.51018644e-10, -1.0000006, 1.60932541e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
  534. Mesh = New("SpecialMesh",Sheath1,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
  535. mot = New("Weld",Sheath1,"mot",{Part0 = Sheath1,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 1, 2.31825989e-10, 8.51018589e-10, 8.51018589e-10, 1.77323818e-06, -1.0000006, -2.31827668e-10, 1.00000048, 1.63912773e-06),C1 = CFrame.new(0.211158156, 0, -1.95385635, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
  536. Sheath1 = New("Part",modelzorz2,"Sheath1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 0.699999809, 0.399998784),CFrame = CFrame.new(-41.2000008, 1.17449188, -2.46112013, 1, 7.62019836e-10, -4.44187298e-10, 2.31823505e-10, 0.258822739, 0.965924859, 8.51019644e-10, -0.965924919, 0.258822769),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
  537. Mesh = New("SpecialMesh",Sheath1,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
  538. mot = New("Weld",Sheath1,"mot",{Part0 = Sheath1,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 1, 2.31823477e-10, 8.51019588e-10, 7.62019836e-10, 0.258822769, -0.965924859, -4.44187298e-10, 0.965924799, 0.258822769),C1 = CFrame.new(0.260579109, 0, -1.59067619, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
  539. Sheath2 = New("Part",modelzorz2,"Sheath2",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 0.699999809, 0.599998772),CFrame = CFrame.new(-41.2000008, 0.829795897, -2.74076009, 1, 0, 1.1920929e-07, -1.15147344e-07, -0.258818865, 0.965925932, 3.08535988e-08, -0.965925932, -0.258818865),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0156863, 0.686275, 0.92549),})
  540. Mesh = New("SpecialMesh",Sheath2,"Mesh",{Scale = Vector3.new(0.75999999, 1, 0.600000024),MeshType = Enum.MeshType.Wedge,})
  541. mot = New("Weld",Sheath2,"mot",{Part0 = Sheath2,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 1, -1.15147337e-07, 3.08535988e-08, 0, -0.258818865, -0.965925872, 1.1920929e-07, 0.965925872, -0.258818865),C1 = CFrame.new(4.529953e-06, 0, -1.9500016, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
  542. Hole = New("Part",modelzorz2,"Hole",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.599999905, 0.400000006, 3.19999957),CFrame = CFrame.new(-41.2000008, 1.33448899, -0.857201993, 0, -1, 0, 0.965925872, 0, 0.258818984, -0.258818984, 0, 0.965925872),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  543. Mesh = New("BlockMesh",Hole,"Mesh",{Scale = Vector3.new(0.699999988, 0.25, 1.00100005),})
  544. mot = New("Weld",Hole,"mot",{Part0 = Hole,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),C1 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
  545. Hat = New("Part",Character,"Hat",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-35.3999977, 13.3999939, 12.5000019, -1, -1.02872309e-06, 1.57207148e-06, -1.02925287e-06, 1, -3.32534e-10, -1.57253714e-06, -3.42679579e-10, -0.99999994),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  546. Mesh = New("SpecialMesh",Hat,"Mesh",{MeshId = "http://www.roblox.com/asset/?id= ",TextureId = "http://www.roblox.com/asset/?id= ",MeshType = Enum.MeshType.FileMesh,})
  547. mot = New("Weld",Hat,"mot",{Part0 = Hat,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, -1.02925287e-06, -1.57253714e-06, -1.02872309e-06, 1, -3.42679579e-10, 1.57207148e-06, -3.32534e-10, -0.99999994),C1 = CFrame.new(0, -1.09999275, -1.90734863e-06, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  548.  
  549. wld1 = New("Weld",Sheath,"mot",{Part0 = Sheath,Part1 = Handle,})--C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),C1 = CFrame.new(-2.19953251, -0.00442254543, 1.14440918e-05, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
  550.  
  551. --[[local Humanoid=Instance.new("Humanoid")
  552. Humanoid.Parent=Character
  553. TehHealth=500
  554. --TehHealth=2000
  555. Humanoid.MaxHealth=TehHealth
  556. Humanoid.Health=TehHealth
  557. coroutine.resume(coroutine.create(function()
  558. for i=1,20 do
  559. wait()
  560. Humanoid.Health=Humanoid.MaxHealth
  561. end
  562. Humanoid:TakeDamage(1)
  563. end))]]
  564. local Stats=Instance.new("BoolValue")
  565. Stats.Name="Stats"
  566. Stats.Parent=Character
  567. local Atk=Instance.new("NumberValue")
  568. Atk.Name="Damage"
  569. Atk.Parent=Stats
  570. Atk.Value=1
  571. local Def=Instance.new("NumberValue")
  572. Def.Name="Defense"
  573. Def.Parent=Stats
  574. Def.Value=1
  575. local Mvmt=Instance.new("NumberValue")
  576. Mvmt.Name="Movement"
  577. Mvmt.Parent=Stats
  578. Mvmt.Value=1
  579. local Block=Instance.new("BoolValue")
  580. Block.Name="Block"
  581. Block.Parent=Stats
  582. Block.Value=false
  583. local Stun=Instance.new("NumberValue")
  584. Stun.Name="Stun"
  585. Stun.Parent=Stats
  586. Stun.Value=0
  587. local StunT=Instance.new("NumberValue")
  588. StunT.Name="StunThreshold"
  589. StunT.Parent=Stats
  590. StunT.Value=100
  591. local Rooted=Instance.new("BoolValue")
  592. Rooted.Name="Rooted"
  593. Rooted.Parent=Stats
  594. Rooted.Value=false
  595. local Stunned=Instance.new("BoolValue")
  596. Stunned.Name="Stunned"
  597. Stunned.Parent=Stats
  598. Stunned.Value=false
  599. local Stagger=Instance.new("BoolValue")
  600. Stagger.Name="Stagger"
  601. Stagger.Parent=Stats
  602. Stagger.Value=false
  603. local StaggerHit=Instance.new("BoolValue")
  604. StaggerHit.Name="StaggerHit"
  605. StaggerHit.Parent=Stats
  606. StaggerHit.Value=false
  607. local RecentEnemy=Instance.new("ObjectValue")
  608. RecentEnemy.Name="RecentEnemy"
  609. RecentEnemy.Parent=Stats
  610. RecentEnemy.Value=nil
  611. local Decrease=Instance.new("BoolValue")
  612. Decrease.Name="Decrease"
  613. Decrease.Parent=Stats
  614. Decrease.Value=false
  615. local mana=Instance.new("NumberValue")
  616. mana.Name="Mana"
  617. mana.Parent=Stats
  618. mana.Value=0
  619. local boss=Instance.new("BoolValue")
  620. boss.Name="Boss"
  621. boss.Parent=Stats
  622. boss.Value=true
  623. local alive=Instance.new("BoolValue")
  624. alive.Name="Alive"
  625. alive.Parent=Character
  626. alive.Value=true
  627. local btarget=Instance.new("ObjectValue")
  628. btarget.Name="Target"
  629. btarget.Parent=Stats
  630. btarget.Value=nil
  631. local passive1=Instance.new("NumberValue",Decrease)
  632. passive1.Name="DecreaseAtk"
  633. passive1.Value=-.8
  634. local passive2=Instance.new("NumberValue",Decrease)
  635. passive2.Name="DecreaseDef"
  636. passive2.Value=.1
  637. local passive3=Instance.new("NumberValue",Decrease)
  638. passive3.Name="DecreaseMvmt"
  639. passive3.Value=.3
  640.  
  641. so = function(id,par,vol,pit)
  642. local sou = Instance.new("Sound",par or workspace)
  643. sou.Volume=0
  644. sou.Pitch=pit or 1
  645. sou.SoundId="http://www.roblox.com/asset/?id= "..id
  646. --swait()
  647. sou:play()
  648. game:GetService("Debris"):AddItem(sou,6)
  649. end
  650.  
  651. local function CFrameFromTopBack(at, top, back)
  652. local right = top:Cross(back)
  653. return CFrame.new(at.x, at.y, at.z,
  654. right.x, top.x, back.x,
  655. right.y, top.y, back.y,
  656. right.z, top.z, back.z)
  657. end
  658.  
  659. function Triangle(a, b, c)
  660. local edg1 = (c-a):Dot((b-a).unit)
  661. local edg2 = (a-b):Dot((c-b).unit)
  662. local edg3 = (b-c):Dot((a-c).unit)
  663. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  664. a, b, c = a, b, c
  665. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  666. a, b, c = b, c, a
  667. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  668. a, b, c = c, a, b
  669. else
  670. assert(false, "unreachable")
  671. end
  672.  
  673. local len1 = (c-a):Dot((b-a).unit)
  674. local len2 = (b-a).magnitude - len1
  675. local width = (a + (b-a).unit*len1 - c).magnitude
  676.  
  677. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  678.  
  679. local list = {}
  680.  
  681. if len1 > 0.01 then
  682. local w1 = Instance.new('WedgePart', m)
  683. w1.Name = "Triangle"
  684. game:GetService("Debris"):AddItem(w1,5)
  685. w1.Material = "SmoothPlastic"
  686. w1.FormFactor = 'Custom'
  687. w1.BrickColor = BrickColor.new("Teal")
  688. w1.Transparency = 0
  689. w1.Reflectance = 0
  690. w1.Material = "SmoothPlastic"
  691. w1.CanCollide = false
  692. NoOutline(w1)
  693. local sz = Vector3.new(0.2, width, len1)
  694. w1.Size = sz
  695. local sp = Instance.new("SpecialMesh",w1)
  696. sp.MeshType = "Wedge"
  697. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  698. w1:BreakJoints()
  699. w1.Anchored = true
  700. w1.Parent = workspace
  701. w1.Transparency = 0.7
  702. table.insert(Effects,{w1,"Disappear",.05})
  703. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  704. table.insert(list,w1)
  705. end
  706.  
  707. if len2 > 0.01 then
  708. local w2 = Instance.new('WedgePart', m)
  709. w2.Name = "Triangle"
  710. game:GetService("Debris"):AddItem(w2,5)
  711. w2.Material = "SmoothPlastic"
  712. w2.FormFactor = 'Custom'
  713. w2.BrickColor = BrickColor.new("Teal")
  714. w2.Transparency = 0
  715. w2.Reflectance = 0
  716. w2.Material = "SmoothPlastic"
  717. w2.CanCollide = false
  718. NoOutline(w2)
  719. local sz = Vector3.new(0.2, width, len2)
  720. w2.Size = sz
  721. local sp = Instance.new("SpecialMesh",w2)
  722. sp.MeshType = "Wedge"
  723. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  724. w2:BreakJoints()
  725. w2.Anchored = true
  726. w2.Parent = workspace
  727. w2.Transparency = 0.7
  728. table.insert(Effects,{w2,"Disappear",.05})
  729. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  730. table.insert(list,w2)
  731. end
  732. return unpack(list)
  733. end
  734. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  735. local prt = part(3,workspace,0,0,brickcolor,"Effect",vt(.5,.5,.5))
  736. prt.Anchored = true
  737. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  738. local msh = mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  739. local num = math.random(10, 50) / 1000
  740. game:GetService("Debris"):AddItem(prt, 10)
  741. table.insert(Effects, {
  742. prt,
  743. "Shatter",
  744. num,
  745. prt.CFrame,
  746. math.random() - math.random(),
  747. 0,
  748. math.random(50, 100) / 100
  749. })
  750. end
  751. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  752. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  753. prt.Anchored=true
  754. prt.CFrame=cframe
  755. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  756. game:GetService("Debris"):AddItem(prt,3)
  757. if Type==1 or Type==nil then
  758. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  759. elseif Type==2 then
  760. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  761. end
  762. end
  763.  
  764. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  765. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  766. prt.Anchored=true
  767. prt.CFrame=cframe
  768. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  769. game:GetService("Debris"):AddItem(prt,3)
  770. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  771. end
  772.  
  773. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  774. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  775. prt.Anchored=true
  776. prt.CFrame=cframe
  777. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  778. game:GetService("Debris"):AddItem(prt,3)
  779. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  780. end
  781.  
  782. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  783. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  784. prt.Anchored=true
  785. prt.CFrame=cframe*cf(x2,y2,z2)
  786. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  787. game:GetService("Debris"):AddItem(prt,3)
  788. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  789. end
  790.  
  791. function MagicWave2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  792. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  793. prt.Anchored=true
  794. prt.CFrame=cframe
  795. local msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
  796. game:GetService("Debris"):AddItem(prt,10)
  797. table.insert(Effects,{prt,"Cylinder3",delay,x3,y3,z3,msh})
  798. end
  799.  
  800. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  801. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  802. prt.Anchored=true
  803. prt.CFrame=cframe
  804. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  805. game:GetService("Debris"):AddItem(prt,3)
  806. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  807. end
  808.  
  809. function MagicCylinder3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  810. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  811. prt.Anchored=true
  812. prt.CFrame=cframe
  813. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  814. game:GetService("Debris"):AddItem(prt,3)
  815. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  816. end
  817.  
  818. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  819. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  820. prt.Anchored=true
  821. prt.CFrame=cframe
  822. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  823. game:GetService("Debris"):AddItem(prt,3)
  824. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  825. end
  826.  
  827. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  828. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(.2,.2,.2))
  829. prt.Anchored=true
  830. prt.CFrame=cframe
  831. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  832. game:GetService("Debris"):AddItem(prt,3)
  833. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  834. end
  835.  
  836. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  837. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  838. prt.Anchored=true
  839. prt.CFrame=cframe
  840. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  841. game:GetService("Debris"):AddItem(prt,3)
  842. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  843. end
  844.  
  845. function StartAnim()
  846. attack=true
  847. --workspace.CurrentCamera.CameraSubject=Head
  848. hitfloor2,posfloor2=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,500,Character)
  849. if hitfloor2~=nil then
  850. RootPart.CFrame=cf(posfloor2)*cf(0,5,0)
  851. end
  852. wld1.C0=euler(-1.57,0,0)*cf(0,1.8,-1.5)
  853. Neck.C0=necko*euler(0,1,0)*euler(-.3,0,0)
  854. RootJoint.C0=euler(0,0,0)*cf(0,.4,0)
  855. RW.C0=cf(1.5,0.5,0)*euler(0,0,.5)*euler(0,0,0)
  856. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  857. LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1)*euler(0,0,0)
  858. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  859. RH.C0=cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,0,-.05)
  860. LH.C0=cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,.1)
  861. swait(20)
  862. Reload()
  863. attack=false
  864. end
  865.  
  866. function Reload()
  867. for i=0,1,0.05 do
  868. swait()
  869. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.2)
  870. Neck.C0=clerp(Neck.C0,necko*euler(0,.2,0)*euler(-.3,0,0),.2)
  871. RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.2)
  872. RW.C0=clerp(RW.C0,cf(1.1,0.4,-.7)*euler(1.5,0,-.6)*euler(0,1.2,0),.2)
  873. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  874. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.7)*euler(1.1,0,.8)*euler(0,0,0),.2)
  875. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  876. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.2)
  877. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.2)
  878. end
  879. so("10209881",prt5,1,1)
  880. for i=0,1,0.05 do
  881. swait()
  882. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.2)
  883. Neck.C0=clerp(Neck.C0,necko*euler(0,.3,0)*euler(-.2,0,0),.2)
  884. RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.2)
  885. RW.C0=clerp(RW.C0,cf(.9,0.4,-.7)*euler(1.8,0,-.9)*euler(0,1.2,0),.2)
  886. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  887. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.7)*euler(1.1,0,.8)*euler(0,0,0),.2)
  888. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  889. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.2)
  890. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.2)
  891. end
  892. for i=0,1,0.05 do
  893. swait()
  894. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.2)
  895. Neck.C0=clerp(Neck.C0,necko*euler(0,.3,0)*euler(-.2,0,0),.2)
  896. RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.2)
  897. RW.C0=clerp(RW.C0,cf(1.1,0.4,-.7)*euler(1.5,0,-.6)*euler(0,1.2,0),.2)
  898. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  899. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.7)*euler(1.1,0,.8)*euler(0,0,0),.2)
  900. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  901. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.2)
  902. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.2)
  903. end
  904. end
  905.  
  906. local BodGy=Instance.new("BodyGyro")
  907. BodGy.maxTorque=Vector3.new(0,4e+005,0)
  908. BodGy.P=2000
  909. BodGy.D=100
  910. BodGy.Name="SticiaGyro"
  911. CF=RootPart.CFrame
  912. BodGy.Parent=RootPart
  913. BodGy.cframe=CF
  914.  
  915. wait()
  916. print("Sticia spawned.")
  917.  
  918. function StunAnim()
  919. attack=true
  920. Stunned.Value=true
  921. showDamage(Character,"Stunned","Interrupt")
  922. local dec=Instance.new("NumberValue",Decrease)
  923. dec.Name="DecreaseMvmt"
  924. dec.Value=10
  925. for i = 0, 1, 0.3 do
  926. swait()
  927. PlayAnimationFromTable({
  928. CFrame.new(0, 0, 0, -0.989992499, -0.0280361772, -0.138307661, 1.64334025e-07, 0.980066597, -0.19866927, 0.141120613, -0.196681112, -0.970258534) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  929. CFrame.new(3.57627869e-07, 1.49003351, -0.0993347019, 0.87758261, -2.33123387e-09, 0.479425579, -0.095247142, 0.980066597, 0.174348697, -0.469869018, -0.198669285, 0.860089421) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  930. CFrame.new(1.98177886, 0.368916392, 0.0265715867, 0.267499089, -0.963558137, 5.96046448e-08, 0.944351137, 0.262166917, 0.198669344, -0.191429451, -0.0531438887, 0.980066776) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  931. CFrame.new(-1.00529039, 0.251174599, -0.787523448, 0.916459501, -0.389418304, -0.0919530243, 0.125345141, 0.497651309, -0.858272552, 0.379987657, 0.775046289, 0.504888892) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  932. CFrame.new(0.958246112, -1.43839157, -0.295145094, -0.140891492, -0.458245724, 0.877587914, 0.259346902, 0.838391423, 0.479415357, -0.955452323, 0.295145303, 0.000722527504) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  933. CFrame.new(-0.698669672, -1.78006673, 0.000158040493, 0.000796169043, 0.198669255, -0.980066359, 2.60770321e-08, 0.980066597, 0.198669314, 0.999999881, -0.000158160925, 0.000780194998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  934. }, .3, false)
  935. end
  936. for i = 0, 1, 0.3 do
  937. swait()
  938. PlayAnimationFromTable({
  939. CFrame.new(-0.049157355, -0.358602226, -0.344849408, -0.989992261, -0.101225495, -0.0983273685, -3.23392051e-08, 0.696764112, -0.717300236, 0.141120076, -0.71012187, -0.689790964) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  940. CFrame.new(-2.60770321e-07, 1.47767019, -0.147753879, 0.877582073, -2.98023224e-08, 0.479425222, -0.141673803, 0.955340385, 0.259332091, -0.458014369, -0.295507491, 0.838389575) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  941. CFrame.new(1.98177648, 0.40680635, 0.095938459, 0.267501116, -0.963556945, 1.10268593e-06, 0.671372712, 0.186386347, 0.717299461, -0.691159427, -0.191877693, 0.69676435) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  942. CFrame.new(-0.841339767, 0.373754025, -0.724691212, 0.693263769, -0.717317998, -0.0695643127, 0.16559422, 0.252493203, -0.953323483, 0.701400518, 0.649385095, 0.293828428) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  943. CFrame.new(0.896139264, -1.32430112, -0.564324439, -0.270047665, -0.396137089, 0.87758261, 0.495518774, 0.7243011, 0.479426086, -0.825552821, 0.564325333, 0.00069668889) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  944. CFrame.new(-0.42311722, -1.56103909, 0.644129694, -0.0636428595, -0.0768834427, -0.994997025, 0.64097774, 0.761039615, -0.09980914, 0.764903784, -0.644129753, 0.000848561525) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  945. }, .3, false)
  946. end
  947. for i = 0, 1, 0.3 do
  948. swait()
  949. PlayAnimationFromTable({
  950. CFrame.new(-0.000560329005, -1.99766433, -0.00393220689, -0.989988863, -0.141120315, -0.000280523673, -8.22125003e-07, 0.0019953521, -0.999996185, 0.141120553, -0.989988565, -0.00197200663) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  951. CFrame.new(-2.10106373e-06, 1.47765911, -0.147766709, 0.542267144, -3.27825546e-06, -0.840197563, 0.248290822, 0.955335617, 0.160244569, 0.802674174, -0.295517474, 0.518050015) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  952. CFrame.new(1.98175132, 0.406811565, 0.0959433764, 0.267496616, -0.963551521, -2.98023224e-08, 0.671317458, 0.186368391, 0.717351019, -0.691214025, -0.191892117, 0.696701765) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  953. CFrame.new(-1.85731494, 0.373431265, -0.326122075, 0.69500041, 0.715610862, -0.0697162151, -0.351065189, 0.253130376, -0.901481032, -0.627465308, 0.651007295, 0.427161932) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  954. CFrame.new(0.66446209, -1.40886486, -0.564479828, -0.111510336, -0.164483458, 0.980041862, 0.553371668, 0.80887568, 0.198721677, -0.825426996, 0.56449002, 0.000823596492) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  955. CFrame.new(-0.595084071, -1.75052953, 0.29569602, 0.0302553326, 0.0950923562, -0.995001316, 0.294130892, 0.95053786, 0.0997870862, 0.955280066, -0.295688361, 0.000788042438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  956. }, .3, false)
  957. end
  958. local gairost=Instance.new("BodyGyro")
  959. gairost.Parent=RootPart
  960. gairost.maxTorque=Vector3.new(4e+005,0,4e+005)*math.huge
  961. gairost.P=20e+003
  962. gairost.cframe=cf(0,0,0)
  963. for i = 0, 1, 0.1 do
  964. swait()
  965. PlayAnimationFromTable({
  966. CFrame.new(-3.40942188e-06, -2.49999952, -0.0019912431, -0.999998927, -0.00159263611, -1.26809755e-06, -2.91038305e-11, 0.000796253444, -0.999999762, 0.00159245729, -0.999998569, -0.000796306645) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  967. CFrame.new(2.98118209e-07, 1.50000083, 2.00472286e-07, 0.000796425506, 1.1920929e-07, -0.999999881, 5.45405783e-08, 1.00000024, -1.49011612e-07, 0.999999702, 5.4238626e-08, 0.000796425389) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  968. CFrame.new(1.98880923, 0.40064168, 0.034583699, 0.0707328916, -0.977613211, 0.198168695, 0.000792048872, 0.198720574, 0.980056584, -0.997495592, -0.0691657439, 0.0148300845) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  969. CFrame.new(-2.00000906, 0.499978811, -0.000398084521, 0.000791076571, 1.00000167, -3.33786011e-06, -0.0707348287, 5.12003899e-05, -0.997496963, -0.997496724, 0.000791037397, 0.0707330182) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  970. CFrame.new(0.795521617, -1.95533705, 0.000233329833, -0.457320899, -0.295520812, 0.838764668, -0.141680807, 0.955336452, 0.259343952, -0.877943575, -0.000233375424, -0.478764772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  971. CFrame.new(-0.599834263, -1.99500465, 7.92965293e-05, 0.198457003, 0.0998335481, -0.975012064, -0.0198337585, 0.995004416, 0.097843349, 0.979909062, -7.94311345e-05, 0.19944559) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  972. }, .3, false)
  973. end
  974. for i=1,150 do
  975. swait()
  976. gairost.cframe=RootPart.CFrame
  977. end
  978. for i = 0, 1, 0.1 do
  979. swait()
  980. Stun.Value=0
  981. gairost.cframe=RootPart.CFrame
  982. PlayAnimationFromTable({
  983. CFrame.new(0.81780076, -1.68294537, -0.706329942, -0.653645933, 0.636826098, 0.408900231, -9.225094e-07, 0.540300608, -0.84147203, -0.756800413, -0.550025225, -0.353164703) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  984. CFrame.new(2.56018126e-07, 1.50000024, -4.73648925e-08, 0.98006779, 1.49011612e-08, 0.198662654, 2.98023224e-08, 1, -2.98023224e-08, -0.198662758, 0, 0.98006773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  985. CFrame.new(1.91234863, 0.400455028, 0.26468581, 0.432599187, -0.824698448, -0.364321291, 0.824985623, 0.199090198, 0.52892518, -0.363671064, -0.529372334, 0.766490698) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  986. CFrame.new(-1.40066779, 0.322432995, -0.456730485, 0.98006773, -0.198662803, 9.68575478e-07, 0.0719877779, 0.355134219, -0.93203938, 0.185161144, 0.913461804, 0.362356961) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  987. CFrame.new(0.594106376, -1.93509674, -0.341670871, -0.53629458, -0.0941065028, 0.838768125, 0.241528273, 0.935096323, 0.259343415, -0.808734775, 0.341670662, -0.478757739) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  988. CFrame.new(-0.38694495, -1.55429649, -0.175390571, 0.191234976, -0.113055296, -0.975011468, 0.826548398, 0.554296315, 0.0978437364, 0.529383361, -0.824605286, 0.199446559) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  989. }, .3, false)
  990. end
  991. gairost.Parent=nil
  992. dec.Parent=nil
  993. Stun.Value=0
  994. Stunned.Value=false
  995. attack=false
  996. for i=1,10 do
  997. swait()
  998. Stun.Value=0
  999. end
  1000. end
  1001.  
  1002. --[[
  1003. Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(0,0,0),.3)
  1004. RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.3)
  1005. RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.3)
  1006. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1007. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.3)
  1008. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1009. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.3)
  1010. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.3)
  1011. ]]
  1012.  
  1013. function SpinShot()
  1014. attack=true
  1015. for i=0,1,0.1 do
  1016. swait()
  1017. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  1018. Neck.C0=clerp(Neck.C0,necko*euler(0,.7,0)*euler(-.1,0,0),.3)
  1019. RootJoint.C0=clerp(RootJoint.C0,euler(0,1,0)*cf(0,.2,-.8),.3)
  1020. RW.C0=clerp(RW.C0,cf(1.1,0.4,-.7)*euler(1.2,0,-.4)*euler(0,-1.57,0),.3)
  1021. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1022. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,.8)*euler(0,0,0),.3)
  1023. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1024. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.2,0,0),.3)
  1025. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.7,-.1),.3)
  1026. end
  1027. n=0
  1028. so("203691492",prt5,.2,1.8)
  1029. hitboxing=true
  1030. hitbox.Parent=modelzorz
  1031. hitbox.Size=vt(1,6,1)
  1032. hitboxCF=prt5.CFrame
  1033. hitbox.CFrame=hitboxCF
  1034. for i=0,1,0.1 do
  1035. swait()
  1036. hitboxCF=prt5.CFrame
  1037. hitbox.CFrame=hitboxCF
  1038. MagniDamage(hitbox,5,3,5,math.random(20,30),"Normal",RootPart,.2,2,math.random(6,8),nil,true,false)
  1039. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  1040. Neck.C0=clerp(Neck.C0,necko*euler(0,.7,0)*euler(-.1,0,0),.3)
  1041. RootJoint.C0=clerp(RootJoint.C0,euler(0,1,0)*cf(0,.2,-.8),.3)
  1042. RootJoint.C1=euler(0,n,0)
  1043. n=n+.6
  1044. RW.C0=clerp(RW.C0,cf(1.1,0.4,-.7)*euler(1.2,0,-.4)*euler(0,-1.57,0),.3)
  1045. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1046. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1)*euler(0,0,0),.3)
  1047. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1048. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.2,0,0),.3)
  1049. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.7,-.1),.3)
  1050. end
  1051. local thePOS=nil
  1052. target,distance=findNearestTorso(Torso.Position)
  1053. if target~=nil then
  1054. thePOS=target.Position
  1055. end
  1056. for i=0,1,0.1 do
  1057. swait()
  1058. Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(0,0,0),.3)
  1059. RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.3)
  1060. RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.3)
  1061. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.5)*euler(1.4,0,.4)*euler(0,-1.57,0),.3)
  1062. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1063. LW.C0=clerp(LW.C0,cf(-.2,0.3,-.5)*euler(1.57,0,1)*euler(0,0,0),.3)
  1064. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1065. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0),.3)
  1066. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0),.3)
  1067. end
  1068. if math.random(1,5)==1 then
  1069. target,distance=findNearestTorso(Torso.Position)
  1070. if target~=nil then
  1071. thePOS=target.Position
  1072. end
  1073. end
  1074. hitboxing=false
  1075. target,distance=findNearestTorso(Torso.Position)
  1076. if target~=nil and thePOS~=nil then
  1077. ref=part(3,workspace,0,1,BrickColor.new("White"),"Reference",vt())
  1078. ref.Anchored=true
  1079. ref.CFrame=prt6.CFrame*cf(0,-1.2,0)
  1080. game:GetService("Debris"):AddItem(ref,1)
  1081. so("10209875",ref,1,1)
  1082. --tehCF=cf(ref.Position,target.Position)
  1083. spread=vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*(ref.Position-target.Position).magnitude/100
  1084. tehCF=cf((ref.Position+thePOS)/2,thePOS+spread)
  1085. hit,pos=rayCast(ref.Position,tehCF.lookVector,999,Character)
  1086. local mag=(ref.Position-pos).magnitude
  1087. MagicCylinder3(BrickColor.new("Bright yellow"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),.6,mag*5,.6,.01,.01,.01,0.02)
  1088. MagicRing(BrickColor.new("Bright yellow"),ref.CFrame*euler(1.57,0,0),.5,.5,.5,.1,.1,.1,.05)
  1089. MagicWave2(BrickColor.new("Bright yellow"),ref.CFrame*euler(3.14,0,0),.2,.2,.2,.05,.1,.05,.05)
  1090. if hit~=nil then
  1091. snipe=true
  1092. Damagefunc(hit,8,20,math.random(10,15),"Normal",RootPart,0,1,math.random(5,7),nil,nil,true)
  1093. snipe=false
  1094. end
  1095. Torso.Velocity=RootPart.CFrame.lookVector*-80
  1096. for i=0,1,0.03 do
  1097. swait()
  1098. Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(.2,0,0),.2)
  1099. RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.2)
  1100. RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.2)
  1101. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.6)*euler(1.4,0,0)*euler(0,-1.57,0)*euler(0,0,-.7),.2)
  1102. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1103. LW.C0=clerp(LW.C0,cf(-.6,0.5,-.5)*euler(1.57,0,1)*euler(.3,0,0),.3)
  1104. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1105. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0)*euler(0,0,.2),.2)
  1106. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0)*euler(.2,0,0),.2)
  1107. end
  1108. Reload()
  1109. end
  1110. RootJoint.C1=euler(0,0,0)
  1111. attack=false
  1112. end
  1113. GetDist = function(Part1, Part2, magni)
  1114. local targ = Part1.Position - Part2.Position
  1115. local mag = targ.magnitude
  1116. if mag <= magni then
  1117. return true
  1118. else
  1119. return false
  1120. end
  1121. end
  1122. effect2 = function(Color, Ref, LP, P1, returnn)
  1123. if LP == nil or P1 == nil then
  1124. return
  1125. end
  1126. local effectsmsh = Instance.new("CylinderMesh")
  1127. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  1128. effectsmsh.Name = "Mesh"
  1129. local effectsg = Instance.new("Part")
  1130. NoOutline(effectsg)
  1131. effectsg.formFactor = 3
  1132. effectsg.CanCollide = false
  1133. effectsg.Name = "Eff"
  1134. effectsg.Locked = true
  1135. effectsg.Anchored = true
  1136. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  1137. effectsg.Parent = workspace
  1138. effectsmsh.Parent = effectsg
  1139. effectsg.BrickColor = BrickColor.new(Color)
  1140. effectsg.Reflectance = Ref
  1141. local point1 = P1
  1142. local mg = (LP.p - point1.p).magnitude
  1143. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  1144. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  1145. effectsmsh.Scale = Vector3.new(0.6, 1, 0.6)
  1146. game:GetService("Debris"):AddItem(effectsg, 2)
  1147. if returnn then
  1148. return effectsg
  1149. end
  1150. if not returnn then
  1151. table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.01, 0, 0.01, effectsmsh})
  1152. end
  1153. end
  1154. function Precise()
  1155. attack=true
  1156. for i = 0, 2, 0.1 do
  1157. swait()
  1158. PlayAnimationFromTable({
  1159. CFrame.new(0.0611368529, -0.257900625, 0.0436510965, 0.347360253, -9.16138845e-08, -0.937731802, 0.188686728, 0.97955513, 0.0698942095, 0.918550611, -0.20121491, 0.340254277) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1160. CFrame.new(-7.40407359e-06, 1.4999963, -7.50456252e-07, 0.348898262, -9.23871994e-07, 0.937160611, -2.54312181e-06, 1, 1.93715096e-06, -0.937160552, -3.07708979e-06, 0.348898232) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1161. CFrame.new(0.481282055, 0.652927518, -0.637574792, 0.158423424, 0.67579174, 0.719866395, 0.986862183, -0.131784737, -0.093466036, 0.0317038149, 0.72521615, -0.687791109) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  1162. CFrame.new(-1.66740441, 0.708322048, -0.252847135, -0.166986838, 0.935331047, -0.311883241, -0.979717374, -0.192946553, -0.05408746, -0.110766463, 0.296525538, 0.948579669) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  1163. CFrame.new(0.80642724, -2.01029491, 0.11350587, 0.947134137, -0.320239782, -0.019582808, 0.320239782, 0.939880073, 0.118624881, -0.0195829868, -0.118624851, 0.992746055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1164. CFrame.new(-0.78374362, -1.69975388, -0.15899235, 0.751372516, -0.0540148914, 0.657663763, 0.0274387598, 0.998339653, 0.0506466478, -0.659307539, -0.0200090334, 0.75160718) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1165. }, .15, false)
  1166. wld1.C0 = clerp(wld1.C0, CFrame.new(2.99374869e-06, -0.618395329, 0.376671195, -2.12080777e-05, -2.69711018e-06, 1.0000006, 0.847904086, -0.530150712, 1.65477395e-05, 0.530150115, 0.847904801, 1.3532117e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1167. end
  1168. local thePOS=nil
  1169. target,distance=findNearestTorso(Torso.Position)
  1170. if target~=nil then
  1171. thePOS=target.Position
  1172. target = findNearestTorso(RootPart.Position)
  1173. if GetDist(RootPart, target, 50) == true then
  1174. RootPart.CFrame = cf(RootPart.Position, target.Position)
  1175.  
  1176. so("199146359", Handle, 1, 1)
  1177. local Point = Handle.CFrame * cf(0, 0, 0)
  1178. local Point2 = hitbox.CFrame * cf(0, 0, 0)
  1179. RootPart.CFrame = cf(RootPart.Position, target.Position)
  1180. RootPart.CFrame = RootPart.CFrame * cf(0, 0, -40)
  1181. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1182. ref.Anchored = true
  1183. ref.CFrame = RootPart.CFrame * cf(0, 50, 0)
  1184. game:GetService("Debris"):AddItem(ref, 1)
  1185. hit = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  1186. if hit ~= hitfloor then
  1187. RootPart.CFrame = cf(pos) * cf(0, 1, 0)
  1188. RootPart.CFrame = cf(RootPart.Position, target.Position) * euler(0, 3.14, 0)
  1189. end
  1190. Damagefunc(target, 9, 15, 0, "Shatter", RootPart, 0, 1, (math.random(5, 8)), nil, nil, true)
  1191. local LastPoint = Handle.CFrame * cf(0, 0, 0)
  1192. local LastPoint2 = hitbox.CFrame * cf(0, 0, 0)
  1193. effect2("White", 0, LastPoint, Point)
  1194. effect2("White", 0, LastPoint2, Point2)
  1195. hitnum = math.random(1, 6)
  1196. if hitnum == 1 then
  1197. so("199149137", hit, 1, 1)
  1198. elseif hitnum == 2 then
  1199. so("199149186", hit, 1, 1)
  1200. elseif hitnum == 3 then
  1201. so("199149221", hit, 1, 1)
  1202. elseif hitnum == 4 then
  1203. so("199149235", hit, 1, 1)
  1204. elseif hitnum == 5 then
  1205. so("199149269", hit, 1, 1)
  1206. elseif hitnum == 6 then
  1207. so("199149297", hit, 1, 1)
  1208. end
  1209. for i = 0, 1.5, 0.1 do
  1210. swait()
  1211. PlayAnimationFromTable({
  1212. CFrame.new(0.0694815814, -0.214549556, 0.0366792493, -0.0248994324, -0.0592816435, 0.997930646, 0.00527888024, 0.998226404, 0.0594311394, -0.999673724, 0.00674663484, -0.0245414227) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1213. CFrame.new(0.0742943436, 1.56963074, 0.0360269733, -0.104094937, 0.188081101, -0.976621628, -0.0851342827, 0.976667106, 0.197164029, 0.990916908, 0.103667751, -0.0856539384) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1214. CFrame.new(1.71172285, 0.533444285, -0.0333994888, 0.066453293, -0.99759537, 0.0196847059, 0.988102734, 0.0630529895, -0.14027673, 0.138698235, 0.0287723504, 0.989916623) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  1215. CFrame.new(-1.63649857, 0.447606951, -0.372464895, 0.181963906, 0.9182868, -0.35162279, -0.980216324, 0.141076088, -0.138829559, -0.0778797716, 0.36992833, 0.92579037) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  1216. CFrame.new(0.323828787, -1.85769737, -0.0890697613, -0.0339345708, 0.191831693, -0.9808411, -0.0894305035, 0.97688657, 0.19415231, 0.995414793, 0.0943055749, -0.0159946177) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1217. CFrame.new(-1.01143396, -1.94578791, -0.0411248803, -0.0548802316, 0.599948764, -0.798153996, 0.0103841312, 0.799658418, 0.60036552, 0.998438954, 0.0246600546, -0.0501153693) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1218. }, .3, false)
  1219. wld1.C0 = clerp(wld1.C0, CFrame.new(-5.55515726e-07, -0.718169928, 0.08414305, -2.83643603e-05, -7.4650161e-06, 1.00000012, 0.999438763, -0.0335023664, 2.81110406e-05, 0.0335023776, 0.999438703, 8.42520967e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1220. end
  1221. end
  1222. end
  1223.  
  1224. attack=false
  1225. end
  1226. function Bash()
  1227. attack=true
  1228. for i=0,1,0.1 do
  1229. swait()
  1230. wld1.C0=clerp(wld1.C0,euler(3.14,0,0)*cf(0,.8,0),.3)
  1231. Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.2,0,0),.3)
  1232. RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*cf(0,.2,0),.3)
  1233. RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.3)
  1234. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1235. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1,0,.5)*euler(0,-.5,0),.3)
  1236. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1237. RH.C0=clerp(RH.C0,cf(.6,-.9,-.3)*euler(0,1.57,0)*euler(0,-.5,.1),.3)
  1238. LH.C0=clerp(LH.C0,cf(-.5,-.8,-.4)*euler(0,-1.57,0)*euler(0,-.5,.1),.3)
  1239. end
  1240. so("203691447",prt5,.2,1.8)
  1241. hitboxing=true
  1242. hitbox.Parent=modelzorz
  1243. hitbox.Size=vt(1,6,1)
  1244. hitboxCF=prt5.CFrame
  1245. hitbox.CFrame=hitboxCF
  1246. for i=0,1,0.1 do
  1247. swait()
  1248. hitboxCF=prt5.CFrame
  1249. hitbox.CFrame=hitboxCF
  1250. MagniDamage(hitbox,5,2,5,math.random(20,30),"Normal",RootPart,.2,2,math.random(6,8),nil,true,false)
  1251. wld1.C0=clerp(wld1.C0,euler(3.14,0,0)*cf(0,.8,0),.3)
  1252. Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(.1,0,0),.3)
  1253. RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.2,2)*euler(.1,0,0),.3)
  1254. RW.C0=clerp(RW.C0,cf(.2,0.4,-.5)*euler(1.6,0,-1)*euler(0,-1.57,0),.3)
  1255. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1256. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.8,0,-.1)*euler(0,-.5,0),.3)
  1257. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1258. RH.C0=clerp(RH.C0,cf(.6,-1,0)*euler(0,1.57,0)*euler(0,-.5,-.5)*euler(-.2,0,0),.3)
  1259. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(0,.5,.3)*euler(-.4,0,0),.3)
  1260. end
  1261. hitboxing=false
  1262. attack=false
  1263. end
  1264.  
  1265. function Push()
  1266. attack=true
  1267. Torso.Velocity=RootPart.CFrame.lookVector*80
  1268. so("203691467",prt5,.2,1.6)
  1269. hitboxing=true
  1270. hitbox.Parent=modelzorz
  1271. hitbox.Size=vt(1,6,1)
  1272. hitboxCF=prt5.CFrame
  1273. hitbox.CFrame=hitboxCF
  1274. for i=0,1,0.05 do
  1275. swait()
  1276. hitboxCF=prt5.CFrame
  1277. hitbox.CFrame=hitboxCF
  1278. MagniDamage(hitbox,3,3,6,math.random(30,50),"Normal",RootPart,.2,2,math.random(6,8),nil,true,false)
  1279. wld1.C0=clerp(wld1.C0,euler(0,-.2,-1.57)*cf(-.4,1,-.2),.4)
  1280. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.4)
  1281. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*cf(0,.2,0),.4)
  1282. RW.C0=clerp(RW.C0,cf(1.5,0.5,-.3)*euler(2.1,0,0)*euler(0,1.57,0),.4)
  1283. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1284. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.77,0,0)*euler(0,0,0),.4)
  1285. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1286. RH.C0=clerp(RH.C0,cf(.5,-.9,0)*euler(0,1.57,0)*euler(0,0,-.2),.4)
  1287. LH.C0=clerp(LH.C0,cf(-.5,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,.1),.4)
  1288. end
  1289. hitboxing=false
  1290. attack=false
  1291. end
  1292.  
  1293. function SpinNoScopeBackwards()
  1294. attack=true
  1295. for i=0,1,0.1 do
  1296. swait()
  1297. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  1298. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
  1299. RootJoint.C0=clerp(RootJoint.C0,cf(0,1,0)*euler(0,0,0),.3)
  1300. RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.1)
  1301. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1302. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.1)
  1303. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1304. RH.C0=clerp(RH.C0,cf(.6,-.5,-.5)*euler(-.2,1.3,0),.3)
  1305. LH.C0=clerp(LH.C0,cf(-.6,-.5,-.5)*euler(-.2,-1.3,0),.3)
  1306. end
  1307. n=0
  1308. so("158149887",Torso,.5,1)
  1309. for i=0,1,0.1 do
  1310. swait()
  1311. Torso.Velocity=RootPart.CFrame.lookVector*-80
  1312. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  1313. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
  1314. RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,0,0),.3)
  1315. RootJoint.C1=euler(0,n,0)
  1316. n=n+.6
  1317. RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.1)
  1318. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1319. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.1)
  1320. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1321. RH.C0=clerp(RH.C0,cf(.6,-1,-.2)*euler(-.1,1.3,0),.3)
  1322. LH.C0=clerp(LH.C0,cf(-.6,-1,-.2)*euler(-.1,-1.3,0),.3)
  1323. end
  1324. local thePOS=nil
  1325. target,distance=findNearestTorso(Torso.Position)
  1326. if target~=nil then
  1327. thePOS=target.Position
  1328. end
  1329. for i=0,1,0.1 do
  1330. swait()
  1331. Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(0,0,0),.3)
  1332. RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.3)
  1333. RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.3)
  1334. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.5)*euler(1.4,0,.4)*euler(0,-1.57,0),.3)
  1335. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1336. LW.C0=clerp(LW.C0,cf(-.2,0.3,-.5)*euler(1.57,0,1)*euler(0,0,0),.3)
  1337. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1338. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0),.3)
  1339. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0),.3)
  1340. end
  1341. if math.random(1,5)==1 then
  1342. target,distance=findNearestTorso(Torso.Position)
  1343. if target~=nil then
  1344. thePOS=target.Position
  1345. end
  1346. end
  1347. target,distance=findNearestTorso(Torso.Position)
  1348. if target~=nil and thePOS~=nil then
  1349. ref=part(3,workspace,0,1,BrickColor.new("White"),"Reference",vt())
  1350. ref.Anchored=true
  1351. ref.CFrame=prt6.CFrame*cf(0,-1.2,0)
  1352. game:GetService("Debris"):AddItem(ref,1)
  1353. so("10209875",ref,1,1)
  1354. --tehCF=cf(ref.Position,target.Position)
  1355. spread=vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)*(ref.Position-target.Position).magnitude/100
  1356. tehCF=cf((ref.Position+thePOS)/2,thePOS+spread)
  1357. hit,pos=rayCast(ref.Position,tehCF.lookVector,999,Character)
  1358. local mag=(ref.Position-pos).magnitude
  1359. MagicCylinder3(BrickColor.new("Bright yellow"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),.6,mag*5,.6,.01,.01,.01,0.02)
  1360. MagicRing(BrickColor.new("Bright yellow"),ref.CFrame*euler(1.57,0,0),.5,.5,.5,.1,.1,.1,.05)
  1361. MagicWave2(BrickColor.new("Bright yellow"),ref.CFrame*euler(3.14,0,0),.2,.2,.2,.05,.1,.05,.05)
  1362. if hit~=nil then
  1363. snipe=true
  1364. Damagefunc(hit,8,20,math.random(10,15),"Normal",RootPart,0,1,math.random(5,7),nil,nil,true)
  1365. snipe=false
  1366. end
  1367. Torso.Velocity=RootPart.CFrame.lookVector*-80
  1368. for i=0,1,0.03 do
  1369. swait()
  1370. Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(.2,0,0),.2)
  1371. RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.2)
  1372. RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.2)
  1373. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.6)*euler(1.4,0,0)*euler(0,-1.57,0)*euler(0,0,-.7),.2)
  1374. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1375. LW.C0=clerp(LW.C0,cf(-.6,0.5,-.5)*euler(1.57,0,1)*euler(.3,0,0),.3)
  1376. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1377. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0)*euler(0,0,.2),.2)
  1378. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0)*euler(.2,0,0),.2)
  1379. end
  1380. Reload()
  1381. end
  1382. RootJoint.C1=euler(0,0,0)
  1383. attack=false
  1384. end
  1385.  
  1386. function SpinNoScopeForwards()
  1387. attack=true
  1388. for i=0,1,0.1 do
  1389. swait()
  1390. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  1391. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
  1392. RootJoint.C0=clerp(RootJoint.C0,cf(0,1,0)*euler(0,0,0),.3)
  1393. RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.1)
  1394. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1395. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.1)
  1396. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1397. RH.C0=clerp(RH.C0,cf(.6,-.5,-.5)*euler(-.2,1.3,0),.3)
  1398. LH.C0=clerp(LH.C0,cf(-.6,-.5,-.5)*euler(-.2,-1.3,0),.3)
  1399. end
  1400. n=0
  1401. so("158149887",Torso,.5,1)
  1402. for i=0,1,0.1 do
  1403. swait()
  1404. Torso.Velocity=RootPart.CFrame.lookVector*80
  1405. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  1406. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
  1407. RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,0,0),.3)
  1408. RootJoint.C1=euler(0,n,0)
  1409. n=n+.6
  1410. RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.1)
  1411. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1412. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.1)
  1413. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1414. RH.C0=clerp(RH.C0,cf(.6,-1,-.2)*euler(-.1,1.3,0),.3)
  1415. LH.C0=clerp(LH.C0,cf(-.6,-1,-.2)*euler(-.1,-1.3,0),.3)
  1416. end
  1417. local thePOS=nil
  1418. target,distance=findNearestTorso(Torso.Position)
  1419. if target~=nil then
  1420. thePOS=target.Position
  1421. end
  1422. for i=0,1,0.1 do
  1423. swait()
  1424. Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(0,0,0),.3)
  1425. RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.3)
  1426. RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.3)
  1427. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.5)*euler(1.4,0,.4)*euler(0,-1.57,0),.3)
  1428. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1429. LW.C0=clerp(LW.C0,cf(-.2,0.3,-.5)*euler(1.57,0,1)*euler(0,0,0),.3)
  1430. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1431. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(.2,0,0),.3)
  1432. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(-.4,0,0),.3)
  1433. end
  1434. if math.random(1,5)==1 then
  1435. target,distance=findNearestTorso(Torso.Position)
  1436. if target~=nil then
  1437. thePOS=target.Position
  1438. end
  1439. end
  1440. target,distance=findNearestTorso(Torso.Position)
  1441. if target~=nil and thePOS~=nil then
  1442. ref=part(3,workspace,0,1,BrickColor.new("White"),"Reference",vt())
  1443. ref.Anchored=true
  1444. ref.CFrame=prt6.CFrame*cf(0,-1.2,0)
  1445. game:GetService("Debris"):AddItem(ref,1)
  1446. so("10209875",ref,1,1)
  1447. --tehCF=cf(ref.Position,target.Position)
  1448. spread=vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)*(ref.Position-target.Position).magnitude/100
  1449. tehCF=cf((ref.Position+thePOS)/2,thePOS+spread)
  1450. hit,pos=rayCast(ref.Position,tehCF.lookVector,999,Character)
  1451. local mag=(ref.Position-pos).magnitude
  1452. MagicCylinder3(BrickColor.new("Bright yellow"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),.6,mag*5,.6,.01,.01,.01,0.02)
  1453. MagicRing(BrickColor.new("Bright yellow"),ref.CFrame*euler(1.57,0,0),.5,.5,.5,.1,.1,.1,.05)
  1454. MagicWave2(BrickColor.new("Bright yellow"),ref.CFrame*euler(3.14,0,0),.2,.2,.2,.05,.1,.05,.05)
  1455. if hit~=nil then
  1456. snipe=true
  1457. Damagefunc(hit,8,20,math.random(10,15),"Normal",RootPart,0,1,math.random(5,7),nil,nil,true)
  1458. snipe=false
  1459. end
  1460. Torso.Velocity=RootPart.CFrame.lookVector*-60
  1461. for i=0,1,0.03 do
  1462. swait()
  1463. Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(.2,0,0),.2)
  1464. RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.2)
  1465. RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.2)
  1466. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.6)*euler(1.4,0,0)*euler(0,-1.57,0)*euler(0,0,-.7),.2)
  1467. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1468. LW.C0=clerp(LW.C0,cf(-.6,0.5,-.5)*euler(1.57,0,1)*euler(.3,0,0),.3)
  1469. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1470. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0)*euler(0,0,.2),.2)
  1471. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0)*euler(.2,0,0),.2)
  1472. end
  1473. Reload()
  1474. end
  1475. RootJoint.C1=euler(0,0,0)
  1476. attack=false
  1477. end
  1478.  
  1479. function DecreaseStat(Model,Stat,Amount,Duration)
  1480. if Model:findFirstChild("Stats")~=nil then
  1481. if Model.Stats[Stat]~=nil then
  1482. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  1483. d=Instance.new("NumberValue",Model.Stats.Decrease)
  1484. game:GetService("Debris"):AddItem(d,40)
  1485. if Stat=="Damage" then
  1486. d.Name="DecreaseAtk"
  1487. elseif Stat=="Defense" then
  1488. d.Name="DecreaseDef"
  1489. elseif Stat=="Movement" then
  1490. d.Name="DecreaseMvmt"
  1491. end
  1492. if Model:findFirstChild("Torso")~=nil then
  1493. display=""
  1494. if Stat=="Damage" then
  1495. if Amount>0 then
  1496. display="-Damage"
  1497. else
  1498. display="+Damage"
  1499. end
  1500. elseif Stat=="Defense" then
  1501. if Amount>0 then
  1502. display="-Defense"
  1503. else
  1504. display="+Defense"
  1505. end
  1506. elseif Stat=="Movement" then
  1507. if Amount>0 then
  1508. display="-Movement"
  1509. else
  1510. display="+Movement"
  1511. end
  1512. end
  1513. showDamage(Model,display,"Debuff")
  1514. end
  1515. d.Value=Amount
  1516. table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  1517. end
  1518. end
  1519. end
  1520.  
  1521. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1522. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1523. end
  1524.  
  1525. --[[function findNearestTorso(pos)
  1526. local list = game.Workspace:children()
  1527. local torso = nil
  1528. local dist = 1000
  1529. local temp = nil
  1530. local human = nil
  1531. local temp2 = nil
  1532. for x = 1, #list do
  1533. temp2 = list[x]
  1534. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  1535. temp = temp2:findFirstChild("Torso")
  1536. human = temp2:findFirstChild("Humanoid")
  1537. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1538. if btarget.Value==nil then
  1539. if (temp.Position - pos).magnitude < dist then
  1540. local dohit=true
  1541. if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
  1542. if temp2:findFirstChild("Alive")==nil then dohit=false end
  1543. if dohit==true then
  1544. torso = temp
  1545. dist = (temp.Position - pos).magnitude
  1546. end
  1547. end
  1548. else
  1549. if btarget.Value.Parent~=nil then
  1550. if btarget.Value:findFirstChild("Torso")~=nil then
  1551. if btarget.Value:findFirstChild("Humanoid")~=nil then
  1552. if btarget.Value.Humanoid.Health<=0 then
  1553. btarget.Value=nil
  1554. end
  1555. end
  1556. if btarget.Value~=nil then
  1557. torso=btarget.Value.Torso
  1558. dist = (torso.Position - pos).magnitude
  1559. end
  1560. end
  1561. else
  1562. btarget.Value=nil
  1563. end
  1564. end
  1565. end
  1566. end
  1567. end
  1568. return torso,dist
  1569. end]]
  1570. findNearestTorso = function(pos)
  1571. local list = (game.Workspace:children())
  1572. local torso = nil
  1573. local dist = 1000
  1574. local temp, human, temp2 = nil, nil, nil
  1575. for x = 1, #list do
  1576. temp2 = list[x]
  1577. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  1578. temp = temp2:findFirstChild("Torso")
  1579. human = temp2:findFirstChild("Humanoid")
  1580. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  1581. local dohit = true
  1582. if dohit == true then
  1583. torso = temp
  1584. dist = (temp.Position - pos).magnitude
  1585. end
  1586. end
  1587. end
  1588. end
  1589. return torso, dist
  1590. end
  1591. function findRandomTorso(pos)
  1592. local list = game.Workspace:children()
  1593. local torso = nil
  1594. local dist = 1000
  1595. local temp = nil
  1596. local human = nil
  1597. local temp2 = nil
  1598. local list2 = {}
  1599. for x = 1, #list do
  1600. temp2 = list[x]
  1601. if (temp2.className == "Model") and (temp2.Name~="Vanta") then
  1602. temp = temp2:findFirstChild("Torso")
  1603. human = temp2:findFirstChild("Humanoid")
  1604. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1605. if pos.magnitude < dist then
  1606. torso = temp
  1607. table.insert(list2,temp)
  1608. end
  1609. end
  1610. end
  1611. end
  1612. if #list2>0 then
  1613. rand=math.random(1,#list2)
  1614. return list2[rand],dist
  1615. else
  1616. return nil,dist
  1617. end
  1618. end
  1619.  
  1620. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  1621. if hit.Parent==nil then
  1622. return
  1623. end
  1624. h=hit.Parent:FindFirstChild("Humanoid")
  1625. for _,v in pairs(hit.Parent:children()) do
  1626. if v:IsA("Humanoid") then
  1627. h=v
  1628. end
  1629. end
  1630. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1631. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1632. end
  1633. if hit.Parent.className=="Hat" then
  1634. hit=hit.Parent.Parent:findFirstChild("Head")
  1635. end
  1636. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1637. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1638. if hit.Parent:findFirstChild("Stats")~=nil then if hit.Parent.Stats:findFirstChild("Boss")~=nil then if hit.Parent.Stats.Boss.Value==true then return end end end
  1639. RecentEnemy.Value=hit.Parent
  1640. game:GetService("Debris"):AddItem(c,.5)
  1641. minim=minim*Atk.Value
  1642. maxim=maxim*Atk.Value
  1643. Damage=0
  1644. if minim==maxim or minim>maxim then
  1645. Damage=maxim
  1646. else
  1647. Damage=math.random(minim,maxim)
  1648. end
  1649. blocked=false
  1650. enblock=nil
  1651. Stats=hit.Parent:findFirstChild("Stats")
  1652. if Stats~=nil then
  1653. enblock=Stats:findFirstChild("Block")
  1654. if enblock~=nil then
  1655. if enblock.Value==true then
  1656. blocked=true
  1657. end
  1658. end
  1659. if Stats:findFirstChild("Defense")~=nil then
  1660. Damage=Damage/(Stats.Defense.Value)
  1661. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true and snipe==false then
  1662. hitnum=math.random(1,3)
  1663. if hitnum==1 then so("199149321",hit,1,1)
  1664. elseif hitnum==2 then so("199149338",hit,1,1)
  1665. elseif hitnum==3 then so("199149367",hit,1,1)
  1666. elseif hitnum==4 then so("199149409",hit,1,1)
  1667. elseif hitnum==5 then so("199149452",hit,1,1)
  1668. end
  1669. elseif ranged==false or ranged==nil and blocked~=true and snipe==false then
  1670. hitnum=math.random(1,3)
  1671. if hitnum==1 then so("199149137",hit,1,1)
  1672. elseif hitnum==2 then so("199149186",hit,1,1)
  1673. elseif hitnum==3 then so("199149221",hit,1,1)
  1674. elseif hitnum==4 then so("199149235",hit,1,1)
  1675. elseif hitnum==5 then so("199149269",hit,1,1)
  1676. elseif hitnum==6 then so("199149297",hit,1,1)
  1677. end
  1678. end
  1679. end
  1680. if Stats:findFirstChild("Stun")~=nil then
  1681. if blocked==true then
  1682. incstun=math.floor(incstun/2)
  1683. end
  1684. Stats.Stun.Value=Stats.Stun.Value+incstun
  1685. end
  1686. if Stats:findFirstChild("Stagger")~=nil then
  1687. if stagger==true then
  1688. Stats.Stagger.Value=true
  1689. end
  1690. end
  1691. end
  1692. if blocked==true then
  1693. showDamage(hit.Parent,"Block","Damage")
  1694. if snipe==false then
  1695. hitnum=math.random(1,2)
  1696. if hitnum==1 then so("199148933",hit,1,1)
  1697. elseif hitnum==2 then so("199148947",hit,1,1)
  1698. end
  1699. end
  1700. enblock.Value=false
  1701. else
  1702. Damage=math.floor(Damage)
  1703. h.Health=h.Health-Damage
  1704. --[[coroutine.resume(coroutine.create(function(Hum,Dam)
  1705. damageFunc:InvokeServer(Hum,Dam)
  1706. end),h,Damage)]]
  1707. showDamage(hit.Parent,Damage,"Damage")
  1708. if DecreaseState~=nil then
  1709. if DecreaseState=="Shatter" then
  1710. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  1711. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  1712. else
  1713. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  1714. end
  1715. end
  1716. if Type=="Knockdown" then
  1717. hum=hit.Parent.Humanoid
  1718. hum.PlatformStand=true
  1719. coroutine.resume(coroutine.create(function(HHumanoid)
  1720. swait(1)
  1721. HHumanoid.PlatformStand=false
  1722. end),hum)
  1723. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1724. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1725. local bodvol=Instance.new("BodyVelocity")
  1726. bodvol.velocity=angle*knockback
  1727. bodvol.P=5000
  1728. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1729. bodvol.Parent=hit
  1730. rl=Instance.new("BodyAngularVelocity")
  1731. rl.P=3000
  1732. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1733. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1734. rl.Parent=hit
  1735. game:GetService("Debris"):AddItem(bodvol,.5)
  1736. game:GetService("Debris"):AddItem(rl,.5)
  1737. elseif Type=="Shatter" then
  1738. so("199146069", hit, 1.5, 1)
  1739. for i=1,10 do
  1740. BreakEffect(BrickColor.new("White"),hit.CFrame,10,1,1)
  1741. end
  1742. elseif Type=="Knockdown2" then
  1743. hum=hit.Parent.Humanoid
  1744. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1745. local bodvol=Instance.new("BodyVelocity")
  1746. bodvol.velocity=angle*knockback
  1747. bodvol.P=5000
  1748. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1749. bodvol.Parent=hit
  1750. game:GetService("Debris"):AddItem(bodvol,.5)
  1751. elseif Type=="Normal" then
  1752. vp=Instance.new("BodyVelocity")
  1753. vp.P=500
  1754. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1755. if KnockbackType==1 then
  1756. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1757. elseif KnockbackType==2 then
  1758. vp.velocity=Property.CFrame.lookVector*knockback
  1759. end
  1760. game:GetService("Debris"):AddItem(vp,.5)
  1761. if knockback>0 then
  1762. vp.Parent=hit.Parent.Torso
  1763. end
  1764. end
  1765. end
  1766. debounce=Instance.new("BoolValue")
  1767. debounce.Name="DebounceHit"
  1768. debounce.Parent=hit.Parent
  1769. debounce.Value=true
  1770. game:GetService("Debris"):AddItem(debounce,Delay)
  1771. CRIT=false
  1772. end
  1773. end
  1774.  
  1775. showDamage=function(Char,Dealt,Type)
  1776. m=Instance.new("Model")
  1777. m.Name="Effect"
  1778. c=Instance.new("Part")
  1779. c.Transparency=1
  1780. c.Name="Head"
  1781. c.TopSurface=0
  1782. c.BottomSurface=0
  1783. c.formFactor="Plate"
  1784. c.Size=Vector3.new(1,.4,1)
  1785. b=Instance.new("BillboardGui",c)
  1786. b.Size=UDim2.new(5,0,5,0)
  1787. b.AlwaysOnTop=true
  1788. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  1789. if Type=="Damage" then
  1790. damgui.Font="SourceSans"
  1791. if Dealt=="Block" then
  1792. damgui.TextColor3=BrickColor.new("Black").Color
  1793. elseif Dealt<3 then
  1794. damgui.TextColor3=BrickColor.new("White").Color
  1795. elseif Dealt>=3 and Dealt<20 then
  1796. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  1797. else
  1798. damgui.TextColor3=BrickColor.new("Really red").Color
  1799. damgui.Font="SourceSansBold"
  1800. end
  1801. elseif Type=="Debuff" then
  1802. damgui.TextColor3=BrickColor.new("White").Color
  1803. elseif Type=="Interrupt" then
  1804. damgui.TextColor3=BrickColor.new("New Yeller").Color
  1805. end
  1806. --damgui.FontSize="Size48"
  1807. damgui.TextScaled=true
  1808. ms=Instance.new("CylinderMesh")
  1809. ms.Scale=Vector3.new(.8,.8,.8)
  1810. ms.Parent=c
  1811. c.Reflectance=0
  1812. Instance.new("BodyGyro").Parent=c
  1813. c.Parent=m
  1814. if Char:findFirstChild("Head")~=nil then
  1815. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  1816. elseif Char.Parent:findFirstChild("Head")~=nil then
  1817. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  1818. end
  1819. f=Instance.new("BodyPosition")
  1820. f.P=2000
  1821. f.D=100
  1822. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1823. if Type=="Damage" then
  1824. f.position=c.Position+Vector3.new(0,3,0)
  1825. elseif Type=="Debuff" or Type=="Interrupt" then
  1826. f.position=c.Position+Vector3.new(0,5,0)
  1827. end
  1828. f.Parent=c
  1829. game:GetService("Debris"):AddItem(m,5)
  1830. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  1831. c.CanCollide=false
  1832. m.Parent=workspace
  1833. c.CanCollide=false
  1834. end
  1835.  
  1836. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  1837. for _,c in pairs(workspace:children()) do
  1838. local hum=c:findFirstChild("Humanoid")
  1839. if hum~=nil then
  1840. local head=nil
  1841. for _,d in pairs(c:children()) do
  1842. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  1843. --[[if d.className=="Model" and ranged~=true then
  1844. head=d:findFirstChild("Hitbox")
  1845. if d.Parent==Character then break end
  1846. if head~=nil then
  1847. local targ=head.Position-Part.Position
  1848. local mag=targ.magnitude
  1849. if mag<=magni then
  1850. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1851. ref.Anchored=true
  1852. ref.CFrame=cf(head.Position)
  1853. game:GetService("Debris"):AddItem(ref,1)
  1854. hitnum=math.random(1,5)
  1855. if hitnum==1 then so("199148971",ref,1,1)
  1856. elseif hitnum==2 then so("199149025",ref,1,1)
  1857. elseif hitnum==3 then so("199149072",ref,1,1)
  1858. elseif hitnum==4 then so("199149109",ref,1,1)
  1859. elseif hitnum==5 then so("199149119",ref,1,1)
  1860. end
  1861. StaggerHit.Value=true
  1862. end
  1863. end
  1864. end]]
  1865. if d.className=="Part" then
  1866. head=d
  1867. if head~=nil then
  1868. local targ=head.Position-Part.Position
  1869. local mag=targ.magnitude
  1870. if mag<=magni and c.Name~=Character.Name then
  1871. if stun==nil then
  1872. stun=math.random(5,10)
  1873. end
  1874. local Rang=nil
  1875. if Ranged==false then
  1876. Rang=true
  1877. end
  1878. local stag=nil
  1879. if shbash==true then
  1880. stag=true
  1881. end
  1882. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  1883. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  1884. end
  1885. end
  1886. end
  1887. end
  1888. end
  1889. end
  1890. end
  1891. function onKeyDown(key)
  1892. if attack==false then
  1893. if key=="z" then
  1894. Precise()
  1895. --[[elseif key=="x" then
  1896. Bash()
  1897. elseif key=="c" then
  1898. SpinShot()
  1899. elseif key=="v" then
  1900. SpinNoScopeForwards()
  1901. elseif key == "b" then
  1902. SpinNoScopeBackwards()]]
  1903. elseif key == "q" then
  1904. StunAnim()
  1905. end
  1906. end
  1907. end
  1908. Mouse.KeyDown:connect(onKeyDown)
  1909. local stunnum=0
  1910. local animnum=0
  1911. local idle=1
  1912. local animlimit=5
  1913. local coln=0
  1914. local col="White"
  1915. local target,distance=nil,nil
  1916. local attacking=false
  1917. local stunanim=false
  1918. while Humanoid.Health>0 do
  1919. swait()
  1920. if hitboxing==true then
  1921. hitbox.Parent=modelzorz
  1922. else
  1923. hitbox.Parent=nil
  1924. end
  1925. coln=coln+1
  1926. if coln>=2 then
  1927. coln=0
  1928. if col=="White" then
  1929. col="Really black"
  1930. else
  1931. col="White"
  1932. end
  1933. end
  1934. for _,v in pairs(modelzorz:children()) do
  1935. if v.className=="Part" then
  1936. v.BrickColor=BrickColor.new(col)
  1937. end
  1938. end
  1939. --[[print(target)
  1940. print(distance)]]
  1941. --[[for _,c in pairs(Character:children()) do
  1942. for _,v in pairs(c:children()) do
  1943. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  1944. if v.Name~="SiegmundGyro" and v.Name~="SiegmundPos" then
  1945. print("dai")
  1946. v.Parent=nil
  1947. end
  1948. end
  1949. end
  1950. end]]
  1951. coroutine.resume(coroutine.create(function()
  1952. if start==false then
  1953. start=true
  1954. StartAnim()
  1955. end
  1956. end))
  1957. passive3.Value=-.6
  1958. --[[local mag = (Torso.Position-Character.Torso.Position).magnitude
  1959. if mag >= 36 then
  1960. passive3.Value=-.6
  1961. else
  1962. passive3.Value=-.1
  1963. end]]
  1964. target,distance=findNearestTorso(Torso.Position)
  1965. if target~=nil then
  1966. if attack==false then
  1967. BodGy.cframe=cf(Torso.Position,Mouse.Hit.p)
  1968. end
  1969. numb1=RootPart.Position.y
  1970. numb2=target.Position.y
  1971. --[[if numb2-numb1>=5 or numb2-numb1<=-5 then
  1972. if distance<=30 then
  1973. if attack==false then
  1974. attackrand=math.random(1,20)
  1975. if attackrand==1 then
  1976. coroutine.resume(coroutine.create(function()
  1977. RecentEnemy.Value=nil
  1978. --JumpKick()
  1979. end))
  1980. end
  1981. end
  1982. end
  1983. end
  1984. if distance>60 then --far range
  1985. Humanoid:MoveTo(target.Position)
  1986. run.Parent=Decrease
  1987. if attack==false then
  1988. attackrand=math.random(1,20)
  1989. if attackrand==1 then
  1990. coroutine.resume(coroutine.create(function()
  1991. RecentEnemy.Value=nil
  1992. d=math.random(1,2)
  1993. if d==1 then
  1994. SpinShot()
  1995. elseif d==2 then
  1996. SpinNoScopeForwards()
  1997. end
  1998. end))
  1999. end
  2000. end
  2001. elseif distance<=60 and distance>=20 then --mid range
  2002. move=distance*3
  2003. Humanoid:MoveTo(RootPart.Position)
  2004. run.Parent=nil
  2005. if attack==false then
  2006. attackrand=math.random(1,10)
  2007. if attackrand==1 then
  2008. coroutine.resume(coroutine.create(function()
  2009. RecentEnemy.Value=nil
  2010. d=math.random(1,2)
  2011. if d==1 then
  2012. SpinShot()
  2013. elseif d==2 then
  2014. SpinNoScopeBackwards()
  2015. end
  2016. end))
  2017. end
  2018. end
  2019. else --close range
  2020. move=10
  2021. Humanoid:MoveTo(RootPart.Position)
  2022. run.Parent=nil
  2023. --run.Parent=nil
  2024. if attack==false then
  2025. attackrand=math.random(1,20)
  2026. if distance<=5 then
  2027. attackrand=math.random(1,10)
  2028. end
  2029. if attackrand==1 then
  2030. coroutine.resume(coroutine.create(function()
  2031. RecentEnemy.Value=nil
  2032. d=math.random(1,2)
  2033. if distance<=5 then
  2034. d=math.random(1,4)
  2035. end
  2036. if d==1 then
  2037. SpinShot()
  2038. elseif d==2 then
  2039. SpinNoScopeBackwards()
  2040. elseif d==3 then
  2041. Bash()
  2042. elseif d==4 then
  2043. Push()
  2044. end
  2045. end))
  2046. end
  2047. end
  2048. end]]
  2049. end
  2050. if Mvmt.Value<0 or Stun.Value>=100 or attack==true then
  2051. Humanoid.WalkSpeed=0
  2052. if jump==true then
  2053. Humanoid.WalkSpeed=16*Mvmt.Value
  2054. end
  2055. else
  2056. Humanoid.WalkSpeed=16*Mvmt.Value
  2057. end
  2058. if Stun.Value>=100 and stunanim==false then
  2059. coroutine.resume(coroutine.create(function()
  2060. stunanim=true
  2061. while attack==true do
  2062. swait()
  2063. end
  2064. StunAnim()
  2065. Stun.Value=0
  2066. stunanim=false
  2067. end))
  2068. end
  2069. local stunnum2=80
  2070. if stunnum>=stunnum2 then
  2071. if Stun.Value>0 then
  2072. Stun.Value=Stun.Value-1
  2073. end
  2074. stunnum=0
  2075. end
  2076. stunnum=stunnum+1
  2077. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2078. local velderp=RootPart.Velocity.y
  2079. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  2080. for _,c in pairs(Decrease:children()) do
  2081. if c:findFirstChild("Duration")~=nil then
  2082. c.Duration.Value=c.Duration.Value-1
  2083. if c.Duration.Value<=0 then
  2084. c.Parent=nil
  2085. end
  2086. end
  2087. if c.Name=="DecreaseAtk" then
  2088. decreaseatk=decreaseatk+c.Value
  2089. elseif c.Name=="DecreaseDef" then
  2090. decreasedef=decreasedef+c.Value
  2091. elseif c.Name=="DecreaseMvmt" then
  2092. decreasemvmt=decreasemvmt+c.Value
  2093. end
  2094. end
  2095. Atk.Value=1-decreaseatk
  2096. if Atk.Value<=0 then
  2097. Atk.Value=0
  2098. end
  2099. Def.Value=1-decreasedef
  2100. if Def.Value<=0 then
  2101. Def.Value=0.01
  2102. end
  2103. Mvmt.Value=1-decreasemvmt
  2104. if Mvmt.Value<=0 then
  2105. Mvmt.Value=0
  2106. end
  2107. decreaseatk=0
  2108. decreasedef=0
  2109. decreasemvmt=0
  2110. AtkVal=Atk.Value*100
  2111. AtkVal=math.floor(AtkVal)
  2112. AtkVal=AtkVal/100
  2113. DefVal=Def.Value*100
  2114. DefVal=math.floor(DefVal)
  2115. DefVal=DefVal/100
  2116. MvmtVal=Mvmt.Value*100
  2117. MvmtVal=math.floor(MvmtVal)
  2118. MvmtVal=MvmtVal/100
  2119. if MvmtVal<=0 then
  2120. MvmtVal=0
  2121. end
  2122. animnum=animnum+1
  2123. if animnum>=animlimit*5 then
  2124. idle=1
  2125. animnum=0
  2126. elseif animnum>=animlimit*4 then
  2127. idle=1
  2128. animnum=0
  2129. elseif animnum>=animlimit*3 then
  2130. idle=4
  2131. elseif animnum>=animlimit*2 then
  2132. idle=3
  2133. elseif animnum>=animlimit*1 then
  2134. idle=2
  2135. end
  2136. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2137. Anim="Jump"
  2138. if attack==false then
  2139. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  2140. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.3)
  2141. RootJoint.C0=clerp(RootJoint.C0,euler(-.1,0,0),.3)
  2142. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1),.3)
  2143. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2144. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1),.3)
  2145. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2146. RH.C0=clerp(RH.C0,cf(.5,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2147. LH.C0=clerp(LH.C0,cf(-.5,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2148. end
  2149. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2150. Anim="Fall"
  2151. if attack==false then
  2152. wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  2153. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
  2154. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0),.3)
  2155. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,0.2),.3)
  2156. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2157. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-0.2),.3)
  2158. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2159. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0.4,1.57,0),.2)
  2160. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(-0.2,-1.57,0),.2)
  2161. end
  2162. elseif torvel<1 and hitfloor~=nil then
  2163. Anim="Idle"
  2164. animlimit=40
  2165. if attack==false then
  2166. --wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
  2167. if idle==1 or idle==2 then
  2168. wld1.Part0=RightArm
  2169. PlayAnimationFromTable({
  2170. CFrame.new(-0.00408624485, -0.0392880403, -0.101194024, 0.871484816, 7.67805545e-07, 0.490422696, -0.0288249925, 0.998271346, 0.0512206592, -0.489574879, -0.0587744527, 0.869978189) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2171. CFrame.new(0.0192427598, 1.4993912, -0.0341970138, 0.852411211, 0.0287313629, -0.522082508, 0.00220392179, 0.998282909, 0.0585361086, 0.522867799, -0.0510474481, 0.85088402) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2172. CFrame.new(1.3835994, 0.610314488, -0.709840655, 0.11161834, -0.261308819, 0.95878011, 0.993747592, 0.0319542773, -0.106980227, -0.00268224627, 0.96472621, 0.263241708) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2173. CFrame.new(-1.49432945, 0.251088977, 0.0154114217, 0.953926027, 0.296317071, -0.0471331477, -0.281624466, 0.93844372, 0.200027913, 0.103503525, -0.177537963, 0.978655875) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2174. CFrame.new(0.613873959, -1.98154581, -0.295451462, 0.897078693, 0.0662777573, -0.436872274, -0.0130363367, 0.992226481, 0.123761415, 0.441678733, -0.1053285, 0.890969038) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2175. CFrame.new(-0.598620415, -2.01042914, 0.141347021, 0.996638954, 0.0817032978, 0.00597208738, -0.0817031562, 0.986024737, 0.145189792, 0.00597387552, -0.145189732, 0.989385843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2176. }, .1, false)
  2177. wld1.C0 = clerp(wld1.C0, CFrame.new(0.0250302367, -0.892942786, -0.0165846627, 0.0811756253, 0.0055154711, 0.99668467, -0.0519102216, -0.998604298, 0.00975394249, 0.995347202, -0.0525298566, -0.0807760134) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.1)
  2178. else
  2179.  
  2180. PlayAnimationFromTable({
  2181. CFrame.new(-0.00408569723, -0.203084141, -0.101193637, 0.871484995, -3.24653598e-07, 0.490422279, -0.101034999, 0.978548527, 0.179540813, -0.479901999, -0.206016928, 0.852790296) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2182. CFrame.new(-0.00598204136, 1.5790199, 0.0106313378, 0.852379382, 0.0270338282, -0.522224844, 0.000227842014, 0.998643696, 0.052068308, 0.522924066, -0.0445009172, 0.851217031) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2183. CFrame.new(1.3534286, 0.617394984, -0.653935552, 0.0273648575, -0.269270003, 0.962675929, 0.999522209, 0.0212172568, -0.0224775597, -0.0143728107, 0.96283114, 0.269721955) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2184. CFrame.new(-1.53894806, 0.394248843, 0.21563448, 0.880533814, 0.473979831, -0.00188797712, -0.452863783, 0.842467725, 0.291826546, 0.13991043, -0.256108165, 0.956469536) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2185. CFrame.new(0.740831971, -1.74148083, -0.521062076, 0.897167206, 0.0594251081, -0.437675476, -0.0122638233, 0.993877709, 0.109804183, 0.441520959, -0.0931451172, 0.892403245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2186. CFrame.new(-0.626420617, -2.00636411, 0.164316118, 0.993093014, 0.116687, 0.0122732222, -0.116686858, 0.971282244, 0.207352743, 0.0122745633, -0.207352653, 0.978189409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2187. }, .03, false)
  2188. wld1.C0 = clerp(wld1.C0, CFrame.new(0.025033135, -0.892939806, -0.0165855642, 0.0811744779, 0.0055155158, 0.996684611, -0.051910311, -0.998604178, 0.00975395739, 0.995347202, -0.0525299907, -0.0807748586) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.1)
  2189. end
  2190. end
  2191. elseif torvel>2 and torvel<20 and hitfloor~=nil then
  2192. Anim="Walk"
  2193. animlimit=10
  2194. if attack==false then
  2195. if idle==1 or idle==2 then
  2196. if idle==1 then
  2197. PlayAnimationFromTable({
  2198. CFrame.new(-0, -0.101287723, -0.169587582, 1, 0, 0, 0, 0.960395992, 0.278638989, 0, -0.278638989, 0.960395992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2199. CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2200. CFrame.new(1.32473278, 0.671500444, -0.641432405, 0.00947599579, -0.135025963, 0.990796804, 0.995153546, -0.0957114249, -0.0225612372, 0.0978769362, 0.986208677, 0.133464605) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2201. CFrame.new(-1.52342892, 0.305035621, 0.28996551, 0.925308228, 0.378217608, -0.027499482, -0.301324368, 0.777339876, 0.552219629, 0.230235636, -0.502686977, 0.833245218) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2202. CFrame.new(0.5, -1.92117679, -0.461249918, 1, 0, -0, 0, 0.873822451, -0.486245394, 0, 0.486245394, 0.873822451) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2203. CFrame.new(-0.5, -1.68541694, 0.764093161, 1, 0, 0, 0, 0.638579726, 0.769555748, 0, -0.769555748, 0.638579726) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2204. }, .3, false)
  2205. wld1.C0 = clerp(wld1.C0, CFrame.new(3.81898144e-06, -0.880694032, 0.0474553704, 2.25380063e-07, -8.21053982e-06, 1.00000012, -0.0815432966, -0.996669888, -8.13603401e-06, 0.996669888, -0.081543304, -8.94069672e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  2206. elseif idle==2 then
  2207. PlayAnimationFromTable({
  2208. CFrame.new(-0, -0.13556999, -0.182637736, 1, 0, 0, 0, 0.917178869, 0.398475945, 0, -0.398475945, 0.917178869) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2209. CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2210. CFrame.new(1.32473123, 0.703307688, -0.625081182, 0.00947600044, -0.135026053, 0.990796745, 0.982692122, -0.182060748, -0.0342097729, 0.185004368, 0.973972321, 0.130963817) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2211. CFrame.new(-1.50532961, 0.310292035, 0.383442849, 0.91940999, 0.391560555, -0.0369549207, -0.272545099, 0.702046812, 0.657913089, 0.283556879, -0.594819903, 0.752186716) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2212. CFrame.new(0.5, -1.92952371, -0.314069629, 1, 0, 0, 0, 0.955978751, -0.293436289, 0, 0.293436289, 0.955978751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2213. CFrame.new(-0.5, -1.87455964, 0.532231688, 1, 0, 0, 0, 0.854508638, 0.519437253, 0, -0.519437253, 0.854508638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2214. }, .3, false)
  2215. wld1.C0 = clerp(wld1.C0, CFrame.new(3.0440674e-06, -0.880690694, 0.0474576727, -3.93018126e-07, -7.37607479e-06, 1.00000012, -0.0815420896, -0.996670008, -7.37607479e-06, 0.996669948, -0.0815420747, -2.08616257e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  2216. end
  2217. else
  2218. if idle==3 then
  2219. PlayAnimationFromTable({
  2220. CFrame.new(-0, -0.101287723, -0.169587582, 1, 0, 0, 0, 0.960395992, 0.278638989, 0, -0.278638989, 0.960395992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2221. CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2222. CFrame.new(1.32473278, 0.671500444, -0.641432405, 0.00947599579, -0.135025963, 0.990796804, 0.995153546, -0.0957114249, -0.0225612372, 0.0978769362, 0.986208677, 0.133464605) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2223. CFrame.new(-1.52342892, 0.305035621, 0.28996551, 0.925308228, 0.378217608, -0.027499482, -0.301324368, 0.777339876, 0.552219629, 0.230235636, -0.502686977, 0.833245218) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2224. CFrame.new(0.5, -1.72390521, 0.835676849, 1, 0, 0, 0, 0.621255219, 0.783608437, 0, -0.783608437, 0.621255219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2225. CFrame.new(-0.5, -1.89754665, -0.501000643, 1, 0, -0, 0, 0.868537724, -0.495623201, 0, 0.495623201, 0.868537724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2226. }, .3, false)
  2227. wld1.C0 = clerp(wld1.C0, CFrame.new(3.81898144e-06, -0.880694032, 0.0474553704, 2.25380063e-07, -8.21053982e-06, 1.00000012, -0.0815432966, -0.996669888, -8.13603401e-06, 0.996669888, -0.081543304, -8.94069672e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  2228. --^ not doen
  2229. elseif idle==4 then
  2230. PlayAnimationFromTable({
  2231. CFrame.new(-0, -0.13556999, -0.182637736, 1, 0, 0, 0, 0.917178869, 0.398475945, 0, -0.398475945, 0.917178869) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2232. CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2233. CFrame.new(1.32473123, 0.703307688, -0.625081182, 0.00947600044, -0.135026053, 0.990796745, 0.982692122, -0.182060748, -0.0342097729, 0.185004368, 0.973972321, 0.130963817) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2234. CFrame.new(-1.50532961, 0.310292035, 0.383442849, 0.91940999, 0.391560555, -0.0369549207, -0.272545099, 0.702046812, 0.657913089, 0.283556879, -0.594819903, 0.752186716) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2235. CFrame.new(0.5, -1.89034307, 0.518616855, 1, 0, 0, 0, 0.868536711, 0.495625079, 0, -0.495625079, 0.868536711) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2236. CFrame.new(-0.499998093, -1.98679137, -0.186833113, 1, 0, 0, 0, 0.970552444, -0.240890607, 0, 0.240890592, 0.970552444) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2237. }, .3, false)
  2238. wld1.C0 = clerp(wld1.C0, CFrame.new(3.0440674e-06, -0.880690694, 0.0474576727, -3.93018126e-07, -7.37607479e-06, 1.00000012, -0.0815420896, -0.996670008, -7.37607479e-06, 0.996669948, -0.0815420747, -2.08616257e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  2239. end
  2240. end
  2241. end
  2242. elseif torvel>=20 and hitfloor~=nil then
  2243. Anim="Run"
  2244. animlimit=10
  2245. if attack==false then
  2246. if idle==1 or idle==2 then
  2247. if idle==1 then
  2248. PlayAnimationFromTable({
  2249. CFrame.new(-0, -0.101287723, -0.169587582, 1, 0, 0, 0, 0.960395992, 0.278638989, 0, -0.278638989, 0.960395992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2250. CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2251. CFrame.new(1.32473278, 0.671500444, -0.641432405, 0.00947599579, -0.135025963, 0.990796804, 0.995153546, -0.0957114249, -0.0225612372, 0.0978769362, 0.986208677, 0.133464605) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2252. CFrame.new(-1.52342892, 0.305035621, 0.28996551, 0.925308228, 0.378217608, -0.027499482, -0.301324368, 0.777339876, 0.552219629, 0.230235636, -0.502686977, 0.833245218) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2253. CFrame.new(0.5, -1.92117679, -0.461249918, 1, 0, -0, 0, 0.873822451, -0.486245394, 0, 0.486245394, 0.873822451) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2254. CFrame.new(-0.5, -1.68541694, 0.764093161, 1, 0, 0, 0, 0.638579726, 0.769555748, 0, -0.769555748, 0.638579726) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2255. }, .3, false)
  2256. wld1.C0 = clerp(wld1.C0, CFrame.new(3.81898144e-06, -0.880694032, 0.0474553704, 2.25380063e-07, -8.21053982e-06, 1.00000012, -0.0815432966, -0.996669888, -8.13603401e-06, 0.996669888, -0.081543304, -8.94069672e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  2257. elseif idle==2 then
  2258. PlayAnimationFromTable({
  2259. CFrame.new(-0, -0.13556999, -0.182637736, 1, 0, 0, 0, 0.917178869, 0.398475945, 0, -0.398475945, 0.917178869) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2260. CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2261. CFrame.new(1.32473123, 0.703307688, -0.625081182, 0.00947600044, -0.135026053, 0.990796745, 0.982692122, -0.182060748, -0.0342097729, 0.185004368, 0.973972321, 0.130963817) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2262. CFrame.new(-1.50532961, 0.310292035, 0.383442849, 0.91940999, 0.391560555, -0.0369549207, -0.272545099, 0.702046812, 0.657913089, 0.283556879, -0.594819903, 0.752186716) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2263. CFrame.new(0.5, -1.92952371, -0.314069629, 1, 0, 0, 0, 0.955978751, -0.293436289, 0, 0.293436289, 0.955978751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2264. CFrame.new(-0.5, -1.87455964, 0.532231688, 1, 0, 0, 0, 0.854508638, 0.519437253, 0, -0.519437253, 0.854508638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2265. }, .3, false)
  2266. wld1.C0 = clerp(wld1.C0, CFrame.new(3.0440674e-06, -0.880690694, 0.0474576727, -3.93018126e-07, -7.37607479e-06, 1.00000012, -0.0815420896, -0.996670008, -7.37607479e-06, 0.996669948, -0.0815420747, -2.08616257e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  2267. end
  2268. else
  2269. if idle==3 then
  2270. PlayAnimationFromTable({
  2271. CFrame.new(-0, -0.101287723, -0.169587582, 1, 0, 0, 0, 0.960395992, 0.278638989, 0, -0.278638989, 0.960395992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2272. CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2273. CFrame.new(1.32473278, 0.671500444, -0.641432405, 0.00947599579, -0.135025963, 0.990796804, 0.995153546, -0.0957114249, -0.0225612372, 0.0978769362, 0.986208677, 0.133464605) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2274. CFrame.new(-1.52342892, 0.305035621, 0.28996551, 0.925308228, 0.378217608, -0.027499482, -0.301324368, 0.777339876, 0.552219629, 0.230235636, -0.502686977, 0.833245218) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2275. CFrame.new(0.5, -1.72390521, 0.835676849, 1, 0, 0, 0, 0.621255219, 0.783608437, 0, -0.783608437, 0.621255219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2276. CFrame.new(-0.5, -1.89754665, -0.501000643, 1, 0, -0, 0, 0.868537724, -0.495623201, 0, 0.495623201, 0.868537724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2277. }, .3, false)
  2278. wld1.C0 = clerp(wld1.C0, CFrame.new(3.81898144e-06, -0.880694032, 0.0474553704, 2.25380063e-07, -8.21053982e-06, 1.00000012, -0.0815432966, -0.996669888, -8.13603401e-06, 0.996669888, -0.081543304, -8.94069672e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  2279. --^ not doen
  2280. elseif idle==4 then
  2281. PlayAnimationFromTable({
  2282. CFrame.new(-0, -0.13556999, -0.182637736, 1, 0, 0, 0, 0.917178869, 0.398475945, 0, -0.398475945, 0.917178869) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2283. CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2284. CFrame.new(1.32473123, 0.703307688, -0.625081182, 0.00947600044, -0.135026053, 0.990796745, 0.982692122, -0.182060748, -0.0342097729, 0.185004368, 0.973972321, 0.130963817) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2285. CFrame.new(-1.50532961, 0.310292035, 0.383442849, 0.91940999, 0.391560555, -0.0369549207, -0.272545099, 0.702046812, 0.657913089, 0.283556879, -0.594819903, 0.752186716) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
  2286. CFrame.new(0.5, -1.89034307, 0.518616855, 1, 0, 0, 0, 0.868536711, 0.495625079, 0, -0.495625079, 0.868536711) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2287. CFrame.new(-0.499998093, -1.98679137, -0.186833113, 1, 0, 0, 0, 0.970552444, -0.240890607, 0, 0.240890592, 0.970552444) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2288. }, .3, false)
  2289. wld1.C0 = clerp(wld1.C0, CFrame.new(3.0440674e-06, -0.880690694, 0.0474576727, -3.93018126e-07, -7.37607479e-06, 1.00000012, -0.0815420896, -0.996670008, -7.37607479e-06, 0.996669948, -0.0815420747, -2.08616257e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  2290.  
  2291. end
  2292. end
  2293. end
  2294. end
  2295. if #Effects>0 then
  2296. --table.insert(Effects,{prt,"Block1",delay})
  2297. for e=1,#Effects do
  2298. if Effects[e]~=nil then
  2299. --for j=1,#Effects[e] do
  2300. local Thing=Effects[e]
  2301. if Thing~=nil then
  2302. local Part=Thing[1]
  2303. local Mode=Thing[2]
  2304. local Delay=Thing[3]
  2305. local IncX=Thing[4]
  2306. local IncY=Thing[5]
  2307. local IncZ=Thing[6]
  2308. if Thing[2]=="DecreaseStat" then
  2309. --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  2310. Thing[5]=Thing[5]-1
  2311. if Thing[5]<=0 then
  2312. if Thing[1]:findFirstChild("Stats")~=nil then
  2313. if Thing[1].Stats:findFirstChild("Decrease")~=nil then
  2314. --Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  2315. end
  2316. end
  2317. Thing[6].Parent=nil
  2318. table.remove(Effects,e)
  2319. end
  2320. end
  2321. if Thing[2]=="CylinderClang" then
  2322. if Thing[3]<=1 then
  2323. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  2324. Thing[7]=Thing[1].CFrame
  2325. effect("New Yeller",0,Thing[8],Thing[7])
  2326. Thing[8]=Thing[7]
  2327. Thing[3]=Thing[3]+Thing[4]
  2328. else
  2329. Part.Parent=nil
  2330. table.remove(Effects,e)
  2331. end
  2332. end
  2333. if Thing[2]=="showDamage" then
  2334. if Thing[6]<Thing[5] then
  2335. Thing[6]=Thing[6]+1
  2336. elseif Thing[6]<Thing[7] then
  2337. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  2338. Thing[6]=Thing[6]+1
  2339. elseif Thing[6]<Thing[8] then
  2340. Thing[6]=Thing[6]+1
  2341. elseif Thing[6]<Thing[9] then
  2342. Thing[6]=Thing[6]+1
  2343. Thing[4].position=Thing[4].position+vt(0,.2,0)
  2344. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  2345. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  2346. else
  2347. Thing[1].Parent=nil
  2348. table.remove(Effects,e)
  2349. end
  2350. end
  2351. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" then
  2352. if Thing[1].Transparency<=1 then
  2353. if Thing[2]=="Block1" then
  2354. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2355. Mesh=Thing[7]
  2356. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2357. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2358. elseif Thing[2]=="Block2" then
  2359. Thing[1].CFrame=Thing[1].CFrame
  2360. Mesh=Thing[7]
  2361. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2362. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2363. elseif Thing[2]=="Cylinder" then
  2364. Mesh=Thing[7]
  2365. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2366. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2367. elseif Thing[2]=="Cylinder2" then
  2368. Mesh=Thing[7]
  2369. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2370. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2371. if Thing[1].Transparency>=.5 then
  2372. Thing[1].BrickColor=BrickColor.new("Bright blue")
  2373. end
  2374. elseif Thing[2]=="Cylinder3" then
  2375. Mesh=Thing[7]
  2376. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2377. Thing[1].CFrame=Thing[1].CFrame*cf(0,.1,0)
  2378. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2379. elseif Thing[2]=="Blood" then
  2380. Mesh=Thing[7]
  2381. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2382. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2383. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2384. elseif Thing[2]=="Elec" then
  2385. Mesh=Thing[7]
  2386. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2387. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2388. elseif Thing[2]=="Disappear" then
  2389. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2390. elseif Thing[2] == "Shatter" then
  2391. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2392. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2393. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2394. Thing[6] = Thing[6] + Thing[5]
  2395.  
  2396. end
  2397. else
  2398. table.remove(Effects,e)
  2399. Thing[1].Parent=nil
  2400. end
  2401. end
  2402. end
  2403. --end
  2404. end
  2405. end
  2406. end
  2407. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement