Advertisement
DarkScriptZEditors

the Distorted

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