DaOMEGAa32

fe what ever undertale furry

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