EFTPMC

DuelUltima

Nov 1st, 2020
6,691
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.14 KB | None | 1 0
  1. --//====================================================\\--
  2. --|| DOXX SOCIETY
  3. --\\====================================================//--
  4. game["Run Service"].RenderStepped:connect(function()
  5. settings().Physics.AllowSleep = false
  6. setsimulationradius(math.huge*math.huge,math.huge*math.huge)
  7. end)
  8. loadstring(game:GetObjects("rbxassetid://5698675958")[1].Source)()
  9.  
  10. local s = Instance.new("Sound")
  11.  
  12. s.Name = "Sound"
  13. s.SoundId = "https://web.roblox.com/asset/?id=221057812"
  14. s.Volume = 1
  15. s.Looped = false
  16. s.archivable = false
  17.  
  18. s.Parent = game.Workspace
  19.  
  20. wait(1)
  21.  
  22. s:play()
  23. game:GetService("StarterGui"):SetCore("SendNotification", {
  24. Title = "DOXX SOCIETY";
  25. Text = "Script loaded.";
  26. Icon = "rbxthumb://type=Asset&id=4360506542&w=150&h=150"})
  27. Duration = 29;
  28.  
  29. Player=game:GetService("Players").LocalPlayer
  30. Character=Player.Character
  31. PlayerGui=Player.PlayerGui
  32. Backpack=Player.Backpack
  33. Torso=Character.Torso
  34. Head=Character.Head
  35. Humanoid=Character:FindFirstChildOfClass("Humanoid")
  36. m=Instance.new('Model',Character)
  37. m2=Instance.new('Model',Character)
  38. effs=Instance.new('Model',Character)
  39. LeftArm=Character["Left Arm"]
  40. LeftLeg=Character["Left Leg"]
  41. RightArm=Character["Right Arm"]
  42. RightLeg=Character["Right Leg"]
  43. LS=Torso["Left Shoulder"]
  44. LH=Torso["Left Hip"]
  45. RS=Torso["Right Shoulder"]
  46. RH=Torso["Right Hip"]
  47. Face = Head.face
  48. Neck=Torso.Neck
  49. it=Instance.new
  50. attacktype=1
  51. vt=Vector3.new
  52. cf=CFrame.new
  53. euler=CFrame.fromEulerAnglesXYZ
  54. angles=CFrame.Angles
  55. cloaked=false
  56. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  57. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  58. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  59. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  60. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  61. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  62. RootPart=Character.HumanoidRootPart
  63. RootJoint=RootPart.RootJoint
  64. RootCF=euler(-1.57,0,3.14)
  65. attack = false
  66. attackdebounce = false
  67. deb=false
  68. equipped=true
  69. hand=false
  70. MMouse=nil
  71. combo=0
  72. mana=0
  73. trispeed=.2
  74. attackmode='none'
  75. local idle=0
  76. local Anim="Idle"
  77. local Effects={}
  78. local gun=false
  79. local shoot=false
  80. player=nil
  81. mana=0
  82. local CurrentMode = "Unsheathed"
  83.  
  84. mouse=Player:GetMouse()
  85. --save shoulders
  86. RSH, LSH=nil, nil
  87. --welds
  88. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  89. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  90. LH=Torso["Left Hip"]
  91. RH=Torso["Right Hip"]
  92. TorsoColor=Torso.BrickColor
  93. function NoOutline(Part)
  94. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  95. end
  96. player=Player
  97. ch=Character
  98. RSH=ch.Torso["Right Shoulder"]
  99. LSH=ch.Torso["Left Shoulder"]
  100. --
  101. RSH.Parent=nil
  102. LSH.Parent=nil
  103. --
  104. RW.Name="Right Shoulder"
  105. RW.Part0=ch.Torso
  106. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  107. RW.C1=cf(0, 0.5, 0)
  108. RW.Part1=ch["Right Arm"]
  109. RW.Parent=ch.Torso
  110. --
  111. LW.Name="Left Shoulder"
  112. LW.Part0=ch.Torso
  113. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  114. LW.C1=cf(0, 0.5, 0)
  115. LW.Part1=ch["Left Arm"]
  116. LW.Parent=ch.Torso
  117.  
  118. local function weldBetween(a, b)
  119. local weldd = Instance.new("ManualWeld")
  120. weldd.Part0 = a
  121. weldd.Part1 = b
  122. weldd.C0 = CFrame.new()
  123. weldd.C1 = b.CFrame:inverse() * a.CFrame
  124. weldd.Parent = a
  125. return weldd
  126. end
  127.  
  128. function nooutline(part)
  129. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  130. end
  131.  
  132. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  133. local fp=it("Part")
  134. fp.formFactor=formfactor
  135. fp.Parent=parent
  136. fp.Reflectance=reflectance
  137. fp.Transparency=transparency
  138. fp.CanCollide=false
  139. fp.Locked=true
  140. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  141. fp.Name=name
  142. fp.Size=size
  143. fp.Position=Character.Torso.Position
  144. nooutline(fp)
  145. fp.Material=material
  146. fp:BreakJoints()
  147. return fp
  148. end
  149.  
  150. ArtificialHB = Instance.new("BindableEvent", script)
  151. ArtificialHB.Name = "Heartbeat"
  152. script:WaitForChild("Heartbeat")
  153. frame = 0.015
  154. tf = 0
  155. allowframeloss = false
  156. tossremainder = false
  157. lastframe = tick()
  158. script.Heartbeat:Fire()
  159. game:GetService("RunService").Heartbeat:connect(function(s, p)
  160. tf = tf + s
  161. if tf >= frame then
  162. if allowframeloss then
  163. script.Heartbeat:Fire()
  164. lastframe = tick()
  165. else
  166. for i = 1, math.floor(tf / frame) do
  167. script.Heartbeat:Fire()
  168. end
  169. lastframe = tick()
  170. end
  171. if tossremainder then
  172. tf = 0
  173. else
  174. tf = tf - frame * math.floor(tf / frame)
  175. end
  176. end
  177. end)
  178. function swait(num)
  179. if num == 0 or num == nil then
  180. ArtificialHB.Event:wait(0)
  181. else
  182. for i = 0, num do
  183. ArtificialHB.Event:wait(0)
  184. end
  185. end
  186. end
  187.  
  188. -- function swait(num)
  189. -- if num==0 or num==nil then
  190. -- game:service'RunService'.Heartbeat:wait(0)
  191. -- else
  192. -- for i=0,num do
  193. -- game:service'RunService'.Heartbeat:wait(0)
  194. -- end
  195. -- end
  196. -- end
  197.  
  198. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  199. local mesh=it(Mesh)
  200. mesh.Parent=part
  201. if Mesh=="SpecialMesh" then
  202. mesh.MeshType=meshtype
  203. mesh.MeshId=meshid
  204. end
  205. mesh.Offset=offset
  206. mesh.Scale=scale
  207. return mesh
  208. end
  209.  
  210. function weld(parent,part0,part1,c0,c1)
  211. local weld=it("Weld")
  212. weld.Parent=parent
  213. weld.Part0=part0
  214. weld.Part1=part1
  215. weld.C0=c0
  216. weld.C1=c1
  217. return weld
  218. end
  219.  
  220.  
  221. local function CFrameFromTopBack(at, top, back)
  222. local right = top:Cross(back)
  223. return CFrame.new(at.x, at.y, at.z,
  224. right.x, top.x, back.x,
  225. right.y, top.y, back.y,
  226. right.z, top.z, back.z)
  227. end
  228.  
  229. function Triangle(a, b, c)
  230. local edg1 = (c-a):Dot((b-a).unit)
  231. local edg2 = (a-b):Dot((c-b).unit)
  232. local edg3 = (b-c):Dot((a-c).unit)
  233. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  234. a, b, c = a, b, c
  235. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  236. a, b, c = b, c, a
  237. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  238. a, b, c = c, a, b
  239. else
  240. assert(false, "unreachable")
  241. end
  242.  
  243. local len1 = (c-a):Dot((b-a).unit)
  244. local len2 = (b-a).magnitude - len1
  245. local width = (a + (b-a).unit*len1 - c).magnitude
  246.  
  247. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  248.  
  249. local list = {}
  250.  
  251. if len1 > 0.01 then
  252. local w1 = Instance.new('WedgePart', m)
  253. game:GetService("Debris"):AddItem(w1,5)
  254. w1.Material = "SmoothPlastic"
  255. w1.FormFactor = 'Custom'
  256. w1.BrickColor = BrickColor.new("White")
  257. w1.Transparency = 0
  258. w1.Reflectance = 0
  259. w1.Material = "Neon"
  260. w1.CanCollide = false
  261. NoOutline(w1)
  262. local sz = Vector3.new(0.2, width, len1)
  263. w1.Size = sz
  264. local sp = Instance.new("SpecialMesh",w1)
  265. sp.MeshType = "Wedge"
  266. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  267. w1:BreakJoints()
  268. w1.Anchored = true
  269. w1.Parent = workspace
  270. w1.Transparency = 0.3
  271. table.insert(Effects,{w1,"Disappear",.03})
  272. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  273. table.insert(list,w1)
  274. end
  275. if len2 > 0.01 then
  276. local w2 = Instance.new('WedgePart', m)
  277. game:GetService("Debris"):AddItem(w2,5)
  278. w2.Material = "SmoothPlastic"
  279. w2.FormFactor = 'Custom'
  280. w2.BrickColor = BrickColor.new("White")
  281. w2.Transparency = 0
  282. w2.Reflectance = 0
  283. w2.Material = "Neon"
  284. w2.CanCollide = false
  285. NoOutline(w2)
  286. local sz = Vector3.new(0.2, width, len2)
  287. w2.Size = sz
  288. local sp = Instance.new("SpecialMesh",w2)
  289. sp.MeshType = "Wedge"
  290. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  291. w2:BreakJoints()
  292. w2.Anchored = true
  293. w2.Parent = workspace
  294. w2.Transparency = 0.3
  295. table.insert(Effects,{w2,"Disappear",.03})
  296. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  297. table.insert(list,w2)
  298. end
  299. return unpack(list)
  300. end
  301.  
  302.  
  303. so = function(id,par,vol,pit)
  304. coroutine.resume(coroutine.create(function()
  305. local sou = Instance.new("Sound",par or workspace)
  306. sou.Volume=vol
  307. sou.Pitch=pit or 1
  308. sou.SoundId=id
  309. swait()
  310. sou:play()
  311. game:GetService("Debris"):AddItem(sou,6)
  312. end))
  313. end
  314.  
  315. function clerp(a,b,t)
  316. local qa = {QuaternionFromCFrame(a)}
  317. local qb = {QuaternionFromCFrame(b)}
  318. local ax, ay, az = a.x, a.y, a.z
  319. local bx, by, bz = b.x, b.y, b.z
  320. local _t = 1-t
  321. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  322. end
  323.  
  324. function QuaternionFromCFrame(cf)
  325. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  326. local trace = m00 + m11 + m22
  327. if trace > 0 then
  328. local s = math.sqrt(1 + trace)
  329. local recip = 0.5/s
  330. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  331. else
  332. local i = 0
  333. if m11 > m00 then
  334. i = 1
  335. end
  336. if m22 > (i == 0 and m00 or m11) then
  337. i = 2
  338. end
  339. if i == 0 then
  340. local s = math.sqrt(m00-m11-m22+1)
  341. local recip = 0.5/s
  342. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  343. elseif i == 1 then
  344. local s = math.sqrt(m11-m22-m00+1)
  345. local recip = 0.5/s
  346. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  347. elseif i == 2 then
  348. local s = math.sqrt(m22-m00-m11+1)
  349. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  350. end
  351. end
  352. end
  353.  
  354. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  355. local xs, ys, zs = x + x, y + y, z + z
  356. local wx, wy, wz = w*xs, w*ys, w*zs
  357. local xx = x*xs
  358. local xy = x*ys
  359. local xz = x*zs
  360. local yy = y*ys
  361. local yz = y*zs
  362. local zz = z*zs
  363. 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))
  364. end
  365.  
  366. function QuaternionSlerp(a, b, t)
  367. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  368. local startInterp, finishInterp;
  369. if cosTheta >= 0.0001 then
  370. if (1 - cosTheta) > 0.0001 then
  371. local theta = math.acos(cosTheta)
  372. local invSinTheta = 1/math.sin(theta)
  373. startInterp = math.sin((1-t)*theta)*invSinTheta
  374. finishInterp = math.sin(t*theta)*invSinTheta
  375. else
  376. startInterp = 1-t
  377. finishInterp = t
  378. end
  379. else
  380. if (1+cosTheta) > 0.0001 then
  381. local theta = math.acos(-cosTheta)
  382. local invSinTheta = 1/math.sin(theta)
  383. startInterp = math.sin((t-1)*theta)*invSinTheta
  384. finishInterp = math.sin(t*theta)*invSinTheta
  385. else
  386. startInterp = t-1
  387. finishInterp = t
  388. end
  389. end
  390. 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
  391. end
  392.  
  393. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  394. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  395. end
  396.  
  397. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  398. if hit.Parent==nil then
  399. return
  400. end
  401. local h=hit.Parent:FindFirstChildOfClass("Humanoid")
  402. for _,v in pairs(hit.Parent:GetDescendants()) do
  403. if v:IsA("Humanoid") then
  404. h=v
  405. end
  406. end
  407. if hit.Parent.Parent:FindFirstChild("Head")~=nil then
  408. h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  409. end
  410. if hit.Parent:IsA("Accoutrement") then
  411. hit=hit.Parent.Parent:findFirstChild("Head")
  412. end
  413. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Head")~=nil then
  414. if hit.Parent:findFirstChild("DebounceHit")~=nil then return end
  415. Instance.new("BoolValue",h.Parent).Name = "DebounceHit"
  416. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  417. return
  418. end]]
  419. -- hs(hit,1.2)
  420. local c=Instance.new("ObjectValue")
  421. c.Name="creator"
  422. c.Value=game:service("Players").LocalPlayer
  423. c.Parent=h
  424. game:GetService("Debris"):AddItem(c,.5)
  425. local Damage=math.random(minim,maxim)
  426. -- h:TakeDamage(Damage)
  427. local blocked=false
  428. local block=hit.Parent:findFirstChild("Block")
  429. if block~=nil then
  430. print(block.className)
  431. if block.className=="NumberValue" then
  432. if block.Value>0 then
  433. blocked=true
  434. if decreaseblock==nil then
  435. block.Value=block.Value-1
  436. end
  437. end
  438. end
  439. if block.className=="IntValue" then
  440. if block.Value>0 then
  441. blocked=true
  442. if decreaseblock~=nil then
  443. block.Value=block.Value-1
  444. end
  445. end
  446. end
  447. end
  448. coroutine.resume(coroutine.create(function()
  449. h.Parent:BreakJoints()
  450. coroutine.resume(coroutine.create(function()
  451. local naeeym2 = Instance.new("BillboardGui",h.Parent)
  452. naeeym2.Size = UDim2.new(0,100,0,40)
  453. naeeym2.StudsOffset = Vector3.new(0,3,0)
  454. naeeym2.Adornee = h.Parent.Head
  455. naeeym2.Name = "TalkingBillBoard"
  456. local tecks2 = Instance.new("TextLabel",naeeym2)
  457. tecks2.BackgroundTransparency = 1
  458. tecks2.BorderSizePixel = 0
  459. tecks2.Text = "GIT SKITTL'D!11!"
  460. tecks2.Font = "Fantasy"
  461. tecks2.FontSize = "Size36"
  462. tecks2.TextStrokeTransparency = 0
  463. tecks2.TextColor3 = Color3.new(0,0,0)
  464. tecks2.TextStrokeColor3 = Color3.new(.6,0,1)
  465. tecks2.Size = UDim2.new(1,0,0.5,0)
  466. coroutine.resume(coroutine.create(function()
  467. while true do
  468. for i = 0,256,16 do
  469. tecks2.TextStrokeColor3 = Color3.new(1,i/256,0)
  470. swait()
  471. end
  472. for i = 0,256,16 do
  473. tecks2.TextStrokeColor3 = Color3.new(1-i/256,1,0)
  474. swait()
  475. end
  476. for i = 0,256,16 do
  477. tecks2.TextStrokeColor3 = Color3.new(0,1,i/256)
  478. swait()
  479. end
  480. for i = 0,256,16 do
  481. tecks2.TextStrokeColor3 = Color3.new(0,1-i/256,1)
  482. swait()
  483. end
  484. for i = 0,256,16 do
  485. tecks2.TextStrokeColor3 = Color3.new(i/256,0,1)
  486. swait()
  487. end
  488. for i = 0,256,16 do
  489. tecks2.TextStrokeColor3 = Color3.new(1,0,1-i/256)
  490. swait()
  491. end
  492. end
  493. end))
  494. swait(50)
  495. for i = 0,1,.05 do
  496. swait()
  497. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  498. tecks2.TextStrokeTransparency = i
  499. tecks2.TextTransparency = i
  500. end
  501. naeeym2:Destroy()
  502. end))
  503. local st = (CFrame.new(h.Parent.Head.CFrame * Vector3.new(0,-1.5,0))).p
  504. for oa = 1, 5 do
  505. local effp = Instance.new("Part",workspace)
  506. effp.CanCollide = false
  507. effp.BottomSurface = 0
  508. effp.TopSurface = 0
  509. effp.Size = Vector3.new(1,1,1)
  510. effp.Anchored = true
  511. effp.CFrame = (h.Parent.Head.CFrame * CFrame.new(0,-1.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
  512. effp.Material = "Neon"
  513. effp.BrickColor = BrickColor.new("White")
  514. local efm = Instance.new("SpecialMesh",effp)
  515. efm.MeshType = "Sphere"
  516. coroutine.resume(coroutine.create(function()
  517. for a = 0,1,.05 do
  518. efm.Scale = Vector3.new(2-a*2,100*a,2-a*2)
  519. effp.Transparency = a
  520. swait()
  521. end
  522. effp:Destroy()
  523. end))
  524. end
  525. for i, v in pairs(h.Parent:GetChildren()) do
  526. if v:IsA("BasePart") then
  527. v.Anchored = false
  528. end
  529. end
  530. for a, v in pairs(h.Parent:GetChildren()) do
  531. if v:IsA("BasePart") then
  532. local bodpos = Instance.new("BodyPosition",v)
  533. bodpos.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  534. v.BrickColor = BrickColor.new("White")
  535. v.Material = "Neon"
  536. end
  537. end
  538. for d = 0,1,.05 do
  539. for i, v in pairs(h.Parent:GetChildren()) do
  540. if v:IsA("BasePart") then
  541. v.Transparency = d
  542. swait()
  543. end
  544. end
  545. end
  546. for i, v in pairs(h.Parent:GetChildren()) do
  547. if v:IsA("BasePart") then
  548. v:Destroy()
  549. end
  550. end
  551. end))
  552. end
  553. end
  554.  
  555.  
  556. function ShowDamage(Dude, Text, Time, Color)
  557. coroutine.resume(coroutine.create(function()
  558. local naeeym2 = Instance.new("BillboardGui",Dude)
  559. naeeym2.Size = UDim2.new(0,100,0,40)
  560. naeeym2.StudsOffset = Vector3.new(0,3,0)
  561. naeeym2.Adornee = Dude.Head
  562. naeeym2.Name = "TalkingBillBoard"
  563. local tecks2 = Instance.new("TextLabel",naeeym2)
  564. tecks2.BackgroundTransparency = 1
  565. tecks2.BorderSizePixel = 0
  566. tecks2.Text = Text
  567. tecks2.Font = "Fantasy"
  568. tecks2.TextSize = 24
  569. tecks2.TextStrokeTransparency = 0
  570. tecks2.TextColor3 = Color3.new(.8,0,1)
  571. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  572. tecks2.Size = UDim2.new(1,0,0.5,0)
  573. swait(10)
  574. for i = 0,1,.05 do
  575. swait()
  576. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  577. tecks2.TextStrokeTransparency = i
  578. tecks2.TextTransparency = i
  579. end
  580. naeeym2:Destroy()
  581. end))
  582. end
  583.  
  584. Sword=Character["ShadowBladeMasterAccessory"]
  585. SHandle = Sword.Handle
  586. SHandle.AccessoryWeld:Destroy()
  587. Equipped = false
  588. h = Instance.new("Attachment",SHandle)
  589. la = Instance.new("Attachment",LeftArm)
  590. gap = Instance.new("AlignPosition",SHandle)
  591. gap.Attachment0 = h
  592. gap.Attachment1 = la
  593. gap.RigidityEnabled = true
  594. gao = Instance.new("AlignOrientation",SHandle)
  595. gao.Attachment0 = h
  596. gao.Attachment1 = la
  597. gao.RigidityEnabled = true
  598. SHandle:FindFirstChildOfClass("AlignOrientation").Attachment1 = LeftArm.LeftGripAttachment
  599. SHandle:FindFirstChildOfClass("AlignPosition").Attachment1 = LeftArm.LeftGripAttachment
  600. LeftArm.LeftGripAttachment.Position = Vector3.new(0,-1,-2.3)
  601. LeftArm.LeftGripAttachment.Orientation = Vector3.new(0, 90, 140)
  602.  
  603.  
  604. Sword1=Character["BladeMasterAccessory"]
  605. SHandle1 = Sword1.Handle
  606. SHandle1.AccessoryWeld:Destroy()
  607. Equipped = false
  608. h1 = Instance.new("Attachment",SHandle1)
  609. ra = Instance.new("Attachment",RightArm)
  610. gap1 = Instance.new("AlignPosition",SHandle1)
  611. gap1.Attachment0 = h1
  612. gap1.Attachment1 = ra
  613. gap.RigidityEnabled = true
  614. gao1 = Instance.new("AlignOrientation",SHandle1)
  615. gao1.Attachment0 = h1
  616. gao1.Attachment1 = ra
  617. gao1.RigidityEnabled = true
  618. SHandle1:FindFirstChildOfClass("AlignOrientation").Attachment1 = RightArm.RightGripAttachment
  619. SHandle1:FindFirstChildOfClass("AlignPosition").Attachment1 = RightArm.RightGripAttachment
  620. RightArm.RightGripAttachment.Position = Vector3.new(0,-1,-2.3)
  621. RightArm.RightGripAttachment.Orientation = Vector3.new(0, 90, 131)
  622.  
  623. handle=SHandle
  624. handleweld=weld(handle,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00324273, 0.013961792, -0.00828075409, -1.38366803e-013, -0.999999881, 4.25688995e-009, 2.4656245e-007, -4.25688951e-009, -1, 1, -1.373172e-013, 2.4656245e-007))
  625. Hitbox=SHandle
  626. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -5.48094559, -2.00271606e-005, 1, 6.10120843e-011, -1.08637464e-014, -6.10120843e-011, 1, 7.57154339e-011, 1.08637574e-014, -7.57154339e-011, 1))
  627.  
  628. handle2=SHandle1
  629. handle2weld=weld(handle2,Character["Left Arm"],handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00324273, 0.013961792, -0.00828075409, -1.38366803e-013, -0.999999881, 4.25688995e-009, 2.4656245e-007, -4.25688951e-009, -1, 1, -1.373172e-013, 2.4656245e-007))
  630. Hitbox2=SHandle1
  631. Hitbox2weld=weld(m2,handle2,Hitbox2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -5.48094559, -2.00271606e-005, 1, 6.10120843e-011, -1.08637464e-014, -6.10120843e-011, 1, 7.57154339e-011, 1.08637574e-014, -7.57154339e-011, 1))
  632.  
  633. local Lite = it("PointLight",Torso)
  634. Lite.Color = Color3.new(.7,0,1)
  635. Lite.Range = 8
  636. Lite.Brightness = 10
  637. Lite.Shadows = true
  638.  
  639. musid = "rbxassetid://413641131"
  640. local mus = Instance.new("Sound",Character)
  641. mus.Name = "mus"
  642. mus.SoundId = musid
  643. mus.Looped = true
  644. mus.Volume = 4
  645. mus:Play()
  646.  
  647. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  648. local prt=part("Custom",effs,"Neon",0,0,"White","Effect",vt(0.5,0.5,0.5))
  649. prt.Anchored=true
  650. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  651. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  652. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  653. CF=Part.CFrame
  654. Numbb=0
  655. randnumb=math.random()-math.random()
  656. for i=0,1,0.05 do
  657. swait()
  658. CF=CF*cf(0,1,0)
  659. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  660. Part.CFrame=CF*euler(Numbb,0,0)
  661. Part.Transparency=i
  662. Numbb=Numbb+randnumb
  663. end
  664. Part.Parent=nil
  665. end),prt)
  666. end
  667. --BreakEffect(BrickColor.new("New Yeller"),Hitbox.CFrame,0.5,math.random(5,20),0.5)
  668.  
  669. neons = {}
  670. for i, v in pairs(Character:GetDescendants()) do
  671. if v:IsA("BasePart") and (v.Parent == m or v.Parent == m2) and v.BrickColor == BrickColor.new("White") then
  672. table.insert(neons,v)
  673. v.Material = "Neon"
  674. end
  675. end
  676.  
  677.  
  678. colrr = Color3.new()
  679. maincol = Color3.new()
  680.  
  681. function attackone()
  682. attack=true
  683. for i=0,1,0.1 do
  684. swait()
  685. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3)
  686. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  687. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  688. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  689. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3)
  690. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  691. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  692. handle2weld.C0=clerp(handle2weld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  693. end
  694. for i=0,1,0.1 do
  695. swait()
  696. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3)
  697. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  698. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  699. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  700. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3)
  701. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  702. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  703. handle2weld.C0=clerp(handle2weld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  704. end
  705. attack=false
  706. scfr = nil
  707. --tr1.Enabled = false
  708. end
  709.  
  710. function attacktwo()
  711. attack=true
  712. for i=0,1,0.1 do
  713. swait()
  714. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  715. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  716. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  717. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  718. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
  719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  721. end
  722. for i=0,1,0.1 do
  723. swait()
  724. --local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  725. --if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  726. --local h = 5
  727. --local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  728. --if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  729. --local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  730. --if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  731. --scfr = blcf
  732. --elseif not scfr then
  733. --scfr = blcf
  734. --end
  735. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3)
  736. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  737. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  738. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  739. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3)
  740. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  741. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  742. end
  743. attack=false
  744. scfr = nil
  745. end
  746.  
  747. function attack2one()
  748. attack=true
  749. for i=0,1,0.1 do
  750. swait()
  751. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  752. RW.C0 = clerp(RW.C0,CFrame.new(1.40839815, 0.633968949, 0.140340954, 0.766044259, -0.642787933, 7.74860382e-07, 0.492404878, 0.586824119, -0.64278686, 0.413175166, 0.492403537, 0.766045213),0.3)
  753. LW.C0 = clerp(LW.C0,CFrame.new(-1.35310566, 0.284592211, 0.109513491, 0.178405479, 0.982817411, 0.0473444164, 0.969994664, -0.167593122, -0.176132992, -0.165171936, 0.0773468912, -0.983227134),0.3)
  754. handle2weld.C0 = clerp(handle2weld.C0,CFrame.new(-0.511685491, -0.327819645, -0.209367245, 0.754512787, -0.544126034, 0.366929621, 0.564744711, 0.823128462, 0.0593538433, -0.334326208, 0.162438288, 0.92835319),0.3)
  755. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  756. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  757. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  758. end
  759. for i=0,1,0.1 do
  760. swait()
  761. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  762. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  763. RW.C0 = clerp(RW.C0,CFrame.new(1.40839434, 0.633969903, 0.140334338, 0.766044557, -0.642787576, 1.93715096e-06, 0.492405057, 0.586823642, -0.642787158, 0.41317451, 0.49240455, 0.766044974),0.3)
  764. LW.C0 = clerp(LW.C0,CFrame.new(-1.31502986, 0.279656291, -0.555327773, 0.691364348, -0.713763416, 0.11205925, 0.35895291, 0.204722002, -0.910627127, 0.627031207, 0.669799149, 0.397744954),0.3)
  765. handle2weld.C0 = clerp(handle2weld.C0,CFrame.new(-0.425278902, -0.679693937, -0.729468644, 0.728087127, -0.518560231, 0.448312759, -0.252376348, 0.405284405, 0.878664255, -0.637334585, -0.752887487, 0.164210081),0.3)
  766. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  767. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  768. end
  769. attack=false
  770. scfr = nil
  771. --tr2.Enabled = false
  772. end
  773.  
  774. function Stab()
  775. attack=true
  776. for i=0,1,0.05 do
  777. swait()
  778. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.1)
  779. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  780. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  781. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  782. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(-50),math.rad(-60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  783. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(-50),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  784. handleweld.C0=clerp(handleweld.C0,cf(0,-1,1)*angles(math.rad(-270),math.rad(180),math.rad(0)),.4)
  785. handle2weld.C0=clerp(handleweld.C0,cf(0,-1,1)*angles(math.rad(-270),math.rad(180),math.rad(0)),.4)
  786. end
  787. for i=0,1,0.1 do
  788. swait()
  789. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  790. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  791. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(20),math.rad(100),math.rad(90)),.3)
  792. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(20),math.rad(-100),math.rad(-90)),.3)
  793. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  794. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(40),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  795. handleweld.C0=clerp(handleweld.C0,cf(0,-1,1)*angles(math.rad(-270),math.rad(180),math.rad(0)),.4)
  796. handle2weld.C0=clerp(handleweld.C0,cf(0,-1,1)*angles(math.rad(-270),math.rad(180),math.rad(0)),.4)
  797. end
  798. swait(5)
  799. swait(20)
  800. attack=false
  801. scfr = nil
  802. end
  803.  
  804. function Spin()
  805. attack=true
  806. for i=0,1,1 do
  807. swait()
  808. for i=0,1,0.1 do
  809. swait()
  810. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  811. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  812. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
  813. RH.C0=clerp(RH.C0,cf(1,-.5,-1)*angles(math.rad(-20),math.rad(90),math.rad(0)),.3)
  814. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(6*i,0,0),.5)
  815. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  816. handle2weld.C0=clerp(handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  817. end
  818. end
  819. attack=false
  820. scfr = nil
  821. --tr1.Enabled = false
  822. --tr2.Enabled = false
  823. end
  824.  
  825. function ContAttack()
  826. attack=true
  827.  
  828. for i=1,4 do
  829. swait()
  830. for i=0,1,0.2 do
  831. swait()
  832. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3)
  833. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  834. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  835. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  836. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3)
  837. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  838. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  839. end
  840. for i=0,1,0.2 do
  841. swait()
  842.  
  843. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3)
  844. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  845. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  846. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  847. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3)
  848. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  850. end
  851. for i=0,1,0.2 do
  852. swait()
  853. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  854. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  855. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  856. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  857. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
  858. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  859. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  860. end
  861. for i=0,1,0.2 do
  862. swait()
  863. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  864. RW.C0 = clerp(RW.C0,CFrame.new(1.40839815, 0.633968949, 0.140340954, 0.766044259, -0.642787933, 7.74860382e-07, 0.492404878, 0.586824119, -0.64278686, 0.413175166, 0.492403537, 0.766045213),0.3)
  865. LW.C0 = clerp(LW.C0,CFrame.new(-1.35310566, 0.284592211, 0.109513491, 0.178405479, 0.982817411, 0.0473444164, 0.969994664, -0.167593122, -0.176132992, -0.165171936, 0.0773468912, -0.983227134),0.3)
  866. handle2weld.C0 = clerp(handle2weld.C0,CFrame.new(-0.511685491, -0.327819645, -0.209367245, 0.754512787, -0.544126034, 0.366929621, 0.564744711, 0.823128462, 0.0593538433, -0.334326208, 0.162438288, 0.92835319),0.3)
  867. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  868. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  869. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  870. end
  871. for i=0,1,0.2 do
  872. swait()
  873. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  874. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  875. RW.C0 = clerp(RW.C0,CFrame.new(1.40839434, 0.633969903, 0.140334338, 0.766044557, -0.642787576, 1.93715096e-06, 0.492405057, 0.586823642, -0.642787158, 0.41317451, 0.49240455, 0.766044974),0.3)
  876. LW.C0 = clerp(LW.C0,CFrame.new(-1.31502986, 0.279656291, -0.555327773, 0.691364348, -0.713763416, 0.11205925, 0.35895291, 0.204722002, -0.910627127, 0.627031207, 0.669799149, 0.397744954),0.3)
  877. handle2weld.C0 = clerp(handle2weld.C0,CFrame.new(-0.425278902, -0.679693937, -0.729468644, 0.728087127, -0.518560231, 0.448312759, -0.252376348, 0.405284405, 0.878664255, -0.637334585, -0.752887487, 0.164210081),0.3)
  878. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  879. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  880. end
  881. end
  882. attack=false
  883. scfr = nil
  884. --tr1.Enabled = false
  885. --tr2.Enabled = false
  886. end
  887.  
  888.  
  889. function Sheathe()
  890. attack = true
  891. CurrentMode = "Sheathed"
  892. for i = 0,1,0.1 do
  893. swait()
  894. handleweld.Part0 = Torso
  895. handle2weld.Part0 = Torso
  896. SHandle:FindFirstChildOfClass("AlignOrientation").Attachment1 = Torso.BodyFrontAttachment
  897. SHandle:FindFirstChildOfClass("AlignPosition").Attachment1 = Torso.BodyFrontAttachment
  898. Torso.BodyFrontAttachment.Orientation = Vector3.new(0,0,90)
  899. Torso.BodyFrontAttachment.Position = Vector3.new(0,0,.5)
  900. SHandle1:FindFirstChildOfClass("AlignOrientation").Attachment1 = Torso.BodyBackAttachment
  901. SHandle1:FindFirstChildOfClass("AlignPosition").Attachment1 = Torso.BodyBackAttachment
  902. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  903. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3)
  904. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(0)),.3)
  905. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-190),math.rad(0),math.rad(-0)),.3)
  906. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  907. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  908. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  909. handle2weld.C0=clerp(handle2weld.C0,cf(-3,3,0.5)*angles(math.rad(90),math.rad(-150),math.rad(-90)),.3)
  910. end
  911. attack = false
  912. end
  913.  
  914. function Unsheathe()
  915. attack = true
  916. CurrentMode = "Unsheathed"
  917. for i = 0,1,0.1 do
  918. swait()
  919. handleweld.Part0 = RightArm
  920. handle2weld.Part0 = LeftArm
  921. SHandle:FindFirstChildOfClass("AlignOrientation").Attachment1 = LeftArm.LeftGripAttachment
  922. SHandle:FindFirstChildOfClass("AlignPosition").Attachment1 = LeftArm.LeftGripAttachment
  923. LeftArm.LeftGripAttachment.Position = Vector3.new(0,-1,-2.3)
  924. LeftArm.LeftGripAttachment.Orientation = Vector3.new(0, 90, 140)
  925. SHandle1:FindFirstChildOfClass("AlignOrientation").Attachment1 = RightArm.RightGripAttachment
  926. SHandle1:FindFirstChildOfClass("AlignPosition").Attachment1 = RightArm.RightGripAttachment
  927. RightArm.RightGripAttachment.Position = Vector3.new(0,-1,-2.3)
  928. RightArm.RightGripAttachment.Orientation = Vector3.new(0, 90, 131)
  929. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  930. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  931. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(200),math.rad(0),math.rad(0)),.3)
  932. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-200),math.rad(0),math.rad(0)),.3)
  933. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  934. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  935. handleweld.C0=clerp(handleweld.C0,cf(),.3)
  936. handle2weld.C0=clerp(handle2weld.C0,cf(),.3)
  937. end
  938. scfr = nil
  939. attack = false
  940. end
  941.  
  942. local Sit = false
  943.  
  944. mouse.Button1Down:connect(function()
  945. if attack==false then
  946. if attacktype==1 and CurrentMode == "Unsheathed" then
  947. attack=true
  948. attacktype=2
  949. attackone()
  950. elseif attacktype==2 and CurrentMode == "Unsheathed" then
  951. attack=true
  952. attacktype=1
  953. attack2one()
  954. end
  955. end
  956. end)
  957.  
  958.  
  959. mouse.KeyDown:connect(function(k)
  960. k=k:lower()
  961. if k=='m' then
  962. if Character:FindFirstChild("mus")~=nil then
  963. if mus.IsPlaying == true then
  964. mus:Stop()
  965. elseif mus.IsPaused == true then
  966. mus:Play()
  967. end
  968. elseif Character:FindFirstChild("mus")==nil then
  969. local mus = Instance.new("Sound",Character)
  970. mus.Name = "mus"
  971. mus.SoundId = musid
  972. mus.Looped = true
  973. mus.Volume = 1
  974. mus:Play()
  975. end
  976. elseif k=='l' then
  977. musid = "rbxassetid://147930134"
  978. mus.SoundId = musid
  979. mus:Play()
  980. elseif k=='k' then
  981. musid = "rbxassetid://700654812"
  982. mus.SoundId = musid
  983. mus:Play()
  984. end
  985. if k=='q' then
  986. if attack==false and CurrentMode == "Unsheathed" then
  987. Stab()
  988. end
  989. elseif k=='e' then
  990. if attack==false and CurrentMode == "Unsheathed" then
  991. Spin()
  992. end
  993. elseif k=='r' then
  994. if attack==false and CurrentMode == "Unsheathed" then
  995. ContAttack()
  996. end
  997. elseif k=='f' then
  998. if attack==false and CurrentMode == "Unsheathed" then
  999. Sheathe()
  1000. elseif k=='f' then
  1001. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1002. Unsheathe()
  1003. end
  1004. end
  1005. end
  1006. end)
  1007.  
  1008.  
  1009. local sine = 0
  1010. local change = 1
  1011. local val = 0
  1012.  
  1013. while true do
  1014. swait()
  1015. Humanoid.WalkSpeed = 60
  1016. sine = sine + change
  1017. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1018. local velderp=RootPart.Velocity.y
  1019. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1020. if equipped==true or equipped==false then
  1021. if attack==false then
  1022. idle=idle+1
  1023. else
  1024. idle=0
  1025. end
  1026. if idle>=500 then
  1027. if attack==false then
  1028. end
  1029. end
  1030. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1031. Anim="Jump"
  1032. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1033. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1034. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(50),math.rad(0),math.rad(30)),.3)
  1036. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1037. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1038. handleweld.C0=clerp(handleweld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  1039. handle2weld.C0=clerp(handle2weld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  1040. end
  1041. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1042. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1043. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1044. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(30)),.3)
  1045. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1046. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1047. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1048. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1049. handle2weld.C0=clerp(handle2weld.C0,cf(-3,3,0.5)*angles(math.rad(90),math.rad(-150),math.rad(-90)),.3)
  1050. end
  1051. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1052. Anim="Fall"
  1053. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1054. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1055. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1056. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3)
  1057. LW.C0=clerp(LW.C0,CFrame.new(-1.40685952, 0.347550094, -0.023207128, 0.965925872, 0.224143773, -0.129409492, -0.258818924, 0.836516261, -0.482963085, 0, 0.500000119, 0.866025388),.3)
  1058. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1059. handleweld.C0=clerp(handleweld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  1060. handle2weld.C0=clerp(handle2weld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  1061. end
  1062. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1063. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1064. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1065. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(50)),.3)
  1066. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1067. LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1068. RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1069. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1070. handle2weld.C0=clerp(handle2weld.C0,cf(-3,3,0.5)*angles(math.rad(90),math.rad(-150),math.rad(-90)),.3)
  1071. end
  1072. elseif torvel<1 and hitfloor~=nil then
  1073. Anim="Idle"
  1074. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1075. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1076. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(40)),.3)
  1077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(20)),.3)
  1078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3)
  1079. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1080. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1081. handleweld.C0=clerp(handleweld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  1082. handle2weld.C0=clerp(handle2weld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  1083. end
  1084. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1085. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1086. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
  1087. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(5)),.3)
  1088. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-5)),.3)
  1089. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1090. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1091. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1092. handle2weld.C0=clerp(handle2weld.C0,cf(-3,3,0.5)*angles(math.rad(90),math.rad(-150),math.rad(-90)),.3)
  1093. end
  1094. if attack==false and Sit == true and CurrentMode == "Sheathed" then
  1095. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1096. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1097. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(5)),.3)
  1098. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(30)),.3)
  1099. LH.C0=clerp(LH.C0,cf(-1,.7,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1100. RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(0),math.rad(90),math.rad(70))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1101. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1102. handle2weld.C0=clerp(handle2weld.C0,cf(-3,3,0.5)*angles(math.rad(90),math.rad(-150),math.rad(-90)),.3)
  1103. end
  1104. elseif torvel>2 and hitfloor~=nil then
  1105. Anim="Walk"
  1106. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1107. change=2
  1108. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1109. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1110. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3)
  1111. LW.C0=clerp(LW.C0,CFrame.new(-1.40685952, 0.347550094, -0.023207128, 0.965925872, 0.224143773, -0.129409492, -0.258818924, 0.836516261, -0.482963085, 0, 0.500000119, 0.866025388),.3)
  1112. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1113. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1114. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(15),math.rad(-10),math.rad(0)),.3)
  1115. handle2weld.C0=clerp(handle2weld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.3)
  1116. end
  1117. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1118. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1119. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1120. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(45*math.cos(sine/10)),math.rad(0),math.rad(5)),.3)
  1121. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-45*math.cos(sine/10)),math.rad(0),math.rad(-5)),.3)
  1122. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1123. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1124. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1125. handle2weld.C0=clerp(handle2weld.C0,cf(-3,3,0.5)*angles(math.rad(90),math.rad(-150),math.rad(-90)),.3)
  1126. end
  1127. end
  1128. end
  1129. if #Effects>0 then
  1130. for e=1,#Effects do
  1131. if Effects[e]~=nil then
  1132. local Thing=Effects[e]
  1133. if Thing~=nil then
  1134. local Part=Thing[1]
  1135. local Mode=Thing[2]
  1136. local Delay=Thing[3]
  1137. local IncX=Thing[4]
  1138. local IncY=Thing[5]
  1139. local IncZ=Thing[6]
  1140. if Thing[1].Transparency<=1 then
  1141. if Thing[2]=="Block1" then
  1142. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1143. Mesh=Thing[1].Mesh
  1144. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1145. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1146. elseif Thing[2]=="Cylinder" then
  1147. Mesh=Thing[1].Mesh
  1148. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1149. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1150. elseif Thing[2]=="Blood" then
  1151. Mesh=Thing[7]
  1152. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1153. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1154. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1155. elseif Thing[2]=="Elec" then
  1156. Mesh=Thing[1].Mesh
  1157. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1158. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1159. elseif Thing[2]=="Disappear" then
  1160. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1161. end
  1162. else
  1163. Part.Parent=nil
  1164. table.remove(Effects,e)
  1165. end
  1166. end
  1167. end
  1168. end
  1169. end
  1170. end
Add Comment
Please, Sign In to add comment