Advertisement
q2er

duel sword

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