Tetezaza1542

Xeven

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