kaualima12

coming...

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