DarkScriptZEditors

Untitled

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