Advertisement
Guest User

X-Event Chara

a guest
Mar 17th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.26 KB | None | 0 0
  1. -----------------------
  2. --XEvent Chara--
  3. -----------------------
  4.  
  5. function swait(num)
  6. if num==0 or num==nil then
  7. game:service'RunService'.Stepped:wait(0)
  8. else
  9. for i=0,num do
  10. game:service'RunService'.Stepped:wait(0)
  11. end
  12. end
  13. end
  14. function thread(f)
  15. coroutine.resume(coroutine.create(f))
  16. end
  17.  
  18. --Needed to add this for a good reason, thank me later mak.
  19. so = function(id,par,vol,pit)
  20. coroutine.resume(coroutine.create(function()
  21. local sou = Instance.new("Sound",par or workspace)
  22. sou.Volume=vol
  23. sou.Pitch=pit or 1
  24. sou.SoundId=id
  25. swait()
  26. sou:play()
  27. game:GetService("Debris"):AddItem(sou,8)
  28. end))
  29. end
  30.  
  31.  
  32. function clerp(a, b, t)
  33. local qa = {
  34. QuaternionFromCFrame(a)
  35. }
  36. local qb = {
  37. QuaternionFromCFrame(b)
  38. }
  39. local ax, ay, az = a.x, a.y, a.z
  40. local bx, by, bz = b.x, b.y, b.z
  41. local _t = 1 - t
  42. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  43. end
  44. function QuaternionFromCFrame(cf)
  45. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  46. local trace = m00 + m11 + m22
  47. if trace > 0 then
  48. local s = math.sqrt(1 + trace)
  49. local recip = 0.5 / s
  50. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  51. else
  52. local i = 0
  53. if m00 < m11 then
  54. i = 1
  55. end
  56. if m22 > (i == 0 and m00 or m11) then
  57. i = 2
  58. end
  59. if i == 0 then
  60. local s = math.sqrt(m00 - m11 - m22 + 1)
  61. local recip = 0.5 / s
  62. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  63. elseif i == 1 then
  64. local s = math.sqrt(m11 - m22 - m00 + 1)
  65. local recip = 0.5 / s
  66. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  67. elseif i == 2 then
  68. local s = math.sqrt(m22 - m00 - m11 + 1)
  69. local recip = 0.5 / s
  70. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  71. end
  72. end
  73. end
  74. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  75. local xs, ys, zs = x + x, y + y, z + z
  76. local wx, wy, wz = w * xs, w * ys, w * zs
  77. local xx = x * xs
  78. local xy = x * ys
  79. local xz = x * zs
  80. local yy = y * ys
  81. local yz = y * zs
  82. local zz = z * zs
  83. 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))
  84. end
  85. function QuaternionSlerp(a, b, t)
  86. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  87. local startInterp, finishInterp
  88. if cosTheta >= 1.0E-4 then
  89. if 1 - cosTheta > 1.0E-4 then
  90. local theta = math.acos(cosTheta)
  91. local invSinTheta = 1 / math.sin(theta)
  92. startInterp = math.sin((1 - t) * theta) * invSinTheta
  93. finishInterp = math.sin(t * theta) * invSinTheta
  94. else
  95. startInterp = 1 - t
  96. finishInterp = t
  97. end
  98. elseif 1 + cosTheta > 1.0E-4 then
  99. local theta = math.acos(-cosTheta)
  100. local invSinTheta = 1 / math.sin(theta)
  101. startInterp = math.sin((t - 1) * theta) * invSinTheta
  102. finishInterp = math.sin(t * theta) * invSinTheta
  103. else
  104. startInterp = t - 1
  105. finishInterp = t
  106. end
  107. 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
  108. end
  109. function rayCast(Position, Direction, Range, Ignore)
  110. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  111. end
  112. --Wait what okay
  113. wait()
  114. local plr = game:service'Players'.LocalPlayer
  115. local char = plr.Character
  116. local hum = char.Humanoid
  117. local ra = char["Right Arm"]
  118. local la= char["Left Arm"]
  119. local rl= char["Right Leg"]
  120. local ll = char["Left Leg"]
  121. local hed = char.Head
  122. local root = char.HumanoidRootPart
  123. local rootj = root.RootJoint
  124. local tors = char.Torso
  125. local mouse = plr:GetMouse()
  126. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  127. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  128. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  129. local maincolor = BrickColor.new("Dark indigo")
  130. cf = CFrame.new
  131. angles = CFrame.Angles
  132. attack = false
  133. euler=CFrame.fromEulerAnglesXYZ
  134. equipped = false
  135. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  136. RSH, LSH = nil, nil
  137. RW = Instance.new("Weld")
  138. LW = Instance.new("Weld")
  139. RH = tors["Right Hip"]
  140. LH = tors["Left Hip"]
  141. RSH = tors["Right Shoulder"]
  142. LSH = tors["Left Shoulder"]
  143. RSH.Parent = nil
  144. LSH.Parent = nil
  145. RW.Name = "RW"
  146. RW.Part0 = tors
  147. RW.C0 = CFrame.new(1.5, 0.5, 0)
  148. RW.C1 = CFrame.new(0, 0.5, 0)
  149. RW.Part1 = ra
  150. RW.Parent = tors
  151. LW.Name = "LW"
  152. LW.Part0 = tors
  153. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  154. LW.C1 = CFrame.new(0, 0.5, 0)
  155. LW.Part1 = la
  156. LW.Parent = tors
  157. print('User is '..plr.Name)
  158. Effects = {}
  159.  
  160. ArtificialHB = Instance.new("BindableEvent", script)
  161. ArtificialHB.Name = "Heartbeat"
  162.  
  163. script:WaitForChild("Heartbeat")
  164.  
  165. frame = 1 / 60
  166. tf = 0
  167. allowframeloss = false
  168. tossremainder = false
  169. lastframe = tick()
  170. script.Heartbeat:Fire()
  171.  
  172. game:GetService("RunService").Heartbeat:connect(function(s, p)
  173. tf = tf + s
  174. if tf >= frame then
  175. if allowframeloss then
  176. script.Heartbeat:Fire()
  177. lastframe = tick()
  178. else
  179. for i = 1, math.floor(tf / frame) do
  180. script.Heartbeat:Fire()
  181. end
  182. lastframe = tick()
  183. end
  184. if tossremainder then
  185. tf = 0
  186. else
  187. tf = tf - frame * math.floor(tf / frame)
  188. end
  189. end
  190. end)
  191. local RbxUtility = LoadLibrary("RbxUtility")
  192. local Create = RbxUtility.Create
  193.  
  194. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  195. if hit.Parent == nil then
  196. return
  197. end
  198. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  199. for _, v in pairs(hit.Parent:children()) do
  200. if v:IsA("Humanoid") then
  201. h.MaxHealth = 100
  202. h = v
  203. end
  204. end
  205. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  206. warn'R15 bad'
  207. hit.Parent:FindFirstChild("Head"):BreakJoints()
  208. end
  209.  
  210. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  211. h.MaxHealth = 100
  212. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  213. if hit.Parent.DebounceHit.Value == true then
  214. return
  215. end
  216. end
  217. if insta == true then
  218. hit.Parent:FindFirstChild("Head"):BreakJoints()
  219. end
  220. local c = Create("ObjectValue"){
  221. Name = "creator",
  222. Value = game:service("Players").LocalPlayer,
  223. Parent = h,
  224. }
  225. game:GetService("Debris"):AddItem(c, .5)
  226. if HitSound ~= nil and HitPitch ~= nil then
  227. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  228. end
  229. local Damage = 30
  230. local blocked = false
  231. local block = hit.Parent:findFirstChild("Block")
  232. if block ~= nil then
  233. if block.className == "IntValue" then
  234. if block.Value > 0 then
  235. blocked = true
  236. block.Value = block.Value - 1
  237. print(block.Value)
  238. end
  239. end
  240. end
  241. if blocked == false then
  242. h.Health = h.Health - Damage
  243. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  244. else
  245. h.Health = h.Health - (Damage / 2)
  246. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  247. end
  248. if Type == "Knockdown" then
  249. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  250. hum.PlatformStand = true
  251. coroutine.resume(coroutine.create(function(HHumanoid)
  252. swait(1)
  253. HHumanoid.PlatformStand = false
  254. end), hum)
  255. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  256. local bodvol = Create("BodyVelocity"){
  257. velocity = angle * knockback,
  258. P = 5000,
  259. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  260. Parent = hit,
  261. }
  262. local rl = Create("BodyAngularVelocity"){
  263. P = 3000,
  264. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  265. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  266. Parent = hit,
  267. }
  268. game:GetService("Debris"):AddItem(bodvol, .5)
  269. game:GetService("Debris"):AddItem(rl, .5)
  270. elseif Type == "Normal" then
  271. local vp = Create("BodyVelocity"){
  272. P = 500,
  273. maxForce = Vector3.new(math.huge, 0, math.huge),
  274. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  275. }
  276. if knockback > 0 then
  277. vp.Parent = hit.Parent.Torso
  278. end
  279. game:GetService("Debris"):AddItem(vp, .5)
  280. elseif Type == "Up" then
  281. local bodyVelocity = Create("BodyVelocity"){
  282. velocity = Vector3.new(0, 20, 0),
  283. P = 5000,
  284. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  285. Parent = hit,
  286. }
  287. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  288. elseif Type == "DarkUp" then
  289. coroutine.resume(coroutine.create(function()
  290. for i = 0, 1, 0.1 do
  291. swait()
  292. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  293. end
  294. end))
  295. local bodyVelocity = Create("BodyVelocity"){
  296. velocity = Vector3.new(0, 20, 0),
  297. P = 5000,
  298. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  299. Parent = hit,
  300. }
  301. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  302. elseif Type == "Snare" then
  303. local bp = Create("BodyPosition"){
  304. P = 2000,
  305. D = 100,
  306. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  307. position = hit.Parent.Torso.Position,
  308. Parent = hit.Parent.Torso,
  309. }
  310. game:GetService("Debris"):AddItem(bp, 1)
  311. elseif Type == "Freeze" then
  312. local BodPos = Create("BodyPosition"){
  313. P = 50000,
  314. D = 1000,
  315. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  316. position = hit.Parent.Torso.Position,
  317. Parent = hit.Parent.Torso,
  318. }
  319. local BodGy = Create("BodyGyro") {
  320. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  321. P = 20e+003,
  322. Parent = hit.Parent.Torso,
  323. cframe = hit.Parent.Torso.CFrame,
  324. }
  325. hit.Parent.Torso.Anchored = true
  326. coroutine.resume(coroutine.create(function(Part)
  327. swait(1.5)
  328. Part.Anchored = false
  329. end), hit.Parent.Torso)
  330. game:GetService("Debris"):AddItem(BodPos, 3)
  331. game:GetService("Debris"):AddItem(BodGy, 3)
  332. end
  333. local debounce = Create("BoolValue"){
  334. Name = "DebounceHit",
  335. Parent = hit.Parent,
  336. Value = true,
  337. }
  338. game:GetService("Debris"):AddItem(debounce, Delay)
  339. c = Create("ObjectValue"){
  340. Name = "creator",
  341. Value = Player,
  342. Parent = h,
  343. }
  344. game:GetService("Debris"):AddItem(c, .5)
  345. end
  346. end
  347.  
  348. function ShowDamage(Pos, Text, Time, Color)
  349. local Rate = (1 / 30)
  350. local Pos = (Pos or Vector3.new(0, 0, 0))
  351. local Text = (Text or "")
  352. local Time = (Time or 2)
  353. local Color = (Color or Color3.new(1, 0, 1))
  354. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  355. EffectPart.Anchored = true
  356. local BillboardGui = Create("BillboardGui"){
  357. Size = UDim2.new(3, 0, 3, 0),
  358. Adornee = EffectPart,
  359. Parent = EffectPart,
  360. }
  361. local TextLabel = Create("TextLabel"){
  362. BackgroundTransparency = 1,
  363. Size = UDim2.new(1, 0, 1, 0),
  364. Text = Text,
  365. Font = "Highway",
  366. TextColor3 = Color,
  367. TextScaled = true,
  368. Parent = BillboardGui,
  369. }
  370. game.Debris:AddItem(EffectPart, (Time))
  371. EffectPart.Parent = game:GetService("Workspace")
  372. delay(0, function()
  373. local Frames = (Time / Rate)
  374. for Frame = 1, Frames do
  375. wait(Rate)
  376. local Percent = (Frame / Frames)
  377. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  378. TextLabel.TextTransparency = Percent
  379. end
  380. if EffectPart and EffectPart.Parent then
  381. EffectPart:Destroy()
  382. end
  383. end)
  384. end
  385. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  386. for _, c in pairs(workspace:children()) do
  387. local hum = c:findFirstChildOfClass("Humanoid")
  388. if hum ~= nil then
  389. hum.MaxHealth = 100
  390. local head = c:findFirstChild("Head")
  391. if head ~= nil then
  392. local targ = head.Position - Part.Position
  393. local mag = targ.magnitude
  394. if magni >= mag and c.Name ~= plr.Name then
  395. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=623904185", 5.2)
  396. end
  397. end
  398. end
  399. end
  400. end
  401. function MagniKILL(Part, magni, knock, Type)
  402. for _, c in pairs(workspace:children()) do
  403. local hum = c:findFirstChildOfClass("Humanoid")
  404. if hum ~= nil then
  405. local head = c:findFirstChild("Head")
  406. if head ~= nil then
  407. local targ = head.Position - Part.Position
  408. local mag = targ.magnitude
  409. if magni >= mag and c.Name ~= plr.Name then
  410. hum.Health = 0
  411. end
  412. end
  413. end
  414. end
  415. end
  416. CFuncs = {
  417. Part = {
  418. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  419. local Part = Create("Part")({
  420. Parent = Parent,
  421. Reflectance = Reflectance,
  422. Transparency = Transparency,
  423. CanCollide = false,
  424. Locked = true,
  425. BrickColor = BrickColor.new(tostring(BColor)),
  426. Name = Name,
  427. Size = Size,
  428. Material = Material
  429. })
  430. RemoveOutlines(Part)
  431. return Part
  432. end
  433. },
  434. Mesh = {
  435. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  436. local Msh = Create(Mesh)({
  437. Parent = Part,
  438. Offset = OffSet,
  439. Scale = Scale
  440. })
  441. if Mesh == "SpecialMesh" then
  442. Msh.MeshType = MeshType
  443. Msh.MeshId = MeshId
  444. end
  445. return Msh
  446. end
  447. },
  448. Mesh = {
  449. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  450. local Msh = Create(Mesh)({
  451. Parent = Part,
  452. Offset = OffSet,
  453. Scale = Scale
  454. })
  455. if Mesh == "SpecialMesh" then
  456. Msh.MeshType = MeshType
  457. Msh.MeshId = MeshId
  458. end
  459. return Msh
  460. end
  461. },
  462. Weld = {
  463. Create = function(Parent, Part0, Part1, C0, C1)
  464. local Weld = Create("Weld")({
  465. Parent = Parent,
  466. Part0 = Part0,
  467. Part1 = Part1,
  468. C0 = C0,
  469. C1 = C1
  470. })
  471. return Weld
  472. end
  473. },
  474. Sound = {
  475. Create = function(id, par, vol, pit)
  476. coroutine.resume(coroutine.create(function()
  477. local S = Create("Sound")({
  478. Volume = vol,
  479. Pitch = pit or 1,
  480. SoundId = id,
  481. Parent = par or workspace
  482. })
  483. wait()
  484. S:play()
  485. game:GetService("Debris"):AddItem(S, 6)
  486. end))
  487. end
  488. },
  489. ParticleEmitter = {
  490. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  491. local fp = Create("ParticleEmitter")({
  492. Parent = Parent,
  493. Color = ColorSequence.new(Color1, Color2),
  494. LightEmission = LightEmission,
  495. Size = Size,
  496. Texture = Texture,
  497. Transparency = Transparency,
  498. ZOffset = ZOffset,
  499. Acceleration = Accel,
  500. Drag = Drag,
  501. LockedToPart = LockedToPart,
  502. VelocityInheritance = VelocityInheritance,
  503. EmissionDirection = EmissionDirection,
  504. Enabled = Enabled,
  505. Lifetime = LifeTime,
  506. Rate = Rate,
  507. Rotation = Rotation,
  508. RotSpeed = RotSpeed,
  509. Speed = Speed,
  510. VelocitySpread = VelocitySpread
  511. })
  512. return fp
  513. end
  514. }
  515. }
  516. function RemoveOutlines(part)
  517. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  518. end
  519. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  520. local Part = Create("Part")({
  521. formFactor = FormFactor,
  522. Parent = Parent,
  523. Reflectance = Reflectance,
  524. Transparency = Transparency,
  525. CanCollide = false,
  526. Locked = true,
  527. BrickColor = BrickColor.new(tostring(BColor)),
  528. Name = Name,
  529. Size = Size,
  530. Material = Material
  531. })
  532. RemoveOutlines(Part)
  533. return Part
  534. end
  535. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  536. local Msh = Create(Mesh)({
  537. Parent = Part,
  538. Offset = OffSet,
  539. Scale = Scale
  540. })
  541. if Mesh == "SpecialMesh" then
  542. Msh.MeshType = MeshType
  543. Msh.MeshId = MeshId
  544. end
  545. return Msh
  546. end
  547. function CreateWeld(Parent, Part0, Part1, C0, C1)
  548. local Weld = Create("Weld")({
  549. Parent = Parent,
  550. Part0 = Part0,
  551. Part1 = Part1,
  552. C0 = C0,
  553. C1 = C1
  554. })
  555. return Weld
  556. end
  557. EffectModel = Instance.new("Model", char)
  558. Effects = {
  559. Block = {
  560. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  561. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  562. prt.Anchored = true
  563. prt.CFrame = cframe
  564. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  565. game:GetService("Debris"):AddItem(prt, 10)
  566. if Type == 1 or Type == nil then
  567. table.insert(Effects, {
  568. prt,
  569. "Block1",
  570. delay,
  571. x3,
  572. y3,
  573. z3,
  574. msh
  575. })
  576. elseif Type == 2 then
  577. table.insert(Effects, {
  578. prt,
  579. "Block2",
  580. delay,
  581. x3,
  582. y3,
  583. z3,
  584. msh
  585. })
  586. else
  587. table.insert(Effects, {
  588. prt,
  589. "Block3",
  590. delay,
  591. x3,
  592. y3,
  593. z3,
  594. msh
  595. })
  596. end
  597. end
  598. },
  599. Sphere = {
  600. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  601. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  602. prt.Anchored = true
  603. prt.CFrame = cframe
  604. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  605. game:GetService("Debris"):AddItem(prt, 10)
  606. table.insert(Effects, {
  607. prt,
  608. "Cylinder",
  609. delay,
  610. x3,
  611. y3,
  612. z3,
  613. msh
  614. })
  615. end
  616. },
  617. Cylinder = {
  618. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  619. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  620. prt.Anchored = true
  621. prt.CFrame = cframe
  622. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  623. game:GetService("Debris"):AddItem(prt, 10)
  624. table.insert(Effects, {
  625. prt,
  626. "Cylinder",
  627. delay,
  628. x3,
  629. y3,
  630. z3,
  631. msh
  632. })
  633. end
  634. },
  635. Wave = {
  636. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  637. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  638. prt.Anchored = true
  639. prt.CFrame = cframe
  640. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  641. game:GetService("Debris"):AddItem(prt, 10)
  642. table.insert(Effects, {
  643. prt,
  644. "Cylinder",
  645. delay,
  646. x3 / 60,
  647. y3 / 60,
  648. z3 / 60,
  649. msh
  650. })
  651. end
  652. },
  653. Ring = {
  654. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  655. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  656. prt.Anchored = true
  657. prt.CFrame = cframe
  658. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  659. game:GetService("Debris"):AddItem(prt, 10)
  660. table.insert(Effects, {
  661. prt,
  662. "Cylinder",
  663. delay,
  664. x3,
  665. y3,
  666. z3,
  667. msh
  668. })
  669. end
  670. },
  671. Break = {
  672. Create = function(brickcolor, cframe, x1, y1, z1)
  673. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  674. prt.Anchored = true
  675. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  676. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  677. local num = math.random(10, 50) / 1000
  678. game:GetService("Debris"):AddItem(prt, 10)
  679. table.insert(Effects, {
  680. prt,
  681. "Shatter",
  682. num,
  683. prt.CFrame,
  684. math.random() - math.random(),
  685. 0,
  686. math.random(50, 100) / 100
  687. })
  688. end
  689. }
  690. }
  691. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  692. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  693. prt.Anchored = true
  694. prt.CFrame = cframe
  695. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  696. game:GetService("Debris"):AddItem(prt, 10)
  697. if Type == 1 or Type == nil then
  698. table.insert(Effects, {
  699. prt,
  700. "Block1",
  701. delay,
  702. x3,
  703. y3,
  704. z3,
  705. msh
  706. })
  707. elseif Type == 2 then
  708. table.insert(Effects, {
  709. prt,
  710. "Block2",
  711. delay,
  712. x3,
  713. y3,
  714. z3,
  715. msh
  716. })
  717. elseif Type == 3 then
  718. table.insert(Effects, {
  719. prt,
  720. "Block3",
  721. delay,
  722. x3,
  723. y3,
  724. z3,
  725. msh
  726. })
  727. end
  728. end
  729. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  730. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  731. prt.Anchored = true
  732. prt.CFrame = cframe
  733. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  734. game:GetService("Debris"):AddItem(prt, 10)
  735. table.insert(Effects, {
  736. prt,
  737. "Cylinder",
  738. delay,
  739. x3,
  740. y3,
  741. z3,
  742. msh
  743. })
  744. end
  745. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  746. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  747. prt.Anchored = true
  748. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  749. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  750. game:GetService("Debris"):AddItem(prt, 10)
  751. table.insert(Effects, {
  752. prt,
  753. "Cylinder",
  754. delay,
  755. x3,
  756. y3,
  757. z3,
  758. msh
  759. })
  760. end
  761. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  762. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  763. prt.Anchored = true
  764. prt.CFrame = cframe
  765. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  766. game:GetService("Debris"):AddItem(prt, 10)
  767. table.insert(Effects, {
  768. prt,
  769. "Cylinder",
  770. delay,
  771. x3,
  772. y3,
  773. z3,
  774. msh
  775. })
  776. end
  777. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  778. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  779. prt.Anchored = true
  780. prt.CFrame = cframe
  781. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  782. game:GetService("Debris"):AddItem(prt, 10)
  783. table.insert(Effects, {
  784. prt,
  785. "Cylinder",
  786. delay,
  787. x3,
  788. y3,
  789. z3,
  790. msh
  791. })
  792. end
  793. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  794. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  795. prt.Anchored = true
  796. prt.CFrame = cframe
  797. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  798. game:GetService("Debris"):AddItem(prt, 10)
  799. table.insert(Effects, {
  800. prt,
  801. "Cylinder",
  802. delay,
  803. x3,
  804. y3,
  805. z3,
  806. msh
  807. })
  808. end
  809. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  810. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  811. prt.Anchored = true
  812. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  813. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  814. local num = math.random(10, 50) / 1000
  815. game:GetService("Debris"):AddItem(prt, 10)
  816. table.insert(Effects, {
  817. prt,
  818. "Shatter",
  819. num,
  820. prt.CFrame,
  821. math.random() - math.random(),
  822. 0,
  823. math.random(50, 100) / 100
  824. })
  825. end
  826. function CreateSound(ID, PARENT, VOLUME, PITCH)
  827. local NEWSOUND = nil
  828. coroutine.resume(coroutine.create(function()
  829. NEWSOUND = Instance.new("Sound", PARENT)
  830. NEWSOUND.Volume = VOLUME
  831. NEWSOUND.Pitch = PITCH
  832. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  833. swait()
  834. NEWSOUND:play()
  835. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  836. end))
  837. return NEWSOUND
  838. end
  839.  
  840.  
  841. --[[
  842. Thanks for using Build-To-Lua by jarredbcv.
  843. ]]--
  844.  
  845. New = function(Object, Parent, Name, Data)
  846. local Object = Instance.new(Object)
  847. for Index, Value in pairs(Data or {}) do
  848. Object[Index] = Value
  849. end
  850. Object.Parent = Parent
  851. Object.Name = Name
  852. return Object
  853. end
  854.  
  855. XBlade = New("Model",char,"XBlade",{})
  856. Handle = New("Part",XBlade,"Handle",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2, 0.119999982, 0.119999982),CFrame = CFrame.new(-44.0486794, 1.89940667, 173.921341, 0.99009043, -0.134159163, -0.0414969474, 0.0418755226, -2.00014849e-09, 0.999122798, -0.134041354, -0.990959466, 0.00561797712),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  857. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-41.3519974, 0.784493208, 173.553787, 0.134159118, 0.931669831, -0.337627381, -1.78345172e-10, 0.340707511, 0.940169215, 0.990959346, -0.126132146, 0.0457089804),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  858. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.93166995, 0.340707511, -0.12613225, -0.337627441, 0.940169275, 0.0457090214),C1 = CFrame.new(2.67253876, 0.00244140625, -1.22790456, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  859. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.92999995, 0.0500000156),CFrame = CFrame.new(-44.0702477, 1.93928599, 173.921783, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  860. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(-0.019744873, 0.00245666504, 0.0407419205, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  861. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-40.7464447, 1.01027775, 173.471802, 0.134159118, 0.903306067, -0.407478601, -1.78345172e-10, 0.411195904, 0.911546826, 0.990959346, -0.122292183, 0.0551656336),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  862. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.903306186, 0.411195934, -0.122292288, -0.40747866, 0.911546886, 0.0551656857),C1 = CFrame.new(3.29253769, 0.00245666504, -1.02790737, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  863. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.130000025),CFrame = CFrame.new(-39.0396805, 1.93485165, 173.240723, 0.134159118, 0.86384666, -0.48556143, -1.78345172e-10, 0.489991099, 0.871727467, 0.990959346, -0.116950043, 0.065736711),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  864. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863846779, 0.489991099, -0.116950139, -0.48556149, 0.871727467, 0.0657367632),C1 = CFrame.new(5.05207825, 0.00245666504, -0.176268101, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  865. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-40.2101974, 1.23313034, 173.3992, 0.134159118, 0.88381362, -0.448190004, -1.78345172e-10, 0.452278793, 0.891876459, 0.990959346, -0.119653247, 0.0606772564),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  866. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.883813798, 0.452278793, -0.119653352, -0.448190093, 0.891876578, 0.0606773123),C1 = CFrame.new(3.84253311, 0.00245666504, -0.827910662, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  867. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-41.9794464, 0.607830167, 173.638718, 0.134159118, 0.966715217, -0.217858434, -1.78345172e-10, 0.219845936, 0.975534439, 0.990959346, -0.130876735, 0.0294943117),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  868. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.966715395, 0.219845951, -0.130876839, -0.217858493, 0.975534499, 0.0294943396),C1 = CFrame.new(2.03252411, 0.00245666504, -1.37789822, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  869. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.08000004, 0.0500000156),CFrame = CFrame.new(-42.5497932, 0.498351336, 173.715927, 0.134159118, 0.975934744, -0.171907738, -1.78345172e-10, 0.17347604, 0.984838009, 0.990959346, -0.132124841, 0.0232733674),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  870. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.975934923, 0.17347604, -0.132124975, -0.171907783, 0.984838068, 0.0232733898),C1 = CFrame.new(1.45289612, 0.00247192383, -1.46317959, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  871. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.92999995, 0.0500000156),CFrame = CFrame.new(-44.0665131, 1.84935343, 173.92128, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  872. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(-0.019744873, 0.00245666504, -0.0492696762, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  873. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-42.5316505, 0.708744168, 173.713501, 0.134159118, 0.975934744, -0.171907738, -1.78345172e-10, 0.17347604, 0.984838009, 0.990959346, -0.132124841, 0.0232733674),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  874. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.975934923, 0.17347604, -0.132124975, -0.171907783, 0.984838068, 0.0232733898),C1 = CFrame.new(1.47999573, 0.00244140625, -1.25373793, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  875. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.079999879, 0.149999917, 0.100000016),CFrame = CFrame.new(-45.0332489, 1.85846865, 174.05719, 0.134159118, -0.0414969884, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418755673, 0.990959346, 0.00561798224, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  876. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, -0.0414970033, 0.999122858, 0.00561798783, -0.990090549, -0.0418755673, 0.134041384),C1 = CFrame.new(-0.994735718, -0.00253295898, 0.000717639923, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  877. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.52999997, 0.0500000156),CFrame = CFrame.new(-43.0991249, 1.12461293, 173.790329, 0.134159118, -0.041496899, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418754779, 0.990959346, 0.0056179706, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  878. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 1.60021901e-16, 0.990959764, -0.0414969139, 0.999122858, 0.00561797619, -0.990090549, -0.0418754779, 0.134041384),C1 = CFrame.new(0.925262451, 0.00244140625, -0.814253807, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  879. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-41.8233681, 0.848814011, 173.617599, 0.134159118, 0.949757814, -0.282773912, -1.78345172e-10, 0.285353601, 0.958422184, 0.990959346, -0.128580973, 0.0382827483),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  880. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.949757874, 0.285353601, -0.128581077, -0.282773942, 0.958422303, 0.0382827818),C1 = CFrame.new(2.19998169, 0.00245666504, -1.14372134, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  881. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 0.0799999386, 0.0500000156),CFrame = CFrame.new(-43.1370964, 2.03881836, 173.795456, 0.134159118, -0.041496899, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418754779, 0.990959346, 0.0056179706, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  882. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 1.60021901e-16, 0.990959764, -0.0414969139, 0.999122858, 0.00561797619, -0.990090549, -0.0418754779, 0.134041384),C1 = CFrame.new(0.925262451, 0.00245666504, 0.100754261, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  883. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-38.9191017, 1.90829134, 173.224411, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  884. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(5.17253876, 0.00245666504, -0.207900524, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  885. Wedge = New("WedgePart",XBlade,"Wedge",{BrickColor = BrickColor.new("Pearl"),Material = Enum.Material.Neon,Size = Vector3.new(0.0799999461, 4.97000027, 1.66999996),CFrame = CFrame.new(-40.6379662, 1.33008528, 173.459518, 0.134159088, 0.990090489, -0.0414969511, -3.48056417e-10, 0.0418755226, 0.999122798, 0.990959585, -0.134041339, 0.00561797852),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  886. mot = New("Motor",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(3.41497803, 7.62939453e-05, -0.712950706, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  887. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-40.5334549, 1.31371856, 173.442963, 0.134159118, 0.888382077, -0.439065397, -1.78345172e-10, 0.443070978, 0.89648658, 0.990959346, -0.120271713, 0.059441939),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  888. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.888382196, 0.443070978, -0.120271817, -0.439065516, 0.89648664, 0.0594419949),C1 = CFrame.new(3.51998901, 0.00245666504, -0.733733177, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  889. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-39.8037491, 1.65485072, 173.344177, 0.134159118, 0.879470766, -0.456653416, -1.78345172e-10, 0.460819334, 0.887493968, 0.990959346, -0.1190653, 0.0618230514),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  890. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.879470944, 0.460819364, -0.119065404, -0.456653476, 0.887494028, 0.0618231073),C1 = CFrame.new(4.26998901, 0.00245666504, -0.423735619, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  891. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.02999997, 0.0500000156),CFrame = CFrame.new(-38.633503, 2.03729534, 173.18576, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  892. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(5.46588898, 0.00244140625, -0.0910782814, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  893. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-39.5588799, 1.55094099, 173.311005, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  894. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(4.51252747, 0.00247192383, -0.537901878, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  895. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 5, 0.0500000156),CFrame = CFrame.new(-40.6833267, 2.18262863, 173.463257, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
  896. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(3.40526581, 0.00245666504, 0.140748024, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  897. Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-41.1286964, 1.07836723, 173.523544, 0.134159118, 0.920541048, -0.36688596, -1.78345172e-10, 0.37023294, 0.928938925, 0.990959346, -0.124625482, 0.0496700779),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  898. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.920541227, 0.37023297, -0.124625586, -0.36688602, 0.928938985, 0.0496701226),C1 = CFrame.new(2.9099884, 0.00245666504, -0.943724632, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
  899.  
  900.  
  901. HeartLocket = New("Model",char,"Heart Locket",{})
  902. Heart = New("Hat",HeartLocket,"Heart",{})
  903. Handle2 = New("Part",Heart,"Handle2",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0500000007, 0.0500000007, 0.25),CFrame = CFrame.new(-42.7335167, 3.20922303, 175.050156, 0.14691636, -0.00137452304, -0.989146531, 0.00403097179, 0.999989152, -0.00079088629, 0.98914516, -0.00387096009, 0.14692001),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  904. Mesh = New("SpecialMesh",Handle2,"Mesh",{Scale = Vector3.new(2, 2, 1),MeshId = "http://www.roblox.com/asset/?id=105992239",MeshType = Enum.MeshType.FileMesh,})
  905. String = New("Part",HeartLocket,"String",{BrickColor = BrickColor.new("Burnt Sienna"),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-43.4914551, 3.64470506, 175.102722, 0.0703944117, 0, -0.997525692, 0, 1, 0, 0.997519255, 0, 0.0703952685),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.415686, 0.223529, 0.0352941),})
  906. Mesh = New("SpecialMesh",String,"Mesh",{Scale = Vector3.new(1.10000002, 1, 0.949999988),VertexColor = Vector3.new(0, 0, 0),MeshId = "http://www.roblox.com/asset/?id=34237901",MeshType = Enum.MeshType.FileMesh,})
  907.  
  908.  
  909. for _, v in pairs(XBlade:GetChildren()) do
  910. if v:IsA'BasePart' then
  911. v.CanCollide = false
  912. end
  913. end
  914.  
  915.  
  916.  
  917. local NewInstance = function(instance,parent,properties)
  918. local inst = Instance.new(instance,parent)
  919. if(properties)then
  920. for i,v in next, properties do
  921. pcall(function() inst[i] = v end)
  922. end
  923. end
  924. return inst;
  925. end
  926. local HW = NewInstance('Weld',char,{Part0=ra,Part1=Handle,C0 = CFrame.new(0,-.9,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(90))})
  927. local Locket = NewInstance('Weld',char,{Part0=hed,Part1=String,C0 = CFrame.new(0,-.9,0.1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))})
  928. local HeartL = NewInstance('Weld',char,{Part0=hed,Part1=Handle2,C0 = CFrame.new(0,-1.3,-0.7)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))})
  929.  
  930.  
  931.  
  932.  
  933. --Chat Function--
  934. function chatfunc(text,waitt)
  935. local chat = coroutine.wrap(function()
  936. if char:FindFirstChild("TalkingBillBoard")~= nil then
  937. char:FindFirstChild("TalkingBillBoard").Parent = nil
  938. end
  939. local naeeym2 = Instance.new("BillboardGui",char)
  940. naeeym2.Size = UDim2.new(0,100,0,40)
  941. naeeym2.StudsOffset = Vector3.new(0,2,0)
  942. naeeym2.Adornee = char.Head
  943. naeeym2.Name = "TalkingBillBoard"
  944. naeeym2.AlwaysOnTop = true
  945. local tecks2 = Instance.new("TextLabel",naeeym2)
  946. tecks2.BackgroundTransparency = 1
  947. tecks2.BorderSizePixel = 0
  948. tecks2.Text = ""
  949. tecks2.Font = "Code"
  950. tecks2.TextSize = 30
  951. tecks2.TextStrokeTransparency = 0
  952. tecks2.TextColor3 = Color3.fromRGB(255,255,255)
  953. tecks2.TextStrokeColor3 = Color3.fromRGB(98, 37, 209)
  954. tecks2.Size = UDim2.new(1,0,0.5,0)
  955. for i = 1,string.len(text),1 do
  956. tecks2.Text = string.sub(text,1,i)
  957. swait(3)
  958. end
  959. wait(waitt/10)
  960. coroutine.resume(coroutine.create(function()
  961. for i = 1, 10 do
  962. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  963. swait()
  964. end
  965. naeeym2:Destroy()
  966. end))
  967. end)
  968. chat()
  969. end
  970.  
  971. local asd = Instance.new("ParticleEmitter")
  972. asd.Color = ColorSequence.new(Color3.new(.5, 0, 0), Color3.new(.3, 0, 0))
  973. asd.LightEmission = .1
  974. asd.Size = NumberSequence.new(0.2)
  975. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  976. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  977. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  978. asd.Transparency = bbb
  979. asd.Size = aaa
  980. asd.ZOffset = .9
  981. asd.Acceleration = Vector3.new(0, -5, 0)
  982. asd.LockedToPart = false
  983. asd.EmissionDirection = "Back"
  984. asd.Lifetime = NumberRange.new(1, 2)
  985. asd.Rotation = NumberRange.new(-100, 100)
  986. asd.RotSpeed = NumberRange.new(-100, 100)
  987. asd.Speed = NumberRange.new(2)
  988. asd.Enabled = false
  989. asd.VelocitySpread = 10000
  990.  
  991. function bleed(victim,amount)
  992. local prtcl = asd:Clone()
  993. prtcl.Parent = victim
  994. prtcl:Emit(amount)
  995. end
  996.  
  997.  
  998. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  999. local NEWMESH = Instance.new(MESH)
  1000. if MESH == "SpecialMesh" then
  1001. NEWMESH.MeshType = MESHTYPE
  1002. if MESHID ~= "nil" and MESHID ~= "" then
  1003. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1004. end
  1005. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1006. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1007. end
  1008. end
  1009. NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
  1010. NEWMESH.Scale = SCALE
  1011. NEWMESH.Parent = PARENT
  1012. return NEWMESH
  1013. end
  1014.  
  1015. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1016. local NEWPART = Instance.new("Part")
  1017. NEWPART.formFactor = FORMFACTOR
  1018. NEWPART.Reflectance = REFLECTANCE
  1019. NEWPART.Transparency = TRANSPARENCY
  1020. NEWPART.CanCollide = false
  1021. NEWPART.Locked = true
  1022. NEWPART.Anchored = true
  1023. if ANCHOR == false then
  1024. NEWPART.Anchored = false
  1025. end
  1026. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  1027. NEWPART.Name = NAME
  1028. NEWPART.Size = SIZE
  1029. NEWPART.Position = tors.Position
  1030. NEWPART.Material = MATERIAL
  1031. NEWPART:BreakJoints()
  1032. NEWPART.Parent = PARENT
  1033. return NEWPART
  1034. end
  1035.  
  1036. local function weldBetween(a, b)
  1037. local weldd = Instance.new("ManualWeld")
  1038. weldd.Part0 = a
  1039. weldd.Part1 = b
  1040. weldd.C0 = CFrame.new()
  1041. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1042. weldd.Parent = a
  1043. return weldd
  1044. end
  1045.  
  1046. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  1047. local acs = Instance.new("Part")
  1048. acs.CanCollide = false
  1049. acs.Anchored = false
  1050. acs.Size = Vector3.new(0,0,0)
  1051. acs.CFrame = attachmentpart.CFrame
  1052. acs.Parent = char
  1053. acs.BrickColor = color
  1054. local meshs = Instance.new("SpecialMesh")
  1055. meshs.MeshId = mesh
  1056. meshs.TextureId = texture
  1057. meshs.Parent = acs
  1058. meshs.Scale = scale
  1059. meshs.Offset = offset
  1060. weldBetween(attachmentpart,acs)
  1061. end
  1062.  
  1063. local accessories = Instance.new("Folder",char)
  1064. accessories.Name = "Add-ons"
  1065.  
  1066. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  1067. if TYPE == "Gem" then
  1068. local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", Vector3.new(0,0,0))
  1069. acs.Anchored = false
  1070. acs.CanCollide = false
  1071. acs.CFrame = PART.CFrame
  1072. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  1073. weldBetween(PART,acs)
  1074. elseif TYPE == "Skull" then
  1075. local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", Vector3.new(0,0,0))
  1076. acs.Anchored = false
  1077. acs.CanCollide = false
  1078. acs.CFrame = PART.CFrame
  1079. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  1080. weldBetween(PART,acs)
  1081. elseif TYPE == "Eye" then
  1082. local acs = CreatePart(3, accessories, "Neon", 0, 0, COLOR, "Part", Vector3.new(0,0,0))
  1083. acs.Anchored = false
  1084. acs.CanCollide = false
  1085. acs.CFrame = PART.CFrame
  1086. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  1087. weldBetween(PART,acs)
  1088. end
  1089. end
  1090.  
  1091. createbodypart("Eye","Crimson",hed,Vector3.new(0.2, 0.17, -0.55),Vector3.new(3,5,3))
  1092. createbodypart("Eye","Institutional white",hed,Vector3.new(-0.2, 0.17, -0.55),Vector3.new(3,5,3))
  1093.  
  1094. --Extras--
  1095. q = char:GetChildren()
  1096. for u = 1, #q do
  1097. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1098. q[u]:remove()
  1099. elseif q[u].ClassName == "CharacterMesh" then
  1100. q[u]:remove()
  1101. elseif q[u].ClassName == "ShirtGraphic" then
  1102. q[u]:remove()
  1103. elseif q[u].ClassName == "Shirt" then
  1104. q[u]:Destroy()
  1105. elseif q[u].ClassName == "Pants" then
  1106. q[u]:Destroy()
  1107. end
  1108. end
  1109. local top = Instance.new("Shirt")
  1110. top.ShirtTemplate = "rbxassetid://831629350"
  1111. top.Parent = char
  1112. local bottom = Instance.new("Pants")
  1113. bottom.PantsTemplate = "rbxassetid://227915108"
  1114. bottom.Parent = char
  1115.  
  1116. local BodyColors = char:FindFirstChildOfClass"BodyColors"
  1117. if BodyColors then
  1118. BodyColors.HeadColor = BrickColor.new"Institutional white"
  1119. BodyColors.TorsoColor = BrickColor.new"Institutional white"
  1120. BodyColors.LeftArmColor = BrickColor.new"Institutional white"
  1121. BodyColors.RightArmColor = BrickColor.new"Institutional white"
  1122. BodyColors.LeftLegColor = BrickColor.new"Institutional white"
  1123. BodyColors.RightLegColor = BrickColor.new"Institutional white"
  1124. end
  1125.  
  1126. --Scarfs--
  1127. local Blobby = Instance.new("Part", char)
  1128. Blobby.Name = "Blob"
  1129. Blobby.CanCollide = false
  1130. Blobby.BrickColor = BrickColor.new("Institutional white")
  1131. Blobby.Transparency = 0
  1132. Blobby.Material = "Plastic"
  1133. Blobby.Size = Vector3.new(1, 1, 2)
  1134. Blobby.TopSurface = Enum.SurfaceType.Smooth
  1135. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  1136.  
  1137. local Weld = Instance.new("Weld", Blobby)
  1138. Weld.Part0 = hed
  1139. Weld.Part1 = Blobby
  1140. Weld.C1 = CFrame.new(0, 1.1, 0)
  1141. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(180),0)
  1142.  
  1143. local M2 = Instance.new("SpecialMesh")
  1144. M2.Parent = Blobby
  1145. M2.MeshId = "http://www.roblox.com/asset/?id=448710145"
  1146. M2.Scale = Vector3.new(0.8, 0.8, 0.8)
  1147.  
  1148. local Blobby2 = Instance.new("Part", char)
  1149. Blobby2.Name = "Blob"
  1150. Blobby2.CanCollide = false
  1151. Blobby2.BrickColor = BrickColor.new("Really black")
  1152. Blobby2.Transparency = 0
  1153. Blobby2.Material = "Plastic"
  1154. Blobby2.Size = Vector3.new(1, 1, 2)
  1155. Blobby2.TopSurface = Enum.SurfaceType.Smooth
  1156. Blobby2.BottomSurface = Enum.SurfaceType.Smooth
  1157.  
  1158. local Weld = Instance.new("Weld", Blobby2)
  1159. Weld.Part0 = hed
  1160. Weld.Part1 = Blobby2
  1161. Weld.C1 = CFrame.new(0, 1.2, 0)
  1162. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(180),0)
  1163.  
  1164. local M2 = Instance.new("SpecialMesh")
  1165. M2.Parent = Blobby2
  1166. M2.MeshId = "http://www.roblox.com/asset/?id=448710145"
  1167. M2.Scale = Vector3.new(0.8, 0.8, 0.8)
  1168.  
  1169. --Hair--
  1170. local Hair = Instance.new("Part", char)
  1171. Hair.Name = "Hair"
  1172. Hair.CanCollide = false
  1173. Hair.BrickColor = BrickColor.new("Institutional white")
  1174. Hair.Transparency = 0
  1175. Hair.Material = "Plastic"
  1176. Hair.Size = Vector3.new(1, 1, 2)
  1177. Hair.TopSurface = Enum.SurfaceType.Smooth
  1178. Hair.BottomSurface = Enum.SurfaceType.Smooth
  1179.  
  1180. local Weld = Instance.new("Weld", Hair)
  1181. Weld.Part0 = hed
  1182. Weld.Part1 = Hair
  1183. Weld.C1 = CFrame.new(0, -.5, 0)
  1184. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1185.  
  1186. local M2 = Instance.new("SpecialMesh")
  1187. M2.Parent = Hair
  1188. M2.MeshId = "http://www.roblox.com/asset/?id=346578029"
  1189. M2.Scale = Vector3.new(1.2, 1.1, 1.1)
  1190.  
  1191. --Hood--
  1192. local Hood = Instance.new("Part", char)
  1193. Hood.Name = "Hood"
  1194. Hood.CanCollide = false
  1195. Hood.BrickColor = BrickColor.new("Institutional white")
  1196. Hood.Transparency = 0
  1197. Hood.Material = "Plastic"
  1198. Hood.Size = Vector3.new(1, 1, 2)
  1199. Hood.TopSurface = Enum.SurfaceType.Smooth
  1200. Hood.BottomSurface = Enum.SurfaceType.Smooth
  1201.  
  1202. local Weld = Instance.new("Weld", Hood)
  1203. Weld.Part0 = tors
  1204. Weld.Part1 = Hood
  1205. Weld.C1 = CFrame.new(0, .4, -.9)
  1206. Weld.C0 = CFrame.Angles(math.rad(-0),math.rad(0),math.rad(180))
  1207.  
  1208. local M2 = Instance.new("SpecialMesh")
  1209. M2.Parent = Hood
  1210. M2.MeshId = "http://www.roblox.com/asset/?id=18010902"
  1211. M2.Scale = Vector3.new(0.922, 0.922, 0.922)
  1212. hed.face.Texture = "http://www.roblox.com/asset/?id=176217905"
  1213.  
  1214.  
  1215.  
  1216. Slashy = Instance.new("Sound", ra)
  1217. Slashy.Volume = 5
  1218. Slashy.Pitch = 1
  1219. Slashy.SoundId = "http://www.roblox.com/asset/?id=978101945"
  1220. Slashy.Looped = false
  1221.  
  1222. local VALUE1 = false
  1223. local sine=0
  1224. for _, v in pairs(XBlade:GetChildren()) do
  1225. if v:IsA'BasePart' then
  1226. v.CanCollide = false
  1227. v.Transparency = 1
  1228. end
  1229. end
  1230. function intro()
  1231. attack = true
  1232. hum.WalkSpeed = 0
  1233. for _, v in pairs(XBlade:GetChildren()) do
  1234. if v:IsA'BasePart' then
  1235. v.CanCollide = false
  1236. v.Transparency = v.Transparency - 1
  1237. end
  1238. end
  1239. chatfunc("Welcome to the X-Event.",3)
  1240. CreateSound("367453005", hed, 10, 1)
  1241. ShadowHead = New("Part",char,"ShadowHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  1242. Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  1243. Weld = New("Weld",ShadowHead,"mot",{Part0 = ShadowHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1244. Effects.Ring.Create(BrickColor.new("Institutional white"), tors.CFrame*angles(math.rad(90),math.rad(0),math.rad(0)), 2, 2, 2, 7.6, 7.6, 7.6, 0.03)
  1245. Effects.Sphere.Create(maincolor, tors.CFrame, 2, 2, 2, 17.6, 17.6, 17.6, 0.02)
  1246. Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 10.6, 10.6, 10.6, 0.02)
  1247. Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 14.6, 14.6, 14.6, 0.02)
  1248. Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 16.6, 16.6, 16.6, 0.02)
  1249. Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 5.6, 5.6, 5.6, 0.02)
  1250. attack = false
  1251. VALUE1 = true
  1252. hum.WalkSpeed = 28
  1253. end
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259. function NothingPersonal()
  1260. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1261. local HITBODY = mouse.Target.Parent
  1262. local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1263. local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1264. if TORS ~= nil and HUMAN ~= nil then
  1265. attack = true
  1266. hum.WalkSpeed = 0
  1267. root.CFrame = TORS.CFrame * CFrame.new(-1,0,6)
  1268. TORS.Anchored = true
  1269. CreateSound("367453005", hed, 10, 1)
  1270. Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1)
  1271. for i = 0,6,0.1 do
  1272. swait()
  1273. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(-20)),0.15)
  1274. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1275. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
  1276. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
  1277. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(125)), 0.1)
  1278. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(-15)), 0.1)
  1279. HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15)
  1280. end
  1281. CreateSound("357417055", hed, 10, 1)
  1282. for i = 0,4,0.1 do
  1283. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(5),math.rad(0),math.rad(45)),0.15)
  1284. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1285. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
  1286. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
  1287. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(15)), 0.1)
  1288. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
  1289. HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15)
  1290. end
  1291. wait(0.5)
  1292. CreateSound("623904185", hed, 10, 1)
  1293. HITBODY:BreakJoints()
  1294. TORS.Anchored = false
  1295. attack = false
  1296. hum.WalkSpeed = 28
  1297. bleed(TORS,25)
  1298. end
  1299. end
  1300. end
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313. ---ATTACKS N STUFF
  1314. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1315. Hitboxpart = Instance.new("Part", EffectModel)
  1316. RemoveOutlines(Hitboxpart)
  1317. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1318. Hitboxpart.CanCollide = false
  1319. Hitboxpart.Transparency = 1
  1320. Hitboxpart.Anchored = true
  1321. Hitboxpart.CFrame = Pose
  1322. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1323. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1324. end
  1325. wait2 = false
  1326. combo = 1
  1327. mouse.Button1Down:connect(function(key)
  1328. if attack == false then
  1329. attack = true
  1330. hum.WalkSpeed = 3.01
  1331. if combo == 1 and wait2 == false then
  1332. wait2 = true
  1333. for i = 0, 1.2, 0.1 do
  1334. swait()
  1335. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-15)), 0.3)
  1336. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1337. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(175), math.rad(0), math.rad(0)), 0.1)
  1338. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1339. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-0)), 0.3)
  1340. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(15), math.rad(-20)), 0.3)
  1341. end
  1342. Effects.Ring.Create(BrickColor.new("Institutional white"), ra.CFrame, 2, 2, 2, 0.1, 0.1, 0.1, 0.03)
  1343. Slashy:Play()
  1344. HitboxFunction(Wedge.CFrame * CFrame.new(0, 0, -.9), 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1345. for i = 0, 1.2, 0.1 do
  1346. swait()
  1347. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(15)), 0.3)
  1348. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1349. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1350. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1351. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-15), math.rad(-20)), 0.3)
  1352. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(-0), math.rad(0)), 0.3)
  1353. end
  1354. combo = 2
  1355. end
  1356. if combo == 2 and wait2 == false then
  1357. wait2 = true
  1358. HitboxFunction(ll.CFrame * CFrame.new(0, 0, .4), 0.01, 1, 1, 1, 7, 10, 20, 3, "Normal")
  1359. for i = 0, 1.4, 0.1 do
  1360. swait()
  1361. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(-20),math.rad(0),math.rad(0)),0.15)
  1362. tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),0.15)
  1363. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(10)), 0.3)
  1364. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-4.5)),0.15)
  1365. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  1366. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*angles(math.rad(-60),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  1367. end
  1368. combo = 3
  1369. end
  1370. if combo == 3 and wait2 == false then
  1371. wait2 = true
  1372.  
  1373. for i = 0, 1.2, 0.1 do
  1374. swait()
  1375. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-15)), 0.3)
  1376. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1377. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.1)
  1378. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1379. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-0)), 0.3)
  1380. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(15), math.rad(-20)), 0.3)
  1381. end
  1382. HitboxFunction(Wedge.CFrame * CFrame.new(0, 0, -.9), 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1383. Effects.Ring.Create(BrickColor.new("Institutional white"), Wedge.CFrame, 2, 2, 2, 0.1, 0.1, 0.1, 0.03)
  1384. Slashy:Play()
  1385. for i = 0, 1.2, 0.1 do
  1386. swait()
  1387. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(30)), 0.3)
  1388. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1389. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -1) * angles(math.rad(55), math.rad(0), math.rad(40)), 0.1)
  1390. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1391. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-15), math.rad(-20)), 0.3)
  1392. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(-0), math.rad(0)), 0.3)
  1393. end
  1394. combo = 1
  1395. end
  1396. hum.WalkSpeed = 28
  1397. wait2 = false
  1398. attack = false
  1399. end
  1400. end)
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407. function DashingSpin()
  1408. attack = true
  1409. hum.WalkSpeed = 0
  1410. CreateSound("707957812", workspace, 5, 1)
  1411. Effects.Block.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 3.6, 3.6, 3.6, 0.05)
  1412. Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 3.4, 3.4, 3.4, 0.03)
  1413. Effects.Block.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 6.6, 6.6, 6.6, 0.05)
  1414. Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 6.4, 6.4, 6.4, 0.05)
  1415. Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 10.5, 10.5, 10.5, 0.05)
  1416.  
  1417. Effects.Ring.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 7.6, 7.6, 7.6, 0.03)
  1418. Effects.Sphere.Create(maincolor, tors.CFrame, 2, 2, 2, 17.6, 17.6, 17.6, 0.02)
  1419. Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 10.6, 10.6, 10.6, 0.02)
  1420. Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 14.6, 14.6, 14.6, 0.02)
  1421. Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 16.6, 16.6, 16.6, 0.02)
  1422. Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 5.6, 5.6, 5.6, 0.02)
  1423. root.CFrame = root.CFrame + root.CFrame.lookVector * 35
  1424. for i = 0,6,0.1 do
  1425. --Not to put a swait here this is going to be like, you know what just dont put a swait kthx
  1426. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1427. tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),0.15)
  1428. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(110), math.rad(90)), 0.1)
  1429. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-4.5)),0.15)
  1430. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  1431. LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  1432. HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
  1433. end
  1434. for i = 0,9,0.1 do
  1435. swait()
  1436. MagniDamage(Wedge, 12, 6, 12, 10, "Normal")
  1437. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25+0.45*i)*angles(math.rad(0),math.rad(0),math.rad(0-255.45*i)),0.15)
  1438. tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30-5.35*i),math.rad(0),math.rad(0)),0.15)
  1439. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(110-25.35*i), math.rad(90)), 0.1)
  1440. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.4,0)*angles(math.rad(0+17.35*i),math.rad(0-25.35*i),math.rad(-4.5)),0.15)
  1441. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60+10.35*i),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  1442. LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  1443. HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
  1444. end
  1445. attack = false
  1446. hum.WalkSpeed = 28
  1447. end
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455. mouse.KeyDown:connect(function(key)
  1456. if attack == false then
  1457. if key == 'q' then
  1458. NothingPersonal()
  1459. elseif key == 'c' then
  1460. CreateSound("367453005", hed, 10, 1)
  1461. Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1)
  1462. root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position)
  1463. Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1)
  1464. elseif key == 'f' then
  1465. DashingSpin()
  1466. elseif key == 't' then
  1467. CreateSound("649634100", hed, 10, .89)
  1468. end
  1469. end
  1470. end)
  1471.  
  1472.  
  1473.  
  1474.  
  1475. local idle=0
  1476. local change = 1
  1477. local val = 0
  1478. toim = 0
  1479. hum.Animator.Parent = nil
  1480. idleanim=.4
  1481. local music = Instance.new("Sound",tors)
  1482. music.SoundId = "rbxassetid://736980589"
  1483. music.Volume = 2.7
  1484. music.Looped = true
  1485. music.Pitch = 1
  1486. music:Play()
  1487. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  1488. ff.Visible = false
  1489. hum.DisplayDistanceType = "None"
  1490. hum.Name = "X-Event Chara"
  1491. hum.MaxHealth = "inf"
  1492. hum.Health = "inf"
  1493. hum.HealthChanged:connect(function()
  1494. if hum.Health == 0 then
  1495. hum.MaxHealth = "inf"
  1496. hum.Health = "inf"
  1497. end
  1498. end)
  1499. while true do
  1500. swait()
  1501. music.Parent = tors
  1502. sine = sine + change
  1503. local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
  1504. local velderp=root.Velocity.y
  1505. hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1506. if equipped==true or equipped==false then
  1507. if attack==false then
  1508. idle=idle+1
  1509. else
  1510. idle=0
  1511. end
  1512. if root.Velocity.y > 1 and hitfloor==nil then
  1513. Anim="Jump"
  1514. if attack==false then
  1515. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1516. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1517. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1518. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1519. LH.C0=clerp(LH.C0,cf(-1,-.9-0.1*math.cos(sine/20),-0.3)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15)
  1520. RH.C0=clerp(RH.C0,cf(1,-1,0.3)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1521. end
  1522. elseif root.Velocity.y < -1 and hitfloor==nil then
  1523. Anim="Fall"
  1524. if attack==false then
  1525. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1526. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1527. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.3)
  1528. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.3)
  1529. LH.C0=clerp(LH.C0,cf(-1,-.4-0.1*math.cos(sine/20),-.6)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15)
  1530. RH.C0=clerp(RH.C0,cf(1,-.3-0.1*math.cos(sine/20),-.6)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1531. end
  1532. elseif torvel<1 and hitfloor~=nil then
  1533. Anim="Idle"
  1534. change = 1
  1535. if attack==false then
  1536. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0.6+0.5*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(43)),0.15)
  1537. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5*math.cos(sine/20)),math.rad(0),math.rad(-25)),.3)
  1538. RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  1539. LH.C0=clerp(LH.C0,cf(-1,-.6-0.1*math.cos(sine/20),-.085)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(0)),0.15)
  1540. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0),math.rad(-40), math.rad(15)), 0.1)
  1541. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0), math.rad(-0), math.rad(-10)), 0.1)
  1542. HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
  1543. end
  1544.  
  1545. elseif (tors.Velocity).magnitude < 50 and hitfloor ~= nil then
  1546. Anim="Walk"
  1547. change = 1
  1548. if attack==false then
  1549. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0.6+0.5*math.cos(sine/20))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
  1550. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5*math.cos(sine/20)),math.rad(0),math.rad(-0)),.3)
  1551. RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  1552. LH.C0=clerp(LH.C0,cf(-1,-.4-0.1*math.cos(sine/20),-.3)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15)
  1553. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0),math.rad(-5), math.rad(15)), 0.1)
  1554. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0), math.rad(-0), math.rad(-10)), 0.1)
  1555. HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
  1556. end
  1557. end
  1558. end
  1559.  
  1560. if 0 < #Effects then
  1561. for e = 1, #Effects do
  1562. if Effects[e] ~= nil then
  1563. local Thing = Effects[e]
  1564. if Thing ~= nil then
  1565. local Part = Thing[1]
  1566. local Mode = Thing[2]
  1567. local Delay = Thing[3]
  1568. local IncX = Thing[4]
  1569. local IncY = Thing[5]
  1570. local IncZ = Thing[6]
  1571. if 1 >= Thing[1].Transparency then
  1572. if Thing[2] == "Block1" then
  1573. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1574. local Mesh = Thing[1].Mesh
  1575. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1576. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1577. elseif Thing[2] == "Block2" then
  1578. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1579. local Mesh = Thing[7]
  1580. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1581. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1582. elseif Thing[2] == "Block3" then
  1583. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1584. local Mesh = Thing[7]
  1585. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1586. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1587. elseif Thing[2] == "Cylinder" then
  1588. local Mesh = Thing[1].Mesh
  1589. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1590. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1591. elseif Thing[2] == "Blood" then
  1592. local Mesh = Thing[7]
  1593. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1594. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1595. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1596. elseif Thing[2] == "Elec" then
  1597. local Mesh = Thing[1].Mesh
  1598. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1599. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1600. elseif Thing[2] == "Disappear" then
  1601. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1602. elseif Thing[2] == "Shatter" then
  1603. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1604. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1605. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1606. Thing[6] = Thing[6] + Thing[5]
  1607. end
  1608. else
  1609. Part.Parent = nil
  1610. table.remove(Effects, e)
  1611. end
  1612. end
  1613. end
  1614. end
  1615. end
  1616. if VALUE1 == false and attack == false then
  1617. intro()
  1618. end
  1619. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement