Advertisement
5325325325

Untitled

Nov 24th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.30 KB | None | 0 0
  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 = owner
  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 h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82.  
  83. --[wip]--
  84.  
  85. --[[ The Brutal Furry (DEMO .1), by SezHu and Nebula_Zorua ]]--
  86. --[[ Animation work by SezHu, attacks by Nebula_Zorua ]]--
  87.  
  88. --[[ I also made some things less stiff ~Nebula ]]--
  89.  
  90. wait(1 / 60)
  91. Effects = { }
  92. local Player = owner
  93. local Character = Player.Character
  94. local Humanoid = Character.Humanoid
  95. local Head = Character.Head
  96. local RootPart = Character.HumanoidRootPart
  97. local Torso = Character.Torso
  98. local LeftArm = Character["Left Arm"]
  99. local RightArm = Character["Right Arm"]
  100. local LeftLeg = Character["Left Leg"]
  101. local RightLeg = Character["Right Leg"]
  102. local Camera = game.Workspace.CurrentCamera
  103. local RootJoint = RootPart.RootJoint
  104. local Equipped = false
  105. local Attack = false
  106. local Anim = 'Idle'
  107. local Idle = 0
  108. local Combo = 1
  109. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  110. local Velocity = RootPart.Velocity.y
  111. local Sine = 0
  112. local Change = 1
  113. local UIS = game:GetService("UserInputService")
  114.  
  115. local Climbing = false
  116. local ClimbPos;
  117.  
  118. spawn(function()
  119. while true do
  120. swait()
  121. Sine = Sine + Change
  122. end
  123. end)
  124.  
  125. local RbxUtility = LoadLibrary("RbxUtility")
  126. local Create = RbxUtility.Create
  127.  
  128. Humanoid.WalkSpeed = 35
  129. Humanoid.JumpPower = 70
  130. Humanoid.Animator.Parent = nil
  131. Character.Animate.Parent = nil
  132.  
  133. local newMotor = function(part0, part1, c0, c1)
  134. local w = Create('Motor'){
  135. Parent = part0,
  136. Part0 = part0,
  137. Part1 = part1,
  138. C0 = c0,
  139. C1 = c1,
  140. }
  141. return w
  142. end
  143.  
  144.  
  145.  
  146. function clerp(a, b, t)
  147. return a:lerp(b, t)
  148. end
  149.  
  150. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  151. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  152.  
  153. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  154. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  155. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  156. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  157. RootJoint.C1 = CFrame.new(0, 0, 0)
  158. RootJoint.C0 = CFrame.new(0, 0, 0)
  159. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  160. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  161.  
  162. local rarmc1 = RW.C1
  163. local larmc1 = LW.C1
  164. local rlegc1 = RH.C1
  165. local llegc1 = LH.C1
  166.  
  167. local resetc1 = false
  168.  
  169. function PlayAnimationFromTable(table, speed, bool)
  170. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  171. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  172. RW.C0 = clerp(RW.C0, table[3], speed)
  173. LW.C0 = clerp(LW.C0, table[4], speed)
  174. RH.C0 = clerp(RH.C0, table[5], speed)
  175. LH.C0 = clerp(LH.C0, table[6], speed)
  176. if bool == true then
  177. if resetc1 == false then
  178. resetc1 = true
  179. RootJoint.C1 = RootJoint.C1
  180. Torso.Neck.C1 = Torso.Neck.C1
  181. RW.C1 = rarmc1
  182. LW.C1 = larmc1
  183. RH.C1 = rlegc1
  184. LH.C1 = llegc1
  185. end
  186. end
  187. end
  188.  
  189. ArtificialHB = Create("BindableEvent"){
  190. Parent = script,
  191. Name = "Heartbeat",
  192. }
  193.  
  194. script:WaitForChild("Heartbeat")
  195.  
  196. frame = 1 / 60
  197. tf = 0
  198. allowframeloss = false
  199. tossremainder = false
  200. lastframe = tick()
  201. script.Heartbeat:Fire()
  202.  
  203. game:GetService("RunService").Heartbeat:connect(function(s, p)
  204. tf = tf + s
  205. if tf >= frame then
  206. if allowframeloss then
  207. script.Heartbeat:Fire()
  208. lastframe = tick()
  209. else
  210. for i = 1, math.floor(tf / frame) do
  211. script.Heartbeat:Fire()
  212. end
  213. lastframe = tick()
  214. end
  215. if tossremainder then
  216. tf = 0
  217. else
  218. tf = tf - frame * math.floor(tf / frame)
  219. end
  220. end
  221. end)
  222.  
  223. function swait(num)
  224. if num == 0 or num == nil then
  225. ArtificialHB.Event:wait()
  226. else
  227. for i = 0, num do
  228. ArtificialHB.Event:wait()
  229. end
  230. end
  231. end
  232.  
  233. local m = Create("Model"){
  234. Parent = Character,
  235. Name = "WeaponModel"
  236. }
  237.  
  238.  
  239.  
  240. function RemoveOutlines(part)
  241. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  242. end
  243.  
  244. CFuncs = {
  245. Part = {
  246. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  247. local Part = Create("Part"){
  248. Parent = Parent,
  249. Reflectance = Reflectance,
  250. Transparency = Transparency,
  251. CanCollide = false,
  252. Locked = true,
  253. BrickColor = BrickColor.new(tostring(BColor)),
  254. Name = Name,
  255. Size = Size,
  256. Material = Material,
  257. }
  258. RemoveOutlines(Part)
  259. if Size == Vector3.new() then
  260. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  261. else
  262. Part.Size = Size
  263. end
  264. return Part
  265. end;
  266. };
  267.  
  268. Mesh = {
  269. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  270. local Msh = Create(Mesh){
  271. Parent = Part,
  272. Offset = OffSet,
  273. Scale = Scale,
  274. }
  275. if Mesh == "SpecialMesh" then
  276. Msh.MeshType = MeshType
  277. Msh.MeshId = MeshId
  278. end
  279. return Msh
  280. end;
  281. };
  282.  
  283. Weld = {
  284. Create = function(Parent, Part0, Part1, C0, C1)
  285. local Weld = Create("Weld"){
  286. Parent = Parent,
  287. Part0 = Part0,
  288. Part1 = Part1,
  289. C0 = C0,
  290. C1 = C1,
  291. }
  292. return Weld
  293. end;
  294. };
  295.  
  296. Sound = {
  297. Create = function(id, par, vol, pit)
  298. coroutine.resume(coroutine.create(function()
  299. local S = Create("Sound"){
  300. Volume = vol,
  301. Pitch = pit or 1,
  302. SoundId = "rbxassetid://" .. id,
  303. Parent = par or workspace,
  304. }
  305. wait()
  306. S:play()
  307. game:GetService("Debris"):AddItem(S, 10)
  308. end))
  309. end;
  310. };
  311.  
  312. ParticleEmitter = {
  313. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  314. local Particle = Create("ParticleEmitter"){
  315. Parent = Parent,
  316. Color = ColorSequence.new(Color1, Color2),
  317. LightEmission = LightEmission,
  318. Size = Size,
  319. Texture = Texture,
  320. Transparency = Transparency,
  321. ZOffset = ZOffset,
  322. Acceleration = Accel,
  323. Drag = Drag,
  324. LockedToPart = LockedToPart,
  325. VelocityInheritance = VelocityInheritance,
  326. EmissionDirection = EmissionDirection,
  327. Enabled = Enabled,
  328. Lifetime = LifeTime,
  329. Rate = Rate,
  330. Rotation = Rotation,
  331. RotSpeed = RotSpeed,
  332. Speed = Speed,
  333. VelocitySpread = VelocitySpread,
  334. }
  335. return Particle
  336. end;
  337. };
  338.  
  339. CreateTemplate = {
  340.  
  341. };
  342. }
  343.  
  344.  
  345. rCHandle2=CFuncs.Part.Create(m,Enum.Material.SmoothPlastic,0,1,"Medium stone grey","CHandle2",Vector3.new(0.430001736, 0.679999948, 0.299999684))
  346. rCHandle2Weld=CFuncs.Weld.Create(m,Character["Left Arm"],rCHandle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0650009513, -0.0299911499, 0.555044532, 0, 0, 1, 1, 0, 0, 0, 1, 0))
  347. CHandle2=CFuncs.Part.Create(m,Enum.Material.SmoothPlastic,0,1,"Medium stone grey","CHandle2",Vector3.new(0.430001736, 0.679999948, 0.299999684))
  348. CHandle2Weld=CFuncs.Weld.Create(m,rCHandle2,CHandle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0650009513, -0.0299911499, 0.555044532, 0, 0, 1, 1, 0, 0, 0, 1, 0))
  349. Claw2=CFuncs.Part.Create(m,Enum.Material.SmoothPlastic,0,0,"Really black","Claw2",Vector3.new(0.430001736, 0.829999924, 1.31999958))
  350. Claw2Weld=CFuncs.Weld.Create(m,CHandle2,Claw2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.414048076, -0.0255355835, 0.581350505, 1, 0, 0, 0, -1, 0, 0, 0, -1))
  351. CFuncs.Mesh.Create("SpecialMesh",Claw2,Enum.MeshType.FileMesh,"rbxassetid://10681506",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.800000012))
  352.  
  353.  
  354. rCHandle1=CFuncs.Part.Create(m,Enum.Material.SmoothPlastic,0,1,"Medium stone grey","CHandle1",Vector3.new(0.430001736, 0.679999948, 0.299999684))
  355. rCHandle1Weld=CFuncs.Weld.Create(m,Character["Right Arm"],rCHandle1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0650009513, -0.00206756592, 0.555044532, 0, 0, 1, 1, 0, 0, 0, 1, 0))
  356. CHandle1=CFuncs.Part.Create(m,Enum.Material.SmoothPlastic,0,1,"Medium stone grey","CHandle1",Vector3.new(0.430001736, 0.679999948, 0.299999684))
  357. CHandle1Weld=CFuncs.Weld.Create(m,rCHandle1,CHandle1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0650009513, -0.00206756592, 0.555044532, 0, 0, 1, 1, 0, 0, 0, 1, 0))
  358. Claw1=CFuncs.Part.Create(m,Enum.Material.SmoothPlastic,0,0,"Really black","Claw1",Vector3.new(0.430001736, 0.829999924, 1.31999958))
  359. Claw1Weld=CFuncs.Weld.Create(m,CHandle1,Claw1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.414048076, -0.0255355835, 0.581350505, 1, 0, 0, 0, -1, 0, 0, 0, -1))
  360. CFuncs.Mesh.Create("SpecialMesh",Claw1,Enum.MeshType.FileMesh,"rbxassetid://10681506",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.800000012))
  361.  
  362. function RayCast(Position, Direction, Range, Ignore)
  363. return workspace:FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  364. end
  365.  
  366. function RayCastWithList(Position, Direction, Range, Ignore)
  367. return workspace:FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  368. end
  369.  
  370. function GetTorso(char)
  371. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso'
  372. end
  373.  
  374. FindNearestTorso = function(pos,range)
  375. local torso,dist=nil,nil or range;
  376. for _,v in next, workspace:children() do
  377. if(v.Name ~= 'CKbackup' and v.Name ~= 'SezHu' and v.Name ~= 'Salvo_Starly' and v.Name ~= 'Nebula_Zorua' and v ~= Character and GetTorso(v) and v:FindFirstChildOfClass'Humanoid')then
  378. if v:FindFirstChildOfClass('Humanoid').Health > 0 then
  379. if((pos-GetTorso(v).Position).magnitude < dist)then
  380. torso = GetTorso(v)
  381. dist = (pos-GetTorso(v).Position).magnitude
  382. end
  383. end
  384. end
  385. end
  386. return torso, dist
  387. end
  388.  
  389. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  390. if hit.Parent == nil then
  391. return
  392. end
  393. local h = hit.Parent:FindFirstChild("Humanoid")
  394. for _, v in pairs(hit.Parent:children()) do
  395. if v:IsA("Humanoid") then
  396. h = v
  397. end
  398. end
  399. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  400. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  401. if hit.Parent.DebounceHit.Value == true then
  402. return
  403. end
  404. end
  405. local c = Create("ObjectValue"){
  406. Name = "creator",
  407. Value = owner,
  408. Parent = h,
  409. }
  410. game:GetService("Debris"):AddItem(c, .5)
  411. if HitSound ~= nil and HitPitch ~= nil then
  412. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  413. end
  414. local Damage = math.random(minim, maxim)
  415. local blocked = false
  416. local block = hit.Parent:findFirstChild("Block")
  417. if block ~= nil then
  418. if block.className == "IntValue" then
  419. if block.Value > 0 then
  420. blocked = true
  421. block.Value = block.Value - 1
  422. print(block.Value)
  423. end
  424. end
  425. end
  426. if blocked == false then
  427. h.Health = h.Health - Damage
  428. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  429. else
  430. h.Health = h.Health - (Damage / 2)
  431. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  432. end
  433. if Type == "Knockdown" then
  434. local hum = hit.Parent.Humanoid
  435. hum.PlatformStand = true
  436. coroutine.resume(coroutine.create(function(HHumanoid)
  437. swait(1)
  438. HHumanoid.PlatformStand = false
  439. end), hum)
  440. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  441. local bodvol = Create("BodyVelocity"){
  442. velocity = angle * knockback,
  443. P = 5000,
  444. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  445. Parent = hit,
  446. }
  447. local rl = Create("BodyAngularVelocity"){
  448. P = 3000,
  449. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  450. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  451. Parent = hit,
  452. }
  453. game:GetService("Debris"):AddItem(bodvol, .5)
  454. game:GetService("Debris"):AddItem(rl, .5)
  455. elseif Type == "Normal" then
  456. local vp = Create("BodyVelocity"){
  457. P = 500,
  458. maxForce = Vector3.new(math.huge, 0, math.huge),
  459. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  460. }
  461. if knockback > 0 then
  462. vp.Parent = hit.Parent.Torso
  463. end
  464.  
  465. elseif Type == "Up" then
  466. local bodyVelocity = Create("BodyVelocity"){
  467. velocity = Vector3.new(0, 20, 0),
  468. P = 5000,
  469. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  470. Parent = hit,
  471. }
  472. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  473. elseif Type == "DarkUp" then
  474. coroutine.resume(coroutine.create(function()
  475. for i = 0, 1, 0.1 do
  476. swait()
  477. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  478. end
  479. end))
  480. local bodyVelocity = Create("BodyVelocity"){
  481. velocity = Vector3.new(0, 20, 0),
  482. P = 5000,
  483. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  484. Parent = hit,
  485. }
  486. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  487. elseif Type == "Snare" then
  488. local bp = Create("BodyPosition"){
  489. P = 2000,
  490. D = 100,
  491. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  492. position = hit.Parent.Torso.Position,
  493. Parent = hit.Parent.Torso,
  494. }
  495. game:GetService("Debris"):AddItem(bp, 1)
  496. elseif Type == "Freeze" then
  497. local BodPos = Create("BodyPosition"){
  498. P = 50000,
  499. D = 1000,
  500. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  501. position = hit.Parent.Torso.Position,
  502. Parent = hit.Parent.Torso,
  503. }
  504. local BodGy = Create("BodyGyro") {
  505. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  506. P = 20e+003,
  507. Parent = hit.Parent.Torso,
  508. cf = hit.Parent.Torso.CFrame,
  509. }
  510. hit.Parent.Torso.Anchored = true
  511. coroutine.resume(coroutine.create(function(Part)
  512. swait(1.5)
  513. Part.Anchored = false
  514. end), hit.Parent.Torso)
  515. game:GetService("Debris"):AddItem(BodPos, 3)
  516. game:GetService("Debris"):AddItem(BodGy, 3)
  517. end
  518. local debounce = Create("BoolValue"){
  519. Name = "DebounceHit",
  520. Parent = hit.Parent,
  521. Value = true,
  522. }
  523. game:GetService("Debris"):AddItem(debounce, Delay)
  524. c = Create("ObjectValue"){
  525. Name = "creator",
  526. Value = Player,
  527. Parent = h,
  528. }
  529. game:GetService("Debris"):AddItem(c, .5)
  530. end
  531. end
  532.  
  533. function ShowDamage(Pos, Text, Time, Color)
  534. local Rate = (1 / 30)
  535. local Pos = (Pos or Vector3.new(0, 0, 0))
  536. local Text = (Text or "")
  537. local Time = (Time or 2)
  538. local Color = (Color or Color3.new(1, 0, 1))
  539. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  540. EffectPart.Anchored = true
  541. local BillboardGui = Create("BillboardGui"){
  542. Size = UDim2.new(3, 0, 3, 0),
  543. Adornee = EffectPart,
  544. Parent = EffectPart,
  545. }
  546. local TextLabel = Create("TextLabel"){
  547. BackgroundTransparency = 1,
  548. Size = UDim2.new(1, 0, 1, 0),
  549. Text = Text,
  550. Font = "SciFi",
  551. TextColor3 = Color,
  552. TextScaled = true,
  553. Parent = BillboardGui,
  554. }
  555. game.Debris:AddItem(EffectPart, (Time))
  556. EffectPart.Parent = game:GetService("Workspace")
  557. delay(0, function()
  558. local Frames = (Time / Rate)
  559. for Frame = 1, Frames do
  560. wait(Rate)
  561. local Percent = (Frame / Frames)
  562. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  563. TextLabel.TextTransparency = Percent
  564. end
  565. if EffectPart and EffectPart.Parent then
  566. EffectPart:Destroy()
  567. end
  568. end)
  569. end
  570.  
  571. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  572. for _, c in pairs(workspace:children()) do
  573. local hum = c:findFirstChild("Humanoid")
  574. if hum ~= nil then
  575. local head = c:findFirstChild("Torso")
  576. if head ~= nil then
  577. local targ = head.Position - Part.Position
  578. local mag = targ.magnitude
  579. if mag <= Magnitude and c.Name ~= Player.Name then
  580. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  581. end
  582. end
  583. end
  584. end
  585. end
  586.  
  587. EffectModel = Create("Model"){
  588. Parent = Character,
  589. Name = "EffectModel",
  590. }
  591.  
  592. Effects = {
  593. Block = {
  594. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
  595. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  596. prt.Anchored = true
  597. prt.CFrame = cframe
  598. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  599. game:GetService("Debris"):AddItem(prt, 10)
  600. if Type == 1 or Type == nil then
  601. table.insert(Effects, {
  602. prt,
  603. "Block1",
  604. delay,
  605. x3,
  606. y3,
  607. z3,
  608. msh
  609. })
  610. elseif Type == 2 then
  611. table.insert(Effects, {
  612. prt,
  613. "Block2",
  614. delay,
  615. x3,
  616. y3,
  617. z3,
  618. msh
  619. })
  620. elseif Type == 3 then
  621. table.insert(Effects, {
  622. prt,
  623. "Block3",
  624. delay,
  625. x3,
  626. y3,
  627. z3,
  628. msh,
  629. Part
  630. })
  631. elseif Type == 4 then
  632. table.insert(Effects, {
  633. prt,
  634. "Block2Fire",
  635. delay,
  636. x3,
  637. y3,
  638. z3,
  639. msh
  640. })
  641. end
  642. end
  643. };
  644.  
  645. Sphere = {
  646. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
  647. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  648. prt.Anchored = true
  649. prt.CFrame = cframe
  650. if parent == nil then
  651. prt.Parent = workspace
  652. else
  653. prt.Parent = parent
  654. end
  655. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  656. game:GetService("Debris"):AddItem(prt, 10)
  657. table.insert(Effects, {
  658. prt,
  659. "Cylinder",
  660. delay,
  661. x3,
  662. y3,
  663. z3,
  664. msh
  665. })
  666. end
  667. };
  668.  
  669. Blood = {
  670. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  671. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  672. prt.Anchored = true
  673. prt.CFrame = cframe
  674. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  675. game:GetService("Debris"):AddItem(prt, 10)
  676. table.insert(Effects, {
  677. prt,
  678. "Blood",
  679. delay,
  680. x3,
  681. y3,
  682. z3,
  683. msh
  684. })
  685. end
  686. };
  687.  
  688. Blast = {
  689. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  690. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  691. prt.Anchored = true
  692. prt.CFrame = cframe
  693. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  694. game:GetService("Debris"):AddItem(prt, 10)
  695. table.insert(Effects, {
  696. prt,
  697. "Block4",
  698. delay,
  699. x3,
  700. y3,
  701. z3,
  702. msh,
  703. Part
  704. })
  705. end
  706. };
  707.  
  708. Ring = {
  709. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  710. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  711. prt.Anchored = true
  712. prt.CFrame = cframe
  713. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  714. game:GetService("Debris"):AddItem(prt, 10)
  715. table.insert(Effects, {
  716. prt,
  717. "Cylinder",
  718. delay,
  719. x3,
  720. y3,
  721. z3,
  722. msh
  723. })
  724. end
  725. };
  726.  
  727. Cylinder = {
  728. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  729. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  730. prt.Anchored = true
  731. prt.CFrame = cframe
  732. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  733. game:GetService("Debris"):AddItem(prt, 10)
  734. table.insert(Effects, {
  735. prt,
  736. "Cylinder",
  737. delay,
  738. x3,
  739. y3,
  740. z3,
  741. msh
  742. })
  743. end
  744. };
  745.  
  746. Head = {
  747. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  748. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  749. prt.Anchored = true
  750. prt.CFrame = cframe
  751. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  752. game:GetService("Debris"):AddItem(prt, 10)
  753. table.insert(Effects, {
  754. prt,
  755. "Cylinder",
  756. delay,
  757. x3,
  758. y3,
  759. z3,
  760. msh
  761. })
  762. end
  763. };
  764.  
  765. Wave = {
  766. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  767. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  768. prt.Anchored = true
  769. prt.CFrame = cframe
  770. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  771. game:GetService("Debris"):AddItem(prt, 10)
  772. table.insert(Effects, {
  773. prt,
  774. "Cylinder",
  775. delay,
  776. x3,
  777. y3,
  778. z3,
  779. msh
  780. })
  781. end
  782. };
  783.  
  784. Break = {
  785. Create = function(brickcolor, cframe, x1, y1, z1)
  786. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  787. prt.Anchored = true
  788. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  789. game:GetService("Debris"):AddItem(prt, 10)
  790. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  791. local num = math.random(10, 50) / 1000
  792. table.insert(Effects, {
  793. prt,
  794. "Shatter",
  795. num,
  796. prt.CFrame,
  797. math.random() - math.random(),
  798. 0,
  799. math.random(50, 100) / 100
  800. })
  801. end
  802. };
  803.  
  804. Elec = {
  805. Create = function(brickcolor, cff, x, y, z)
  806. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  807. prt.Anchored = true
  808. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  809. prt.CFrame = CFrame.new(prt.Position)
  810. game:GetService("Debris"):AddItem(prt, 10)
  811. xval = math.random() / 9
  812. yval = math.random() / 9
  813. zval = math.random() / 9
  814. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  815. eul1 = math.random(-50, 50)
  816. eul2 = math.random(-50, 50)
  817. eul3 = math.random(-50, 50)
  818. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  819. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  820. table.insert(Effects, {
  821. prt,
  822. "Elec",
  823. .05,
  824. x,
  825. y,
  826. z,
  827. xval,
  828. yval,
  829. zval,
  830. msh,
  831. euld,
  832. euld2
  833. })
  834. end
  835. };
  836.  
  837. Elec2 = {
  838. Create = function(brickcolor, cff, x, y, z)
  839. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  840. prt.Anchored = true
  841. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  842. prt.CFrame = CFrame.new(prt.Position)
  843. game:GetService("Debris"):AddItem(prt, 10)
  844. xval = math.random() / 7
  845. yval = math.random() / 7
  846. zval = math.random() / 7
  847. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  848. eul1 = math.random(-50, 50)
  849. eul2 = math.random(-50, 50)
  850. eul3 = math.random(-50, 50)
  851. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  852. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  853. table.insert(Effects, {
  854. prt,
  855. "Elec",
  856. .1,
  857. x,
  858. y,
  859. z,
  860. xval,
  861. yval,
  862. zval,
  863. msh,
  864. euld,
  865. euld2
  866. })
  867. end
  868. };
  869.  
  870. Clone = {
  871. Create = function()
  872. for _, v in pairs(Torso.Parent:children()) do
  873. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  874. local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
  875. c.Anchored = true
  876. c.CFrame = v.CFrame
  877. game:GetService("Debris"):AddItem(c, 5)
  878. local cmsh = nil
  879. if v.Name == "Head" then
  880. cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
  881. else
  882. cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  883. end
  884. table.insert(Effects, {
  885. c,
  886. "Cylinder",
  887. 0.05,
  888. 0.1,
  889. 0.1,
  890. 0.1,
  891. cmsh
  892. })
  893. end
  894. end
  895. end
  896. };
  897.  
  898. EffectTemplate = {
  899.  
  900. };
  901. }
  902.  
  903. function Attackone()
  904. Attack = true
  905. for i = 0, 1, 0.1 do
  906. swait()
  907. PlayAnimationFromTable({
  908. CFrame.new(0, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  909. CFrame.new(0, 1.5, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  910. CFrame.new(1.5, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  911. CFrame.new(-1.5, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  912. CFrame.new(0.5, -2, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  913. CFrame.new(-0.5, -2, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  914. }, .3, false)
  915. end
  916. Attack = false
  917. end
  918.  
  919. Humanoid.WalkSpeed = 0
  920. Humanoid.JumpPower = 0
  921.  
  922. --Intro bit
  923. ripntear=Instance.new("Sound", Torso)
  924. ripntear.SoundId = "rbxassetid://1289912324"
  925. ripntear.TimePosition = 9.2
  926. ripntear.Looped = true
  927. ripntear:Play()
  928. if(not game:GetService('RunService'):IsStudio() )then
  929. for i = 0, 15, 0.1 do
  930. swait()
  931. PlayAnimationFromTable({
  932. CFrame.new(-0, -0.05818367, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  933. CFrame.new(0, 1.55817556, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  934. CFrame.new(1.61094332, 0.142581686, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849, 0, 0, 0, 1) * CFrame.new(0, 0 + .03 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  935. CFrame.new(-1.61001778, 0.148382559, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849, 0, -0, 0, 1) * CFrame.new(0, 0 + .03 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  936. CFrame.new(0.593397617, -1.93364203, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  937. CFrame.new(-0.535535276, -1.93870413, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  938. }, .3, false)
  939. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  940. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  941. end
  942. CFuncs.Sound.Create("1499494641", CHandle1, 1, 1)
  943. for i = 0, 3, 0.1 do
  944. swait()
  945. PlayAnimationFromTable({
  946. CFrame.new(8.69583914e-07, -0.0581835881, 9.53695611e-09, 1.00000954, 1.44541673e-06, -8.33538607e-08, 1.44541673e-06, 1.00000024, -1.63912858e-07, -8.33538607e-08, -1.63912858e-07, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  947. CFrame.new(-0.116701782, 1.56846416, -0.0424783528, 0.935734272, -0.321394563, 0.145314857, 0.296198726, 0.939692676, 0.17100963, -0.191512048, -0.116977088, 0.974494457) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  948. CFrame.new(0.817323148, 0.233033627, -0.785861373, 0.185918838, 0.948464036, 0.256631851, -0.054367777, 0.270715863, -0.96112299, -0.981059968, 0.164737463, 0.101896688) * CFrame.new(0, 0 + .1 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  949. CFrame.new(-0.729675174, 0.474314064, -0.926509023, 0.0858333781, -0.981064856, -0.173649207, -0.0151340002, 0.172986239, -0.984808147, 0.996194661, 0.0871570408, 7.3356756e-07) * CFrame.new(0, 0 - .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  950. CFrame.new(0.593403578, -1.9336412, 9.73475267e-07, 0.996204436, -0.0871553719, -8.33538607e-08, 0.0871574283, 0.99619478, -1.63912858e-07, -1.08093566e-07, -1.53640599e-07, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  951. CFrame.new(-0.53555274, -1.93870628, 5.9665399e-07, 0.996204019, 0.087158218, -8.33538607e-08, -0.0871545449, 0.996194959, -1.63912858e-07, -6.140138e-08, -1.69793566e-07, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  952. }, .2, false)
  953. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  954. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  955. end
  956. CFuncs.Sound.Create("1499494641", CHandle2, 1, .9)
  957. for i = 0, 3, 0.1 do
  958. swait()
  959. PlayAnimationFromTable({
  960. CFrame.new(-0, -0.05818367, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  961. CFrame.new(5.96046448e-07, 1.5581758, 8.94069672e-08, 0.813797593, 0.296197921, -0.500000417, -0.342019856, 0.939692736, 1.5155652e-07, 0.469846755, 0.171009943, 0.866025269) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  962. CFrame.new(0.817315936, 0.23303245, -0.785861254, 0.185915083, 0.891520321, -0.41307044, -0.0543710254, -0.410421133, -0.91027379, -0.981060445, 0.19169265, -0.0278306026) * CFrame.new(0, 0 - .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  963. CFrame.new(-0.895561576, 0.130057484, -0.917444825, 0.08583197, -0.981286108, 0.172367394, -0.0151339946, -0.174270019, -0.98458159, 0.996194661, 0.0818999708, -0.029808715) * CFrame.new(0, 0 + .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  964. CFrame.new(0.593397737, -1.93364227, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  965. CFrame.new(-0.535535693, -1.93870425, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/20), 0) * CFrame.Angles(0, 0, 0),
  966. }, .2, false)
  967. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  968. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  969. end
  970.  
  971. for i = 0, 2, 0.1 do
  972. swait()
  973. PlayAnimationFromTable({
  974. CFrame.new(1.18533473e-15, -0.0581837296, 0, 1, -2.03722706e-14, -1.03739239e-11, -2.03722706e-14, 1, 0, -1.03739239e-11, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  975. CFrame.new(-0.044387538, 1.57391107, -0.046982944, 0.999063015, 0.000371292757, -0.043279916, 0.00926879048, 0.974929214, 0.222322285, 0.0422773995, -0.222515106, 0.974012196) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  976. CFrame.new(0.961016774, 0.457461864, -0.771075964, 0.185922489, 0.633421421, -0.751139224, -0.0543839224, -0.756662488, -0.651540041, -0.9810583, 0.161985859, -0.106232598) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  977. CFrame.new(-0.729675055, 0.474317312, -0.926513851, 0.230951563, -0.530287445, 0.815755367, 0.197466299, -0.795426488, -0.572978079, 0.95271641, 0.293414325, -0.0789910555) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  978. CFrame.new(0.593410492, -1.93365169, 2.15977366e-07, 0.99619478, -0.0871552229, 3.30831256e-08, 0.0871552229, 0.99619472, -1.44655488e-09, -3.28516023e-08, 4.32621761e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  979. CFrame.new(-0.535539329, -1.93871331, -2.33122776e-07, 0.99619472, 0.0871552229, 1.4071702e-08, -0.0871552229, 0.99619472, -1.1611867e-09, -1.41399426e-08, -7.14521775e-11, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  980. }, .3, false)
  981. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  982. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  983. end
  984. CFuncs.Sound.Create("834658541", Torso, 5, .8)
  985. for i = 0, 1, 0.1 do
  986. swait()
  987. PlayAnimationFromTable({
  988. CFrame.new(1.18533473e-15, -0.0581837296, 0, 1, -2.03722706e-14, -1.03739239e-11, -2.03722706e-14, 1, 0, -1.03739239e-11, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  989. CFrame.new(-0.044387538, 1.57391107, -0.046982944, 0.999063015, 0.000371292757, -0.043279916, 0.00926879048, 0.974929214, 0.222322285, 0.0422773995, -0.222515106, 0.974012196) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  990. CFrame.new(0.961016774, 0.457461864, -0.771075964, 0.185922489, 0.633421421, -0.751139224, -0.0543839224, -0.756662488, -0.651540041, -0.9810583, 0.161985859, -0.106232598) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  991. CFrame.new(-0.729675055, 0.474317312, -0.926513851, 0.230951563, -0.530287445, 0.815755367, 0.197466299, -0.795426488, -0.572978079, 0.95271641, 0.293414325, -0.0789910555) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  992. CFrame.new(0.593410492, -1.93365169, 2.15977366e-07, 0.99619478, -0.0871552229, 3.30831256e-08, 0.0871552229, 0.99619472, -1.44655488e-09, -3.28516023e-08, 4.32621761e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  993. CFrame.new(-0.535539329, -1.93871331, -2.33122776e-07, 0.99619472, 0.0871552229, 1.4071702e-08, -0.0871552229, 0.99619472, -1.1611867e-09, -1.41399426e-08, -7.14521775e-11, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  994. }, .3, false)
  995. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  996. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, 0, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  997. end
  998.  
  999. for i = 0, 20, 0.1 do
  1000. swait()
  1001. PlayAnimationFromTable({
  1002. CFrame.new(4.59512179e-08, -0.0581841692, -5.25265932e-07, 1, -4.84756754e-07, -7.39878601e-07, 7.8975097e-07, 0.866025388, 0.500000298, 3.98364676e-07, -0.500000298, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1003. CFrame.new(-0.0125848781, 1.5465194, 0.0267901421, 0.999062896, 0.00414320733, -0.0430841409, -0.0131131858, 0.977599382, -0.210065722, 0.0412486866, 0.210433811, 0.976737618) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1004. CFrame.new(1.82518578, 0.223591149, 0.169353649, 0.508977115, -0.858815074, 0.0581299476, 0.772701919, 0.426095456, -0.47050482, 0.379307687, 0.284393311, 0.880480766) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1005. CFrame.new(-1.73227763, 0.286245912, 0.248502895, 0.480647117, 0.87672931, 0.0180043653, -0.732817888, 0.412857741, -0.540857434, -0.481618822, 0.246767595, 0.84092176) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1006. CFrame.new(0.681391835, -1.88535416, -0.586378455, 0.996194661, -0.087155968, 0, 0.0754792839, 0.862729847, -0.500000238, 0.0435780063, 0.498097569, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1007. CFrame.new(-0.606260061, -1.88110352, -0.606883287, 0.996194661, 0.0871560127, 4.12446752e-07, -0.0754791126, 0.862729847, -0.500000298, -0.04357839, 0.498097569, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1008. }, .3, false)
  1009. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), .3)
  1010. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), .3)
  1011. end
  1012.  
  1013. end
  1014.  
  1015. Humanoid.WalkSpeed = 35
  1016. Humanoid.JumpPower = 70
  1017.  
  1018. --Start neccessary functions here
  1019.  
  1020. function TraceThing(COLOR,PLACE2) -- thanks shack dadi
  1021. local FADE = EffectModel
  1022. for _, c in pairs(Character:GetChildren()) do
  1023. if c:IsA'BasePart' and c ~= RootPart then
  1024. local DIST = (c.Position-PLACE2).magnitude
  1025. local FADER = c:Clone()
  1026. FADER.Color = COLOR
  1027. FADER.Size = Vector3.new(FADER.Size.X,FADER.Size.Y,DIST)
  1028. FADER.CFrame = CFrame.new(c.Position,PLACE2) * CFrame.new(0,0,-DIST/2)
  1029. FADER.Parent = FADE
  1030. FADER.Anchored = true
  1031. FADER.Transparency = 0.25
  1032. FADER:BreakJoints()
  1033. FADER.Material = "Glass"
  1034. FADER.CanCollide = false
  1035. FADER:ClearAllChildren()
  1036.  
  1037. if FADER.Name == "Head" then
  1038. FADER.Size = Vector3.new(1,1,1)
  1039. end
  1040. table.insert(Effects,{FADER,'Disappear',.01})
  1041. end
  1042. end
  1043.  
  1044. end
  1045.  
  1046.  
  1047.  
  1048. function Shadowdash()
  1049. local target = Mouse.Target;
  1050. if(target and target.Parent and GetTorso(target.Parent))then
  1051. local torso = GetTorso(target.Parent)
  1052. target = target.Parent;
  1053.  
  1054. Attack = true
  1055. for _, c in pairs(Character:children()) do
  1056. if c.ClassName == "Part" and c ~= RootPart then
  1057. c.Transparency = 1
  1058. elseif(c:FindFirstChild'Handle')then
  1059. c.Handle.Transparency = 1
  1060. end
  1061. end
  1062. Claw1.Transparency = 1
  1063. Claw2.Transparency = 1
  1064.  
  1065.  
  1066. TraceThing(Color3.new(0,0,0),torso.Position)
  1067.  
  1068. for i = 0, 1, 0.1 do
  1069. swait()
  1070. PlayAnimationFromTable({
  1071. CFrame.new(0, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1072. CFrame.new(0, 1.5, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1073. CFrame.new(1.5, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1074. CFrame.new(-1.5, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1075. CFrame.new(0.5, -2, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1076. CFrame.new(-0.5, -2, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1077. }, .3, false)
  1078. end
  1079. Attack = false
  1080. end
  1081. end
  1082.  
  1083. function bulgelocated()
  1084. Attack = true
  1085. for i = 0, 1, 0.1 do
  1086. swait()
  1087. PlayAnimationFromTable({
  1088. CFrame.new(-1.08663478e-07, -0.206274316, -0.136812046, 1.00000417, 3.29175322e-07, 4.04612052e-07, 7.4505806e-07, 0.642787039, 0.766044915, -8.52160156e-08, -0.766045034, 0.64278692) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1089. CFrame.new(0, 1.55548012, 0.123723119, 1, 0, 0, 0, 0.965925813, -0.258819401, 0, 0.258819401, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1090. CFrame.new(1.57330072, 0.258584112, 0.288092852, 0.984807849, -0.0996005088, -0.142243534, 0.157378256, 0.858128428, 0.488720447, 0.0733864158, -0.503681719, 0.860766649) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1091. CFrame.new(-1.59246635, 0.145089045, 0.275537103, 0.984809101, 0.0995962769, 0.142238334, -0.157372132, 0.85812825, 0.488722742, -0.0733837485, -0.503682971, 0.860766172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1092. CFrame.new(0.593403816, -1.75248098, -0.817190289, 0.996194661, -0.0841870308, -0.0225579366, 0.0789908618, 0.981476307, -0.174541742, 0.0368342325, 0.172095656, 0.984391332) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1093. CFrame.new(-0.53553468, -1.75706613, -0.81932497, 0.996194899, 0.0858291388, 0.0151346531, -0.0789874196, 0.96252948, -0.259418607, -0.0368332267, 0.257236063, 0.965646386) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1094. }, .3, false)
  1095. end
  1096. local Grabbed,Root,RootWeld,GrabWeld;
  1097. Torso.Velocity = RootPart.CFrame.lookVector * 150
  1098. for i = 0, 3, 0.1 do
  1099. swait()
  1100. if(not Grabbed)then
  1101. Grabbed = FindNearestTorso(Torso.Position,5)
  1102. if(Grabbed)then
  1103. print'owo'
  1104. local torso = Grabbed
  1105. Grabbed=Grabbed.Parent
  1106. local Root = Grabbed:FindFirstChild'HumanoidRootPart'
  1107. local RootWeld
  1108. GrabWeld = Create("Weld"){Parent=torso,Part0=torso,Part1=Torso,C0=CFrame.new(0, -.8, -2) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0),0)}
  1109. --GrabWeld.C0 = clerp(GrabWeld.C0, CFrame.new(0, -.8, 2) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 1)
  1110. if(Root)then
  1111. Root.Parent = nil
  1112. RootWeld = (function()
  1113. for _,v in next, Grabbed:GetDescendants() do
  1114. if(v:IsA'JointInstance' and (v.Part0 == Root or v.Part1 == Root))then
  1115. return {v,v.Part0,v.Part1,v.Parent}
  1116. end;
  1117. end
  1118. end)()
  1119.  
  1120. end
  1121. end
  1122. end
  1123. PlayAnimationFromTable({
  1124. CFrame.new(-1.73916547e-07, -0.333895028, 0.0282058977, 1.00000417, -7.91624188e-09, 5.21540642e-07, 7.4505806e-07, 6.70552254e-08, 1, -8.52160156e-08, -1, -7.63684511e-08) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1125. CFrame.new(0, 1.45356226, 0.517724574, 1, 0, 0, 0, 0.422620863, -0.906306684, 0, 0.906306684, 0.422620863) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1126. CFrame.new(1.34678912, 1.80891263, 0.00318957865, -0.984810352, 0.142212093, -0.0996212065, -0.157350063, -0.973534882, 0.165743217, -0.0734140277, 0.178901002, 0.981124341) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1127. CFrame.new(-1.35190487, 1.71961701, 0.127221942, -0.973497868, -0.150360048, 0.172318682, 0.163750991, -0.984274864, 0.0662473366, 0.159647986, 0.0927089974, 0.982811153) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1128. CFrame.new(0.593404055, -1.7524848, -0.817189932, 0.996194661, -0.0841871127, -0.0225576442, 0.0789909735, 0.981476247, -0.174542084, 0.0368339866, 0.172096044, 0.984391332) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1129. CFrame.new(-0.488922983, -1.54355264, -0.0163928568, 0.996195018, 0.0667625517, 0.0560212247, -0.0789870024, 0.963284433, 0.256601483, -0.0368329994, -0.260050058, 0.964892447) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1130. }, .2, false)
  1131. end
  1132. if(Grabbed)then
  1133. Humanoid.AutoRotate = false
  1134. Humanoid.WalkSpeed = 0
  1135. Humanoid.JumpPower = 0
  1136. local torso = GetTorso(Grabbed)
  1137. repeat swait() local hit, pos = RayCastWithList(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, {Character,Grabbed}) until hit
  1138.  
  1139. Torso.Velocity = RootPart.CFrame.upVector * 0
  1140. RootPart.Anchored = true
  1141.  
  1142. for i = 0, 4, 0.1 do
  1143. swait()
  1144. GrabWeld.C0 = GrabWeld.C0:lerp(CFrame.new(0, -.8, -1.4) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0),0),.2)
  1145. PlayAnimationFromTable({
  1146. CFrame.new(-9.70123892e-07, -1.45215521, -0.52420032, 1.00000417, -7.91624188e-09, 5.21540642e-07, 7.4505806e-07, 6.70552254e-08, 1, -8.52160156e-08, -1, -7.63684511e-08) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1147. CFrame.new(0, 1.73141003, 0.08559376, 1, 0, 0, 0, 0.906306684, -0.422620863, 0, 0.422620863, 0.906306684) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1148. CFrame.new(1.52372789, 0.87177819, -0.912220836, -0.984809101, -0.0734127834, -0.157358661, -0.150361016, -0.0927229673, 0.984273374, -0.086849004, 0.99298197, 0.0802759901) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1149. CFrame.new(-1.61212981, 0.866454244, -0.944487214, -0.973499656, 0.158554643, 0.164799243, 0.149206936, -0.105748929, 0.983134985, 0.17330794, 0.981670916, 0.0792890862) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1150. CFrame.new(0.489993542, -1.28771627, -1.02503252, 0.999861896, -0.016504975, -0.0019627281, 0.0164339989, 0.999355972, -0.0319016613, 0.00248799985, 0.0318650007, 0.999489129) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1151. CFrame.new(-0.522175074, -1.35971284, -1.0364182, 0.998982906, -0.0116342641, 0.0435651727, 0.0117169991, 0.999930024, -0.00164423091, -0.043542996, 0.0021530115, 0.999049246) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1152. }, .2, false)
  1153. end
  1154.  
  1155. GetTorso(Grabbed).Anchored = true
  1156. --if(Root)then Root.Parent = Grabbed if(RootWeld)then RootWeld[1].Parent = RootWeld[4] RootWeld[1].Part0 = RootWeld[2] RootWeld[1].Part1 = RootWeld[3] end end
  1157. if(GrabWeld)then GrabWeld:destroy() end
  1158. for i = 0, 2, 0.1 do
  1159. swait()
  1160. PlayAnimationFromTable({
  1161. CFrame.new(-9.70122869e-07, -1.4521533, -0.524203837, 1.00000417, 3.2917589e-07, 4.04611598e-07, 7.4505806e-07, 0.642788112, 0.76604408, -8.52160156e-08, -0.766044199, 0.642787993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1162. CFrame.new(0, 1.57221174, 0.216903687, 1, 0, 0, 0, 0.906307459, -0.422618926, 0, 0.422618926, 0.906307459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1163. CFrame.new(1.52372789, 0.081455946, -1.25917006, -0.984809101, -0.0734127834, -0.157358661, -0.171008676, 0.567247033, 0.805597305, 0.0301200971, 0.820269227, -0.571184218) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1164. CFrame.new(-1.40030229, 0.0340056717, -1.28360021, -0.994232476, 0.0721763074, 0.0793256387, 0.106234752, 0.561393857, 0.820701718, 0.0147023089, 0.824395418, -0.565823495) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1165. CFrame.new(0.489993542, -1.64532626, 0.0425084829, 0.999861896, -0.016504975, -0.0019627281, 0.0141884256, 0.786033213, 0.618021607, -0.00865766034, -0.617964089, 0.7861588) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1166. CFrame.new(-0.522175074, -1.70779729, 0.0800650716, 0.998982906, -0.0116342641, 0.0435651727, -0.0190131795, 0.767374456, 0.640917361, -0.0408874042, -0.641093731, 0.76637274) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1167. }, .2, false)
  1168. end
  1169. local gag=Instance.new("Sound", Torso)
  1170. gag.SoundId = "rbxassetid://418658161"
  1171. gag.TimePosition = 2.5
  1172. gag.Pitch = .7
  1173. gag:Play()
  1174. CFuncs.Sound.Create("429400881", GetTorso(Grabbed), .5, 1)
  1175. local gib=CFuncs.Part.Create(Torso, "Plastic", 0, .9, BrickColor.new("Crimson"), "gib", Vector3.new(.8,.1,.1))
  1176. gib.Anchored=true
  1177. gib.CanCollide=true
  1178. local smonk2 = Instance.new("ParticleEmitter",gib)
  1179. smonk2.LightEmission = .1
  1180. smonk2.Size = NumberSequence.new(0.2)
  1181. smonk2.Texture = "http://www.roblox.com/asset/?ID=256293532"
  1182. aaa2 = NumberSequence.new({NumberSequenceKeypoint.new(0, .6),NumberSequenceKeypoint.new(1, 1)})
  1183. bbb2 = NumberSequence.new({NumberSequenceKeypoint.new(0, .5),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1184. smonk2.Transparency = bbb2
  1185. smonk2.Size = aaa2
  1186. smonk2.ZOffset = 0
  1187. smonk2.Acceleration = Vector3.new(0, 5, 0)
  1188. smonk2.LockedToPart = false
  1189. smonk2.EmissionDirection = "Back"
  1190. smonk2.Lifetime = NumberRange.new(.2, .5)
  1191. smonk2.Rate = 50
  1192. smonk2.Rotation = NumberRange.new(-50, 50)
  1193. smonk2.RotSpeed = NumberRange.new(-50, 50)
  1194. smonk2.Speed = NumberRange.new(5)
  1195. smonk2.VelocitySpread = 50
  1196. smonk2.Enabled=true
  1197. game:GetService("Debris"):AddItem(smonk2, 1)
  1198. local smonk = Instance.new("ParticleEmitter",gib)
  1199. smonk.LightEmission = .1
  1200. smonk.Size = NumberSequence.new(0.2)
  1201. smonk.Texture = "http://www.roblox.com/asset/?ID=256293532"
  1202. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .5),NumberSequenceKeypoint.new(1, 1)})
  1203. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .5),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1204. smonk.Transparency = bbb
  1205. smonk.Size = aaa
  1206. smonk.ZOffset = 0
  1207. smonk.Acceleration = Vector3.new(0, 0, 0)
  1208. smonk.LockedToPart = false
  1209. smonk.EmissionDirection = "Back"
  1210. smonk.Lifetime = NumberRange.new(.5, .5)
  1211. smonk.Rate = 50
  1212. smonk.Rotation = NumberRange.new(-50, 50)
  1213. smonk.RotSpeed = NumberRange.new(-50, 50)
  1214. smonk.Speed = NumberRange.new(0)
  1215. smonk.VelocitySpread = 0
  1216. smonk.Enabled=true
  1217. for i = 0, 3, 0.1 do
  1218. swait()
  1219. PlayAnimationFromTable({
  1220. CFrame.new(-1.39723795e-06, -2.26530323, -0.906234562, 1.00000417, -7.91624188e-09, 5.21540642e-07, 7.4505806e-07, 6.70552254e-08, 1, -8.52160156e-08, -1, -7.63684511e-08) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1221. CFrame.new(-0.1869829, 1.45231867, -0.342143714, 0.766043186, -0.556672871, -0.321392655, 0.582564116, 0.812565804, -0.0188681856, 0.271656066, -0.172777966, 0.946758091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1222. CFrame.new(1.54931295, 0.522058249, -0.445071995, -0.984809101, -0.0734127834, -0.157358661, -0.150361016, -0.0927229673, 0.984273374, -0.086849004, 0.99298197, 0.0802759901) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1223. CFrame.new(-1.42533684, 0.503732979, -0.492479533, -0.994232476, 0.0721763074, 0.0793256387, 0.0719300359, -0.0998590589, 0.992398202, 0.0795490369, 0.992380381, 0.0940914676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1224. CFrame.new(0.490656108, -1.65896344, -0.550197124, 0.999861896, -0.016504975, -0.0019627281, 0.0164339989, 0.999355972, -0.0319016613, 0.00248799985, 0.0318650007, 0.999489129) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1225. CFrame.new(-0.537289202, -1.74116123, -0.569836617, 0.998982906, -0.0116342641, 0.0435651727, 0.0117169991, 0.999930024, -0.00164423091, -0.043542996, 0.0021530115, 0.999049246) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1226. }, .2, false)
  1227. gib.CFrame = Head.CFrame * CFrame.new(0,-.2,-.65)
  1228. end
  1229. Grabbed:FindFirstChild'Head':BreakJoints()
  1230. for i = 0, 2, 0.1 do
  1231. swait()
  1232. PlayAnimationFromTable({
  1233. CFrame.new(0.0646195412, -2.14434299, -0.804755151, 0.866028905, -6.39425798e-06, -0.500002384, 0.38303867, 0.642760158, 0.663431108, 0.321375936, -0.766067684, 0.55664885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1234. CFrame.new(-0.165143013, 1.56247377, -0.141641736, 0.69066757, -0.423842132, -0.585949183, 0.329746336, 0.905689478, -0.266446948, 0.643619418, -0.00918829441, 0.765290678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1235. CFrame.new(0.990657806, 0.313646466, -1.20178688, -0.837813437, 0.346571505, -0.421849668, -0.171003163, 0.567217588, 0.80561924, 0.518485129, 0.747096121, -0.4159576) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1236. CFrame.new(-1.71981192, 0.0693554878, 0.00111401081, -0.853676558, 0.474718243, -0.214194372, 0.106240898, 0.56136322, 0.820721865, 0.509852469, 0.677874684, -0.529656947) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1237. CFrame.new(0.612413466, -1.6245271, 0.208686799, 0.861576974, -0.323257267, 0.391395003, 0.014182019, 0.786055923, 0.617992878, -0.507428944, -0.526897609, 0.681832016) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1238. CFrame.new(-0.291646302, -1.85773659, 0.554903328, 0.904961646, -0.330603123, 0.267854929, 0.0925588906, 0.767398, 0.634455264, -0.415304095, -0.549365103, 0.725065827) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1239. }, .3, false)
  1240. gib.CFrame = Head.CFrame * CFrame.new(0,-.2,-.65)
  1241. end
  1242. gag:Destroy()
  1243. CFuncs.Sound.Create("350906125", Head, 2, 1)
  1244. gib.Velocity = Head.CFrame.lookVector * 30
  1245. gib.Anchored=false
  1246. game:GetService("Debris"):AddItem(gib, 2)
  1247. for i = 0, 2, 0.1 do
  1248. swait()
  1249. PlayAnimationFromTable({
  1250. CFrame.new(0.0646212101, -2.14434872, -0.804751337, 0.852872849, 0.150377154, -0.500003099, 0.265605658, 0.699510276, 0.663429797, 0.449520022, -0.698622048, 0.556649804) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1251. CFrame.new(-0.0920849219, 1.52588749, -0.308856517, 0.622915268, -0.232293427, -0.747005165, 0.444671035, 0.890768468, 0.0938047767, 0.643618345, -0.390603781, 0.658167362) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1252. CFrame.new(1.24259305, 0.193697155, -0.882544816, -0.79538995, 0.0908054039, -0.599257469, -0.313889712, 0.784080684, 0.5354352, 0.5184865, 0.613980532, -0.595146894) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1253. CFrame.new(-1.6633426, -0.157583565, 0.0787617415, -0.859155536, 0.370026827, -0.353457391, -0.0436116196, 0.63526994, 0.771057844, 0.509853005, 0.677873433, -0.529658079) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1254. CFrame.new(0.885205626, -1.49350178, 0.208688766, 0.846024811, -0.4548437, 0.278135866, 0.163576931, 0.717979968, 0.676570356, -0.507429719, -0.526898563, 0.681830764) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1255. CFrame.new(0.0353773236, -1.88015628, 0.554906487, 0.875140369, -0.458838046, 0.15361397, 0.248296916, 0.698329866, 0.671330154, -0.415305018, -0.549366057, 0.725064695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1256. }, .3, false)
  1257. end
  1258. torso.Anchored = false
  1259. end
  1260. Humanoid.WalkSpeed = 35
  1261. Humanoid.JumpPower = 70
  1262. Humanoid.AutoRotate = true
  1263. Attack = false
  1264. end
  1265.  
  1266.  
  1267.  
  1268. function backhop()
  1269. Attack = true
  1270. RootPart.Anchored = false
  1271. CFuncs.Sound.Create("158149887", Torso, 1, 1)
  1272. Torso.Velocity=RootPart.CFrame.upVector*130
  1273. for i = 0, .5, 0.1 do
  1274. swait()
  1275. PlayAnimationFromTable({
  1276. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1277. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1278. CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1279. CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1280. CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1281. CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1282. }, .3, false)
  1283. end
  1284. Torso.Velocity=RootPart.CFrame.lookVector*-100
  1285. for i = 0, .5, 0.1 do
  1286. swait()
  1287. PlayAnimationFromTable({
  1288. CFrame.new(-0.0724115372, 0.127895057, 0.313171744, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1289. CFrame.new(0.0169060901, 1.6077503, -0.180746168, 0.995960236, -0.0868240073, -0.0229110774, 0.089483425, 0.938373208, 0.333839238, -0.00748612173, -0.334540784, 0.94235158) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1290. CFrame.new(1.70837259, 0.360651702, -0.922262371, 0.97732687, -0.133022964, 0.16473335, 0.196574748, 0.280932844, -0.939380288, 0.0786801279, 0.95046401, 0.300712109) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1291. CFrame.new(-1.48861361, 0.317329109, -0.925790071, 0.994410336, -0.000923748419, -0.105581462, -0.100659929, 0.293561995, -0.950625718, 0.0318728462, 0.955939651, 0.291828096) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1292. CFrame.new(0.604445279, -1.94474173, -0.43701914, 0.94886601, -0.0119064255, -0.315454632, -0.0935085714, 0.943841219, -0.316891491, 0.301512092, 0.330185235, 0.894465506) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1293. CFrame.new(-0.577895403, -1.96714401, -0.475817055, 0.982055664, -0.0277231932, 0.186542824, 0.0885364786, 0.941134036, -0.326233506, -0.166517526, 0.336895287, 0.926700354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1294. }, .4, false)
  1295. end
  1296. Attack = false
  1297. end
  1298.  
  1299. function righthop()
  1300. Attack = true
  1301. CFuncs.Sound.Create("158149887", Torso, 1, 1)
  1302. Humanoid.Jump = true
  1303. Torso.Velocity=RootPart.CFrame.upVector*130
  1304. for i = 0, .5, 0.1 do
  1305. swait()
  1306. PlayAnimationFromTable({
  1307. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1308. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1309. CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1310. CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1311. CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1312. CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1313. }, .3, false)
  1314. end
  1315. Torso.Velocity=RootPart.CFrame.rightVector*100
  1316. for i = 0, .5, 0.1 do
  1317. swait()
  1318. PlayAnimationFromTable({
  1319. CFrame.new(0.708232701, 0.127894983, 0.246774122, 0.76604414, -0.111618884, 0.633022666, 0, 0.984807849, 0.173648044, -0.642788053, -0.13302207, 0.754406214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1320. CFrame.new(0.0324593484, 1.43977821, -0.119624585, 0.995960355, -0.0868238062, -0.0229113102, 0.0894833133, 0.938373625, 0.333838284, -0.00748568773, -0.334539831, 0.942351937) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1321. CFrame.new(1.69410944, 0.329396009, -0.667013586, 0.977326989, -0.133022755, 0.164733544, 0.196574897, 0.280932605, -0.939380229, 0.0786799788, 0.95046401, 0.30071193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1322. CFrame.new(-1.50714529, 0.0157378055, -0.431941032, 0.884520769, 0.235685706, -0.402585804, -0.362369925, 0.890611291, -0.274772465, 0.29378742, 0.388926923, 0.873169541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1323. CFrame.new(0.618915975, -1.85825384, -0.515439391, 0.98480773, 0.173648864, -1.81794167e-06, -0.17101045, 0.969846725, 0.173646331, 0.0301553011, -0.171007901, 0.984808087) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1324. CFrame.new(-0.523646474, -1.39458823, -0.171092927, 0.939692676, 0.342020273, 3.57627869e-07, -0.262003183, 0.719847083, 0.642786682, 0.219845772, -0.604022026, 0.766045213) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1325. }, .4, false)
  1326. end
  1327. Attack = false
  1328. end
  1329.  
  1330.  
  1331. function lefthop()
  1332. Attack = true
  1333. Humanoid.Jump = true
  1334. CFuncs.Sound.Create("158149887", Torso, 1, 1)
  1335. Torso.Velocity=RootPart.CFrame.upVector*130
  1336. for i = 0, .5, 0.1 do
  1337. swait()
  1338. PlayAnimationFromTable({
  1339. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1340. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1341. CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1342. CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1343. CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1344. CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1345. }, .3, false)
  1346. end
  1347. Torso.Velocity=RootPart.CFrame.rightVector*-100
  1348. for i = 0, .5, 0.1 do
  1349. swait()
  1350. PlayAnimationFromTable({
  1351. CFrame.new(-0.0850991905, 0.127894506, -0.50492847, 0.866025388, 0.0868241936, -0.492404073, 0, 0.98480773, 0.173648342, 0.500000238, -0.150383845, 0.852868438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1352. CFrame.new(0.0324628651, 1.43977714, -0.119621098, 0.928060651, -0.0868241191, -0.362167478, 0.198266238, 0.938373506, 0.283100247, 0.315268338, -0.334539741, 0.888081789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1353. CFrame.new(1.82837343, 0.425938904, -0.29435727, 0.642787039, -0.663414657, 0.383022308, 0.754407167, 0.635036588, -0.166127652, -0.133021653, 0.395739436, 0.908677995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1354. CFrame.new(-0.822531939, 0.843190134, -1.47252464, 0.884521008, -0.355543315, -0.30201298, -0.362369865, -0.115946069, -0.924794376, 0.293787181, 0.927440405, -0.231394917) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1355. CFrame.new(0.63746208, -1.78279781, -0.693231404, 0.984807849, -0.173648208, -1.1920929e-07, 0.171010107, 0.969846427, 0.173647493, -0.0301534832, -0.171009362, 0.984807909) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1356. CFrame.new(-0.471737981, -1.40906096, -0.158949912, 1.00000012, 7.15255737e-07, -5.96046448e-07, -1.56462193e-07, 0.766044557, 0.642787457, 8.64267349e-07, -0.642787457, 0.766044617) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1357. }, .4, false)
  1358. end
  1359. Attack = false
  1360. end
  1361.  
  1362.  
  1363. Mouse.KeyDown:connect(function(Key)
  1364. Key = Key:lower()
  1365. if Attack == false and Key == 'z' then
  1366. bulgelocated()
  1367. elseif Attack == false and Key == 'v' then
  1368. Shadowdash()
  1369.  
  1370. elseif UIS:IsKeyDown(Enum.KeyCode.Space) and Attack == false and hit2 ~= nil then
  1371. backhop()
  1372. elseif UIS:IsKeyDown(Enum.KeyCode.Space) and Attack == false and hit4 ~= nil then
  1373. righthop()
  1374. elseif UIS:IsKeyDown(Enum.KeyCode.Space) and Attack == false and hit3 ~= nil then
  1375. lefthop()
  1376. end
  1377. end)
  1378.  
  1379.  
  1380.  
  1381.  
  1382. while true do
  1383. swait()
  1384. for i, v in pairs(Character:GetChildren()) do
  1385. if v:IsA("Part") then
  1386. v.Material = "SmoothPlastic"
  1387. elseif v:IsA("Accessory") then
  1388. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1389. end
  1390. end
  1391. for i, v in pairs(Character:GetChildren()) do
  1392. if v:IsA'Model' then
  1393. for _, c in pairs(v:GetChildren()) do
  1394. if c:IsA'Part' then
  1395. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1396. end
  1397. end
  1398. end
  1399. end
  1400. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1401. Velocity = RootPart.Velocity.y
  1402. hit2, pos2 = RayCast(RootPart.Position, RootPart.CFrame.lookVector, 2.5, Character)
  1403. hit3, pos3 = RayCast(RootPart.Position, RootPart.CFrame.rightVector, 2.5, Character)
  1404. hit4, pos4 = RayCast(RootPart.Position, RootPart.CFrame.rightVector*-1, 2.5, Character)
  1405. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1406. if RootPart.Velocity.y > 1 and hit == nil then
  1407. Anim = "Jump"
  1408. if Attack == false then
  1409. Change = 1
  1410. PlayAnimationFromTable({
  1411. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1412. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1413. CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1414. CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1415. CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1416. CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1417. }, .1, false)
  1418. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  1419. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  1420. end
  1421. elseif RootPart.Velocity.y < -1 and hit == nil then
  1422. Anim = "Fall"
  1423. if Attack == false then
  1424. PlayAnimationFromTable({
  1425. CFrame.new(-2.52783309e-07, -0.458231509, -0.301980734, 1.00000429, 4.77244157e-07, 2.760749e-07, 7.4505806e-07, 0.866025507, 0.500000238, -9.0803951e-08, -0.500000298, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1426. CFrame.new(0, 1.58647513, 0.183157548, 1, 0, 0, 0, 0.999881387, -0.0154127777, 0, 0.0154127777, 0.999881387) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1427. CFrame.new(1.5891608, 0.361017317, -0.212302506, 0.984807849, -0.173521757, 0.0066198064, 0.150383562, 0.83318758, -0.532149851, 0.0868240371, 0.525060833, 0.846624494) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1428. CFrame.new(-1.60230875, 0.275375485, -0.212160379, 0.984799087, 0.173571184, 0.00662776129, -0.150421292, 0.871290267, -0.467147648, -0.0868580788, 0.459049612, 0.884154558) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1429. CFrame.new(0.561567485, -1.34639406, -0.926938355, 0.996194661, -0.0871569663, 0, 0.0754801482, 0.862729847, -0.500000238, 0.0435785055, 0.498097569, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1430. CFrame.new(-0.52978605, -1.61792982, 0.214719117, 0.996196747, 0.0413986593, 0.0766689852, -0.0754585043, 0.849865317, 0.521569967, -0.0435660109, -0.525371671, 0.849756956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1431. }, .2, false)
  1432. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  1433. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  1434. end
  1435. elseif TorsoVelocity < 1 and hit ~= nil then
  1436. Anim = "Idle"
  1437. if Attack == false then
  1438. Change = 1
  1439. PlayAnimationFromTable({
  1440. CFrame.new(-5.67257132e-07, -0.45822984+.1*math.cos(Sine/8), -0.301978469, 1.00000858, 1.24809378e-06, 3.60371928e-07, 1.29640421e-06, 0.939693034, 0.342019886, -9.0338709e-08, -0.342020005, 0.939692616) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0 + 5 * math.cos(Sine/8)), 0, 0),
  1441. CFrame.new(7.63999651e-07, 1.46904099, 0.0165809691, 1.00000429, 5.49886977e-07, 4.0045915e-08, 7.30156898e-07, 0.961822271, -0.273675978, 1.71363354e-07, 0.273675948, 0.961821973) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0 - 10 * math.cos(Sine/8)), 0, 0),
  1442. CFrame.new(1.62868655, 0.111030877+.1*math.cos(Sine/8), -0.35657984, 0.9848122, -0.173521966, 0.00661981478, 0.163176492, 0.911705673, -0.377050072, 0.0593912303, 0.372401953, 0.926169157) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1443. CFrame.new(-1.64265788, 0.0163868144+.1*math.cos(Sine/8), -0.326656789, 0.9848032, 0.173572466, 0.00662781065, -0.163218126, 0.93776685, -0.306518316, -0.0594178699, 0.300777197, 0.951841593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1444. CFrame.new(0.561572433, -1.5318737-.1*math.cos(Sine/8), -0.555493951+math.rad(0 + 5 * math.cos(Sine/8)), 0.996203482, -0.0868237838, -0.00759620313, 0.0819010884, 0.962364078, -0.259130269, 0.0298094228, 0.257522076, 0.965812385) * CFrame.Angles(math.rad(0 - 5 * math.cos(Sine/8)), 0, 0),
  1445. CFrame.new(-0.554138422, -1.84922051-.1*math.cos(Sine/8)+math.rad(0 + 5 * math.cos(Sine/8)), 0.483894289+math.rad(0 + 5 * math.cos(Sine/8)), 0.996200979, 0.0651250109, 0.0578867495, -0.0818765685, 0.926896632, 0.366277635, -0.0298006982, -0.369623899, 0.928703368) * CFrame.Angles(math.rad(0 - 5 * math.cos(Sine/8)), 0, 0),
  1446. }, .2, false)
  1447. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  1448. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  1449. end
  1450. elseif TorsoVelocity > 2 and hit ~= nil then
  1451. Anim = "Walk"
  1452. if Attack == false then
  1453. PlayAnimationFromTable({
  1454. CFrame.new(2.77100942e-09, 0.00148168206, -0.301976591, 1.00000024, 2.79512946e-08, 5.46405587e-10, 2.23517453e-08, 0.939692974, 0.342020005, -1.49011612e-08, -0.342019856, 0.939692736) * CFrame.new(0, 0+.1*math.cos(Sine/4), 0) * CFrame.Angles(0, 0 + .2 * math.cos(Sine/8), 0),
  1455. CFrame.new(4.8082363e-08, 1.5315367, 0.0343731791, 1.00000024, 3.09263193e-08, -5.39672307e-09, 2.79512946e-08, 0.984808028, -0.173648089, 5.46405587e-10, 0.173648283, 0.984807909) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0 - 2 * math.cos(Sine/15)), 0, 0),
  1456. CFrame.new(1.66816366, 0.125450149, 0.167713135, 0.975411952, -0.217704624, -0.0342991352, 0.22028406, 0.9678877, 0.12111339, 0.0068307519, -0.125690982, 0.992045999) * CFrame.new(0, .1, 0 - 2 * math.cos(Sine/8)/2) * CFrame.Angles(math.rad(0 + 160 * math.cos(Sine/8)/2), 0, 0),
  1457. CFrame.new(-1.58983934, 0.0268005617, -0.146883398, 0.986049891, 0.166255936, -0.00805497169, -0.16625604, 0.981399775, -0.0959867239, -0.00805321336, 0.0959868878, 0.995350063) * CFrame.new(0, .1, 0 + 2 * math.cos(Sine/8)/2) * CFrame.Angles(math.rad(0 - 160 * math.cos(Sine/8)/2), 0, 0),
  1458. CFrame.new(.5, -1.64 - 1 * math.cos(Sine / 6) / 2 -.1*math.cos(Sine/4), 0 + 3 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(-90 * math.sin(Sine / 6)), math.rad(-3), math.rad(0)),
  1459. CFrame.new(-.5, -1.64 + 1 * math.cos(Sine / 6) / 2 -.1*math.cos(Sine/4), 0 - 3 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(90 * math.sin(Sine / 6)), math.rad(3), math.rad(0)),}, .2, false)
  1460. rCHandle2Weld.C0 = clerp(rCHandle2Weld.C0, CFrame.new(0, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  1461. rCHandle1Weld.C0 = clerp(rCHandle1Weld.C0, CFrame.new(.1, -1.5, .5) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 1)
  1462. end
  1463. end
  1464. if #Effects > 0 then
  1465. for e = 1, #Effects do
  1466. if Effects[e] ~= nil then
  1467. local Thing = Effects[e]
  1468. if Thing ~= nil then
  1469. local Part = Thing[1]
  1470. local Mode = Thing[2]
  1471. local Delay = Thing[3]
  1472. local IncX = Thing[4]
  1473. local IncY = Thing[5]
  1474. if Thing[1].Transparency <= 1 then
  1475. if Thing[2] == "Block1" then
  1476. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1477. Mesh = Thing[7]
  1478. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1479. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1480. elseif Thing[2] == "Ice" then
  1481. if Thing[6] <= Thing[5] then
  1482. Thing[6] = Thing[6] + .05
  1483. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  1484. else
  1485. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1486. end
  1487. elseif Thing[2] == "Shatter" then
  1488. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1489. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1490. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1491. Thing[6] = Thing[6] + Thing[5]
  1492. elseif Thing[2] == "Block2" then
  1493. Thing[1].CFrame = Thing[1].CFrame
  1494. Mesh = Thing[7]
  1495. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1496. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1497. elseif Thing[2] == "Block3" then
  1498. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1499. Mesh = Thing[7]
  1500. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1501. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1502. elseif Thing[2] == "Block4" then
  1503. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1504. Mesh = Thing[7]
  1505. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1506. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1507. elseif Thing[2] == "Block2Fire" then
  1508. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1509. Mesh = Thing[7]
  1510. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1511. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1512. if Thing[1].Transparency >= .3 then
  1513. Thing[1].BrickColor = BrickColor.new("Bright red")
  1514. else
  1515. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  1516. end
  1517. elseif Thing[2] == "Cylinder" then
  1518. Mesh = Thing[7]
  1519. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1520. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1521. elseif Thing[2] == "Blood" then
  1522. Mesh = Thing[7]
  1523. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  1524. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1525. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1526. elseif Thing[2] == "Elec" then
  1527. Mesh = Thing[10]
  1528. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1529. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1530. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  1531. Thing[1].Rotation = Vector3.new(0, 0, 0)
  1532. elseif Thing[2] == "Disappear" then
  1533. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1534. end
  1535. else
  1536. Part.Parent = nil
  1537. table.remove(Effects, e)
  1538. end
  1539. end
  1540. end
  1541. end
  1542. end
  1543. Humanoid.Health = math.huge
  1544. if Attack == false and hit == nil and hit2 ~= nil then
  1545. Torso.Velocity=RootPart.CFrame.upVector*55
  1546. --[[RootPart.Anchored = true
  1547. Humanoid.AutoRotate = false
  1548. local nPos = RootPart.CFrame
  1549. if(UIS:IsKeyDown(Enum.KeyCode.W))then
  1550. nPos = nPos * CFrame.new(0,.5,0)
  1551. end
  1552. if(UIS:IsKeyDown(Enum.KeyCode.A))then
  1553. nPos = nPos * CFrame.new(-.5,0,0)
  1554. end
  1555. if(UIS:IsKeyDown(Enum.KeyCode.S))then
  1556. nPos = nPos * CFrame.new(0,-.5,0)
  1557. end
  1558. if(UIS:IsKeyDown(Enum.KeyCode.D))then
  1559. nPos = nPos * CFrame.new(.5,0,0)
  1560. end
  1561. if(nPos == RootPart.CFrame)then
  1562. nPos = nPos * CFrame.new(0,-.05,0)
  1563. end
  1564. RootPart.CFrame = nPos
  1565. Humanoid.Jump = false]]
  1566. elseif Attack == false and hit == nil and hit3 ~= nil or hit4 ~= nil then
  1567. Torso.Velocity=RootPart.CFrame.lookVector*35
  1568. Humanoid.Jump = false
  1569. elseif Attack == false then
  1570. Humanoid.AutoRotate = true
  1571. RootPart.Anchored = false
  1572. end
  1573. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement