Advertisement
StarzoZero

Roblox FE XEvent Chara

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