Advertisement
StarzoZero

Roblox FE The Distorted One (Tiny Edit)

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