Advertisement
XSleepyDemonX_17

Calamity X

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