Advertisement
SansTheHackerYT

FE X-Event

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