Advertisement
RBLPlayer

The Distorted [FE]

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