Advertisement
Guest User

Untitled

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