Advertisement
Pancakess

idkkk

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