Advertisement
rcubed1003

XChara not that good fe ver

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