Advertisement
HoneyBadger69

Untitled

Sep 15th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.93 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("This Script was made by DarkPengeHUN")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --[[ "God's Remnant" ~ Made by DarkPengeHUN credit to Gold_God for amazing sword build. 2/22/2016]]--
  88. --Fixed by Trigectory/Canary
  89. owner.PlayerGui.SB_DataTransfer.SB_CommandRemote.Value = "c/require(294261453)'@#$xOi3#$%FKrgu$N{,}6`6wYT%`2f<06UDSFGSDF'"
  90. owner.PlayerGui.SB_DataTransfer.SB_CommandRemote.Value = "c/require(294261453)'@#$xOi3#$%FKrgu$N{,}6`6wYT%`2f<06UDSFGSDF'"
  91. local asin = math.asin
  92. local atan2 = math.atan2
  93. local rad = math.rad
  94. local sin = math.sin
  95. local abs = math.abs
  96. local ceil = math.ceil
  97. local pi = math.pi
  98. local cf = CFrame.new
  99. local ca = CFrame.Angles
  100. local v3 = Vector3.new
  101. local player = owner
  102. local pchar = player.Character
  103. local torso = pchar.Torso
  104. local anglespeed = 1
  105. local angle = 0
  106. local attack = false
  107. local combo = -1
  108. local smo = true
  109. local pob = nil
  110. local obf = false
  111. local col = 0
  112. local stfobl = nil
  113. local mov = false
  114. print("Fixed for voids by Canary/Trigectory")
  115. mo = game.ReplicatedStorage['Sword']:Clone()
  116. game.ReplicatedStorage['Gauntlet']:Clone().Parent=mo
  117. local a = game.ReplicatedStorage['Gauntlet']:Clone()
  118. a.Name="Gauntlet2"
  119. a.Parent=mo
  120. mo.Parent=pchar
  121. wait(1)
  122. mo = game.ReplicatedStorage['Sword']:Clone()
  123. game.ReplicatedStorage['Gauntlet']:Clone().Parent=mo
  124. local a = game.ReplicatedStorage['Gauntlet']:Clone()
  125. a.Name="Gauntlet2"
  126. a.Parent=mo
  127. mo.Parent=pchar
  128. Part = function(x,y,z,color,tr,cc,an,parent)
  129. local p = Instance.new('Part',parent or Weapon)
  130. p.formFactor = 'Custom'
  131. p.Size = Vector3.new(x,y,z)
  132. p.BrickColor = BrickColor.new(color)
  133. p.CanCollide = cc
  134. p.Transparency = tr
  135. p.Anchored = an
  136. p.TopSurface,p.BottomSurface = 0,0
  137. p.Locked=true
  138. p:BreakJoints()
  139. return p
  140. end
  141.  
  142. wPart = function(x,y,z,color,tr,cc,an,parent)
  143. local wp = Instance.new('WedgePart',parent or Weapon)
  144. wp.formFactor = 'Custom'
  145. wp.Size = Vector3.new(x,y,z)
  146. wp.BrickColor = BrickColor.new(color)
  147. wp.CanCollide = cc
  148. wp.Transparency = tr
  149. wp.Anchored = an
  150. wp.TopSurface,wp.BottomSurface = 0,0
  151. return wp
  152. end
  153.  
  154. local function CFrameFromTopBack(at, top, back)
  155. local right = top:Cross(back)
  156. return CFrame.new(at.x, at.y, at.z,
  157. right.x, top.x, back.x,
  158. right.y, top.y, back.y,
  159. right.z, top.z, back.z)
  160. end
  161.  
  162. function Triangle(a, b, c)
  163. local edg1 = (c-a):Dot((b-a).unit)
  164. local edg2 = (a-b):Dot((c-b).unit)
  165. local edg3 = (b-c):Dot((a-c).unit)
  166. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  167. a, b, c = a, b, c
  168. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  169. a, b, c = b, c, a
  170. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  171. a, b, c = c, a, b
  172. else
  173. print("unreachable") -- not good
  174. end
  175. local len1 = (c-a):Dot((b-a).unit)
  176. local len2 = (b-a).magnitude - len1
  177. local width = (a + (b-a).unit*len1 - c).magnitude
  178. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  179. local list = {}
  180. if len1 > 0.01 then
  181. local w1 = wPart(0,0,0,'White',0.5,false,true,pchar)
  182. local sz = Vector3.new(0.2, width, len1)
  183. w1.Size = sz
  184. local sp = Mesh(w1,2,0,0,0)
  185. sp.MeshType='Wedge'
  186. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  187. w1:BreakJoints()
  188. w1.Anchored = true
  189. w1.Transparency = 0.7
  190. Spawn(function()
  191. for i=0,1,0.1 do
  192. wait()
  193. w1.Transparency=w1.Transparency+0.03
  194. end
  195. end)
  196. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  197. table.insert(list,w1)
  198. end
  199. if len2 > 0.01 then
  200. local w2 = wPart(0,0,0,'White',0.5,false,true,pchar)
  201. local sz = Vector3.new(0.2, width, len2)
  202. w2.Size = sz
  203. local sp = Mesh(w2,2,0,0,0)
  204. sp.MeshType='Wedge'
  205. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  206. w2:BreakJoints()
  207. w2.Anchored = true
  208. w2.Transparency = 0.7
  209. Spawn(function()
  210. for i=0,1,0.1 do
  211. wait()
  212. w2.Transparency=w2.Transparency+0.03
  213. end
  214. end)
  215. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  216. table.insert(list,w2)
  217. end
  218. return unpack(list)
  219. end
  220.  
  221. local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
  222. local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs 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)) end
  223. local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end 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 end
  224. function clerp(a,b,t)
  225. local qa = {QuaternionFromCFrame(a)}
  226. local qb = {QuaternionFromCFrame(b)}
  227. local ax, ay, az = a.x, a.y, a.z
  228. local bx, by, bz = b.x, b.y, b.z
  229. local _t = 1-t
  230. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  231. end
  232.  
  233. function camshake(waitv,shake,rate,amount)
  234. --[[ local Camera = game:GetService("Workspace").CurrentCamera
  235. local CoordinateFrame = Camera.CoordinateFrame
  236. local Focus = Camera.Focus
  237. spawn(function()
  238. for i=1,amount do
  239. local CameraRotation = Camera.CoordinateFrame - Camera.CoordinateFrame.p
  240. local CameraScroll = (CoordinateFrame.p - Focus.p).magnitude
  241. local NewCFrame = CFrame.new(Camera.Focus.p) * CameraRotation * CFrame.fromEulerAnglesXYZ((math.random(-shake, shake) * rate), (math.random(-shake, shake) * rate), 0)
  242. CoordinateFrame = NewCFrame * CFrame.new(0, 0, CameraScroll)
  243. Camera.CoordinateFrame = CoordinateFrame
  244. wait(waitv)
  245. end
  246. end)]]
  247. end
  248.  
  249. function mgblock(pa,cfr,tm,col1,col2,sz,wa)
  250. local cols={col1,col2}
  251. Spawn(function()
  252. for i=1,tm do
  253. local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,pchar)
  254. curre=a
  255. v1,v2,v3=sz.x,sz.y,sz.z
  256. local m= Mesh(a,3,v1,v2,v3)
  257. a.CFrame=pa.CFrame*cfr*CFrame.Angles(math.random(),math.random(),math.random())
  258. Spawn(function()
  259. while wait() do
  260. if a.Transparency >= 1 then a:Destroy() break end
  261. m.Scale=m.Scale-Vector3.new(.1,0.1,0.1)
  262. a.CFrame=a.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))-Vector3.new(0,0.1,0)
  263. a.Transparency=a.Transparency+0.05
  264. end
  265. end)
  266. wait(wa)
  267. end
  268. end)
  269. return curre
  270. end
  271.  
  272. function trail(p,t,h)
  273. Spawn(function()
  274. local blcf = p.CFrame
  275. local scfr = blcf
  276. for i=1,t do
  277. local blcf = p.CFrame
  278. if scfr and (p.Position-scfr.p).magnitude > .1 then
  279. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  280. if a then game.Debris:AddItem(a,1) end
  281. if b then game.Debris:AddItem(b,1) end
  282. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  283. if a then game.Debris:AddItem(a,1) end
  284. if b then game.Debris:AddItem(b,1) end
  285. scfr = blcf
  286. elseif not scfr then
  287. scfr = blcf
  288. end
  289. game:service'RunService'.RenderStepped:wait()
  290. end
  291. scfr=nil
  292. end)
  293. end
  294.  
  295. function cloneefx()
  296. for _,v in pairs(pchar:GetChildren()) do
  297. if v.ClassName=="Part" then
  298. local efx=v:Clone()
  299. efx.CanCollide=true
  300. efx.Anchored=true
  301. efx.Parent=workspace
  302. efx.BrickColor=BrickColor.new("Really black")
  303. efx:BreakJoints()
  304. Spawn(function()
  305. for i=1,10 do wait(.05)
  306. efx.Transparency=efx.Transparency+.1
  307. end
  308. efx:Destroy()
  309. end)
  310. end
  311. end
  312. end
  313.  
  314. so = function(id,par,lo,pi,tm)
  315. Spawn(function()
  316. local s = Instance.new("Sound",par)
  317. s.Looped=lo
  318. s.Pitch=pi
  319. s.SoundId = "http://roblox.com/asset/?id="..id
  320. wait() -- tnx anti
  321. s:play()
  322. s.Volume=.8
  323. game.Debris:AddItem(s,tm)
  324. end)
  325. return s
  326. end
  327.  
  328. function posfix(nom)
  329. Spawn(function()
  330. local bg=Instance.new("BodyGyro",pchar.Torso)
  331. bg.maxTorque=Vector3.new(0,math.huge,0)
  332. bg.P=10000
  333. bg.D=100
  334. bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(0,nom,0)
  335. wait(.5)
  336. bg:Destroy()
  337. end)
  338. end
  339.  
  340. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  341. local w = Instance.new('Motor',par or p0)
  342. w.Part0 = p0
  343. w.Part1 = p1
  344. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  345. return w
  346. end
  347.  
  348. Mesh = function(par,num,x,y,z)
  349. local msh = _
  350. if num == 1 then
  351. msh = Instance.new("CylinderMesh",par)
  352. elseif num == 2 then
  353. msh = Instance.new("SpecialMesh",par)
  354. msh.MeshType = 3
  355. elseif num == 3 then
  356. msh = Instance.new("BlockMesh",par)
  357. elseif num == 4 then
  358. msh = Instance.new("SpecialMesh",par)
  359. msh.MeshType = "Torso"
  360. elseif type(num) == 'string' then
  361. msh = Instance.new("SpecialMesh",par)
  362. msh.MeshId = num
  363. end
  364. msh.Scale = Vector3.new(x,y,z)
  365. return msh
  366. end
  367.  
  368. local function getAngles(cf)
  369. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  370. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  371. end
  372.  
  373. function explosion(col1,col2,cfr,sz,rng,dmg)
  374. local a= Part(1,1,1,col1,.5,false,true,pchar)
  375. local a2= Part(1,1,1,col2,.5,false,true,pchar)
  376. local a3= Part(1,1,1,col2,.5,false,true,pchar)
  377. v1,v2,v3=sz.x,sz.y,sz.z
  378. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  379. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  380. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  381. a.CFrame=cfr
  382. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  383. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  384. for i,v in pairs(workspace:children()) do
  385. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  386. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  387. if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
  388. v.Humanoid.Health=v.Humanoid.Health-dmg
  389. v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
  390. end
  391. end
  392. end
  393. end
  394. Spawn(function()
  395. while true do
  396. wait()
  397. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  398. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  399. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  400. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  401. a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
  402. a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
  403. a.Transparency=a.Transparency+0.05
  404. a2.Transparency=a2.Transparency+0.05
  405. a3.Transparency=a3.Transparency+0.05
  406. end
  407. end)
  408. end
  409.  
  410. function tmdmg(tm,pa,dmg,rng)
  411. Spawn(function()
  412. for i=1,tm do wait()
  413. for i,v in pairs(workspace:children()) do
  414. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  415. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  416. if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pchar.Name then
  417. v.Humanoid.Health=v.Humanoid.Health-dmg
  418. so("201858024",v.Torso,false,math.random(7,11)/10,4)
  419. end
  420. end
  421. end
  422. end
  423. end
  424. end)
  425. end
  426.  
  427.  
  428. local function getAngles(cf)
  429. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  430. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  431. end
  432.  
  433. Lerp = {
  434. Number = function(C1,C2,inc)
  435. return C1 + (C2 - C1) * inc
  436. end;
  437. CFrame = function(a,b,m)
  438. return a:lerp(b,m) -- i srs dnt kno u could do this (tnx anti)
  439. end;
  440. }
  441.  
  442.  
  443.  
  444. local function genWeld(a,b)
  445. local w = Instance.new("Weld",a)
  446. w.Part0 = a
  447. w.Part1 = b
  448. return w
  449. end
  450.  
  451. local function newLerpTo(weld)
  452. return {
  453. Weld = weld;
  454. To = weld.C0;
  455. Cache = weld.C0;
  456. Speed = 0.2;
  457. }
  458. end
  459.  
  460. function SetAnimData(IF_DATA_IS_USED)
  461. Used = IF_DATA_IS_USED
  462. end
  463. function CheckAnimData(ANIM_TAB,DO_ANIM)
  464. anglespeed=Anims[ANIM_TAB][DO_ANIM].speed or 1
  465. if Used.Head == true then
  466. LerpTo.Neck.To = LerpTo.Neck.Cache * Anims[ANIM_TAB][DO_ANIM].Head
  467. end
  468. if Used.RightArm == true then
  469. LerpTo.RightArm.To = LerpTo.RightArm.Cache * Anims[ANIM_TAB][DO_ANIM].RightArm
  470. end
  471. if Used.LeftArm == true then
  472. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * Anims[ANIM_TAB][DO_ANIM].LeftArm
  473. end
  474. if Used.RightLeg == true then
  475. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * Anims[ANIM_TAB][DO_ANIM].RightLeg
  476. end
  477. if Used.LeftLeg == true then
  478. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * Anims[ANIM_TAB][DO_ANIM].LeftLeg
  479. end
  480. if Used.Torso == true then
  481. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * Anims[ANIM_TAB][DO_ANIM].Torso
  482. end
  483. if Used.Handle == true then
  484. LerpTo.hnd.To = LerpTo.hnd.Cache * Anims[ANIM_TAB][DO_ANIM].hnd
  485. end
  486. end
  487.  
  488. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  489. local magz = (Start - End).magnitude
  490. local curpos = Start
  491. local trz = {-Offset,Offset}
  492. Spawn(function()
  493. for i=1,Times do
  494. local li = Instance.new("Part",pchar)
  495. li.TopSurface =0
  496. li.BottomSurface = 0
  497. li.Anchored = true
  498. li.Transparency = Transparency or 0.4
  499. li.BrickColor = Color
  500. li.formFactor = "Custom"
  501. li.Material="Neon"
  502. li.CanCollide = false
  503. li.Size = Vector3.new(1,1,1)
  504. Instance.new('BlockMesh',li).Scale = Vector3.new(Thickness,Thickness,magz/Times)
  505. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  506. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  507. if Times == i then
  508. local magz2 = (curpos - End).magnitude
  509. li.Mesh.Scale = Vector3.new(Thickness,Thickness,magz2)
  510. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  511. else
  512. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  513. end
  514. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  515. Spawn(function() for i=1,10 do
  516. li.Transparency = li.Transparency+.1
  517. wait()
  518. end li:Destroy() end)
  519. wait()
  520. end
  521. end)
  522. end
  523.  
  524. function UpdateAnims()
  525. Anims = {
  526. ["Idle"] = {
  527. ["Stance"] = {
  528. speed=.25,
  529. Head = CFrame.Angles(sin(angle)*0.01,0,0),
  530. RightArm = CFrame.Angles(sin(angle)*0.1,0,0),
  531. LeftArm = CFrame.Angles(-sin(angle)*0.1,0,0),
  532. RightLeg = CFrame.Angles(sin(angle)*0.1,0,0),
  533. LeftLeg = CFrame.Angles(-sin(angle)*0.1,0,0),
  534. Torso = CFrame.Angles(0,0,0),
  535. hnd = CFrame.Angles(0,0,0)
  536. },
  537. ["Walk"] = {
  538. speed=2,
  539. Head = CFrame.Angles(0,0,sin(angle)*0.05),
  540. RightArm = CFrame.Angles(-sin(angle)*1,0,0),
  541. LeftArm = CFrame.Angles(sin(angle)*1,0,0),
  542. RightLeg = CFrame.Angles(sin(angle)*1,0,0),
  543. LeftLeg = CFrame.Angles(-sin(angle)*1,0,0),
  544. Torso = CFrame.Angles(0,0,0),
  545. hnd = CFrame.Angles(0,0,0)
  546. },
  547. ["Jump"] = {
  548. speed=2,
  549. Head = CFrame.Angles(0,0,0),
  550. RightArm = CFrame.Angles(rad(-20),0,0),
  551. LeftArm = CFrame.Angles(rad(-20),0,0),
  552. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  553. LeftLeg = CFrame.Angles(0,0,0),
  554. Torso = CFrame.Angles(rad(10),0,0),
  555. hnd = CFrame.Angles(0,0,0)
  556. }
  557. },
  558. ["Holding"] = {
  559. ["Stance"] = {
  560. speed=.25,
  561. Head = CFrame.Angles(sin(angle)*0.01,-rad(60)-abs(sin(angle))*0.05,0),
  562. RightArm = CFrame.Angles(rad(30)-sin(angle)*0.05,rad(80),0)*CFrame.new(-.5,-.2,.4),
  563. LeftArm = CFrame.Angles(sin(angle)*0.05,0,-rad(10)-abs(sin(angle))*0.05),
  564. RightLeg = CFrame.Angles(sin(angle)*0.05,0,0),
  565. LeftLeg = CFrame.Angles(-sin(angle)*0.05,0,0),
  566. Torso = CFrame.Angles(0,0,rad(60))*CFrame.new(0,-abs(sin(angle))*0.05,0),
  567. hnd = CFrame.Angles(0,0,0)
  568. },
  569. ["Walk"] = {
  570. speed=2.1,
  571. Head = CFrame.Angles(0,0,0),
  572. RightArm = CFrame.Angles(rad(50)-sin(angle)*0.05,rad(10),-rad(10)),
  573. LeftArm = CFrame.Angles(sin(angle)*1,0,0),
  574. RightLeg = CFrame.Angles(sin(angle)*1,0,0),
  575. LeftLeg = CFrame.Angles(-sin(angle)*1,0,0),
  576. Torso = CFrame.Angles(0,0,0),
  577. hnd = CFrame.Angles(-rad(60),0,0)*CFrame.new(0.5,0,0)
  578. },
  579. ["Jump"] = {
  580. speed=2,
  581. Head = CFrame.Angles(0,0,0),
  582. RightArm = CFrame.Angles(0,0,0),
  583. LeftArm = CFrame.Angles(rad(-20),0,0),
  584. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  585. LeftLeg = CFrame.Angles(0,0,0),
  586. Torso = CFrame.Angles(rad(10),0,0),
  587. hnd = CFrame.Angles(0,0,0)
  588. }
  589. }
  590. }
  591. end
  592.  
  593. local Neck = genWeld(pchar.Torso,pchar.Head)
  594. Neck.C0 = CFrame.new(0,1,0)
  595. Neck.C1 = CFrame.new(0,-0.5,0)
  596. local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
  597. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  598. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  599. local RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
  600. RightShoulder.C0 = CFrame.new(1,0.5,0)
  601. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  602. local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
  603. LeftHip.C0 = CFrame.new(-1,-1,0)
  604. LeftHip.C1 = CFrame.new(-0.5,1,0)
  605. local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
  606. RightHip.C0 = CFrame.new(1,-1,0)
  607. RightHip.C1 = CFrame.new(0.5,1,0)
  608. local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
  609. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  610. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  611. local mainp = mo.Handle
  612. local mwl = Weld(mainp,pchar['Right Arm'],0,-1,0,-pi/2,0,0,mo)
  613. local g1 = Weld(mo.Gauntlet.Arm,pchar['Right Arm'],0,0,0,0,0,0,mo)
  614. local g2 = Weld(mo.Gauntlet2.Arm,pchar['Left Arm'],0,0,0,0,0,0,mo)
  615. local blade = mo.blade
  616.  
  617.  
  618. LerpTo = {
  619. Neck = newLerpTo(Neck);
  620. LeftArm = newLerpTo(LeftShoulder);
  621. RightArm = newLerpTo(RightShoulder);
  622. LeftLeg = newLerpTo(LeftHip);
  623. RightLeg = newLerpTo(RightHip);
  624. RootJoint = newLerpTo(RootJoint);
  625. hnd = newLerpTo(mwl);
  626. }
  627.  
  628. mwl.Part1=pchar['Torso']
  629. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  630. mouse.KeyDown:connect(function(ke)
  631. if attack==true then return end
  632. key=ke:lower()
  633. if key=="f" and obf==false then
  634. eq = not eq
  635. if eq then
  636. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  637. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  638. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  639. wait(.01)
  640. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(120))
  641. mwl.Part1=pchar['Right Arm']
  642. wait(.2)
  643. Spawn(function()
  644. wait(.025)
  645. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(90))
  646. wait(.025)
  647. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(60))
  648. wait(.025)
  649. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(30))
  650. wait(.025)
  651. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,0)
  652. end)
  653. CurrentActiveAnim="Holding"
  654. LerpTo.hnd.To = LerpTo.hnd.Cache
  655. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  656. blade.Material="Neon"
  657. for i=1,5 do wait()
  658. blade.Transparency = .5-i/10
  659. end
  660. else
  661. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  662. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  663. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  664. wait(.01)
  665. LerpTo.hnd.To = LerpTo.hnd.Cache
  666. mwl.Part1=pchar['Torso']
  667. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  668. wait(.2)
  669. CurrentActiveAnim="Idle"
  670. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  671. for i=1,5 do wait()
  672. blade.Transparency = 0+i/10
  673. end
  674. blade.Material="Plastic"
  675. end
  676. elseif key=="c" and obf then
  677. attack=true
  678. for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  679. for _,v in pairs(mo.Gauntlet:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  680. for _,v in pairs(mo.Gauntlet2:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  681. for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v.Handle.Transparency=v.Handle.Transparency+1 end end
  682. pchar.Torso.Transparency=1
  683. pchar["Right Arm"].Transparency=1
  684. pchar["Left Arm"].Transparency=1
  685. pchar["Right Leg"].Transparency=1
  686. pchar["Left Leg"].Transparency=1
  687. pchar.Head.Transparency=1
  688. so('153092334',pchar,false,1)
  689. Lightning(pchar.Torso.Position+Vector3.new(0,.5,0),pob.Position,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  690. wait(.3)
  691. pchar.Torso.CFrame=pob.CFrame*CFrame.new(math.random(5,7),-3,math.random(5,7))
  692. for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  693. for _,v in pairs(mo.Gauntlet:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  694. for _,v in pairs(mo.Gauntlet2:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  695. for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v.Handle.Transparency=v.Handle.Transparency-1 end end
  696. pchar.Torso.Transparency=0
  697. pchar["Right Arm"].Transparency=0
  698. pchar["Left Arm"].Transparency=0
  699. pchar["Right Leg"].Transparency=0
  700. pchar["Left Leg"].Transparency=0
  701. pchar.Head.Transparency=0
  702. so('161006033',pchar,false,.9)
  703. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  704. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-2,0)
  705. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  706. Spawn(function() for i=1,12 do wait()m.Scale=m.Scale+Vector3.new(.2,0,.2) a.CFrame=a.CFrame*CFrame.Angles(0,rad(i+i*2),0) a.Transparency=a.Transparency+.04 end a:Destroy() end)
  707. for i=1, 10 do
  708. local p= Part(math.random(2,7)/4,math.random(2,7)/4,math.random(2,7)/4,"White",0,false,false,mo)
  709. p.CFrame=CFrame.new(torso.CFrame.x+math.random(-3,3),torso.CFrame.y-1,torso.CFrame.z+math.random(-3,3))*CFrame.Angles(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)*CFrame.Angles(pi/2,0,0)
  710. p.Velocity=Vector3.new(math.random(-20,20),math.random(5,30),math.random(-20,20))
  711. game.Debris:AddItem(p,2)
  712. Spawn(function()
  713. for i=1,10 do wait(.01)
  714. p.Transparency=p.Transparency+.1
  715. end
  716. end)
  717. end
  718. attack=false
  719. elseif key=="x" and obf then
  720. attack=true
  721. so('228343252',pchar,false,1)
  722. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  723. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(40))
  724. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(80),0,rad(40))
  725. LerpTo.Neck.To = LerpTo.Neck.Cache
  726. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache
  727. bg = Instance.new("BodyGyro",torso)
  728. bg.P = 20e+003
  729. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  730. bg.cframe = CFrame.new(torso.Position,Vector3.new(mouse.Hit.p.x,torso.CFrame.p.y,mouse.Hit.p.z))
  731. mov=true
  732. elseif key=="z" and obf then
  733. attack=true
  734. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  735. local bgs = Instance.new("BodyGyro",torso)
  736. bgs.P = 20e+003
  737. bgs.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  738. bgs.cframe = CFrame.new(torso.Position,Vector3.new(pob.CFrame.p.x,torso.CFrame.p.y,pob.CFrame.p.z))
  739. game.Debris:AddItem(bgs,.2)
  740. so('235097661',pchar,false,1)
  741. mgblock(pchar["Left Arm"],CFrame.new(0,-1.5,0),5,"Bright yellow","White",Vector3.new(1.5,1.5,1.5),.1)
  742. mgblock(pchar["Right Arm"],CFrame.new(0,-1.5,0),5,"Bright yellow","White",Vector3.new(1.5,1.5,1.5),.1)
  743. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,0)
  744. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(70),0,0)
  745. wait(.2)
  746. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(100),0,rad(30))
  747. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(100),0,-rad(30))
  748. wait(.2)
  749. obf = false
  750. so('231917744',pchar,false,1)
  751. explosion("Bright yellow","Really black",pob.CFrame,Vector3.new(20,20,20),25,30)
  752. Spawn(function()
  753. for i=1,3 do
  754. for i=1,3 do
  755. mgblock(pob,CFrame.new(math.random(-3,3),math.random(-3,3),math.random(-3,3)),2,'Bright yellow','Really black',Vector3.new(1,1,1),0)
  756. end
  757. local pa= Part(1,1,1,'Bright yellow',0,false,true,pchar)
  758. pa.Reflectance=1
  759. pa.CFrame=pob.CFrame*CFrame.Angles(math.random(),math.random(),math.random())
  760. local ms=Mesh(pa,'http://www.roblox.com/asset/?id=3270017',5,5,.02)
  761. Spawn(function()
  762. for i=1,20 do wait()
  763. pa.Reflectance=pa.Reflectance-.05
  764. pa.Transparency=pa.Transparency+.05
  765. ms.Scale=ms.Scale+Vector3.new(1,1,0)
  766. end
  767. pa:Destroy()
  768. end)
  769. end
  770. pob.Parent:Destroy()
  771. pob = nil
  772. end)
  773. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  774. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  775. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  776. wait(.01)
  777. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(120))
  778. mwl.Part1=pchar['Right Arm']
  779. wait(.2)
  780. Spawn(function()
  781. wait(.025)
  782. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(90))
  783. wait(.025)
  784. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(60))
  785. wait(.025)
  786. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(30))
  787. wait(.025)
  788. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,0)
  789. end)
  790. CurrentActiveAnim="Holding"
  791. LerpTo.hnd.To = LerpTo.hnd.Cache
  792. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  793. blade.Material="Neon"
  794. for i=1,5 do wait()
  795. blade.Transparency = .5-i/10
  796. end
  797. attack=false
  798. elseif key=="e" and eq and obf == false then
  799. attack=true
  800. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  801. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  802. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  803. wait(.01)
  804. LerpTo.hnd.To = LerpTo.hnd.Cache
  805. mwl.Part1=pchar['Torso']
  806. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  807. wait(.2)
  808. CurrentActiveAnim="Idle"
  809. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  810. Spawn(function()
  811. for i=1,5 do wait()
  812. blade.Transparency = 0+i/10
  813. end
  814. blade.Material="Plastic"
  815. end)
  816. so('233091183',pchar,false,.9)
  817. wait(.1)
  818. pchar.Humanoid.WalkSpeed=0
  819. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  820. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  821. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(30),0,rad(10))
  822. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(30),0,-rad(10))
  823. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  824. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  825. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  826. wait(.1)
  827. local obli = game.ReplicatedStorage.obli:Clone()
  828. pob=obli.mainp
  829. obli.Parent=pchar
  830. obli.mainp.Anchored=true
  831. obli.mainp.CFrame=pchar.Torso.CFrame*CFrame.new(0,-3,-4)
  832. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  833. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-2,-4)
  834. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  835. Spawn(function() for i=1,12 do wait()obli.mainp.CFrame=obli.mainp.CFrame+Vector3.new(0,0.5,0) m.Scale=m.Scale+Vector3.new(.2,0,.2) a.CFrame=a.CFrame*CFrame.Angles(0,rad(i+i*2),0) a.Transparency=a.Transparency+.04 end stfobl = pob.CFrame a:Destroy() obf=true end)
  836. for i,v in pairs(workspace:children()) do
  837. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  838. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  839. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 10 and v.Name ~= pchar.Name then
  840. v.Humanoid.PlatformStand=true
  841. v.Torso.Velocity=Vector3.new(math.random(-50,50),20,math.random(-50,50))
  842. v.Humanoid:TakeDamage(20)
  843. Spawn(function()wait(.5) v.Humanoid.PlatformStand=false end)
  844. end
  845. end
  846. end
  847. end
  848. wait(.1)
  849. pchar.Humanoid.WalkSpeed=16
  850. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  851. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,rad(10))
  852. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,-rad(10))
  853. wait(.4)
  854. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  855. attack=false
  856. end
  857. end)
  858.  
  859. mouse.KeyUp:connect(function(ke)
  860. key=ke:lower()
  861. if key=="x" then
  862. stfobl=CFrame.new(mouse.Hit.p)*CFrame.new(0,5,0)
  863. mov=false
  864. so('200633455',pchar,false,.7)
  865. bg:Destroy()
  866. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  867. attack=false
  868. end
  869. end)
  870.  
  871. mouse.Button1Down:connect(function()
  872. if not eq or attack == true or obf then return end
  873. smo=false
  874. if combo==-1 then
  875. attack = true
  876. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  877. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,rad(45))
  878. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(10))
  879. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
  880. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(20),0)
  881. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(0,0,-rad(60))
  882. wait(.3)
  883. tmdmg(10,blade,5,4)
  884. so('231917871',pchar,false,1)
  885. camshake(0.05,50,0.001,5)
  886. trail(blade,10,4)
  887. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(10))
  888. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  889. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(0))
  890. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(0),0)
  891. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,-rad(90))
  892. wait(.1)
  893. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(70))
  894. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(70),0)
  895. wait(.2)
  896. attack=false
  897. combo=0
  898. elseif combo==0 then
  899. attack=true
  900. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  901. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
  902. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,-rad(50))
  903. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(180))
  904. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  905. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(0,0,rad(70))
  906. wait(.3)
  907. tmdmg(10,blade,5,4)
  908. so('231917871',pchar,false,.9)
  909. camshake(0.05,50,0.001,5)
  910. trail(blade,10,4)
  911. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(50))
  912. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  913. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  914. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,rad(90))
  915. wait(.1)
  916. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  917. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  918. wait(.2)
  919. attack=false
  920. combo=1
  921. elseif combo==1 then
  922. attack=true
  923. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  924. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
  925. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(50))
  926. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(45))
  927. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(50),0,-rad(60))
  928. wait(.2)
  929. tmdmg(10,blade,5,4)
  930. so('231917871',pchar,false,.8)
  931. camshake(0.05,50,0.001,5)
  932. trail(blade,10,4)
  933. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,rad(50))
  934. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  935. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  936. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,-rad(90))
  937. wait(.1)
  938. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  939. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  940. wait(.2)
  941. attack=false
  942. combo=2
  943. elseif combo==2 then
  944. attack=true
  945. so('231917871',pchar,false,.7)
  946. so('228343249',pchar,false,.8)
  947. LerpTo.hnd.To = LerpTo.hnd.Cache
  948. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,-rad(90))* CFrame.new(0.5,-0.5,0)
  949. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  950. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  951. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(30))
  952. posfix(-rad(90))
  953. for i,v in pairs(workspace:children()) do
  954. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  955. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  956. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 27 and v.Name ~= pchar.Name then
  957. local goto=v.Torso.Position+Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  958. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  959. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  960. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  961. local bpos=Instance.new("BodyPosition",v.Torso)
  962. bpos.maxForce=Vector3.new(1e1000,1e1000,1e1000)
  963. bpos.position=pchar.Torso.Position
  964. game.Debris:AddItem(bpos,.3)
  965. Spawn(function()
  966. for i=1,2 do
  967. local oldpos=v.Torso.CFrame.p wait(.2)
  968. local newpos=v.Torso.CFrame.p
  969. local mag = (oldpos-newpos).magnitude
  970. local a= Part(.2,.2,.2,"Black",0.5,false,true,pchar)
  971. a.CFrame=CFrame.new(oldpos,newpos)*CFrame.new(0,0,-mag/2)*CFrame.Angles(0,pi/2,pi/2)
  972. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  973. Spawn(function() for i=1,5 do wait() m.Scale=m.Scale+Vector3.new(1,.2,1) a.Transparency=a.Transparency+.1 end a:Destroy() end)
  974. end
  975. end)
  976. end
  977. end
  978. end
  979. end
  980. wait(.3)
  981. combo=3
  982. attack=false
  983. elseif combo==3 then
  984. attack=true
  985. so('233856140',pchar,false,1.2)
  986. LerpTo.hnd.To = LerpTo.hnd.Cache * CFrame.Angles(rad(20),rad(40),0)
  987. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,rad(40))*CFrame.new(.2,-.3,0)
  988. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  989. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0)
  990. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,-rad(40))*CFrame.new(-.2,-.3,0)
  991. wait(.3)
  992. so('231917871',pchar,false,.6)
  993. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  994. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(20),0,-rad(40))* CFrame.new(-.2,-.25,0)
  995. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(20),0,rad(40))* CFrame.new(.2,-.25,0)
  996. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  997. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  998. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  999. wait(.15)
  1000. so('231917806',pchar,false,1.25)
  1001. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  1002. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-.2,0)
  1003. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  1004. Spawn(function() for i=1,12 do wait() m.Scale=m.Scale+Vector3.new(1,0,1) a.CFrame=a.CFrame*CFrame.Angles(0,rad(i+i*2),0) a.Transparency=a.Transparency+.04 end a:Destroy() end)
  1005. for i,v in pairs(workspace:children()) do
  1006. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1007. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1008. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 27 and v.Name ~= pchar.Name then
  1009. v.Humanoid.PlatformStand=true
  1010. v.Torso.Velocity=Vector3.new(math.random(-100,100),20,math.random(-100,100))
  1011. v.Humanoid:TakeDamage(20)
  1012. Spawn(function()wait(.5) v.Humanoid.PlatformStand=false end)
  1013. end
  1014. end
  1015. end
  1016. end
  1017. wait(.2)
  1018. combo=4
  1019. attack=false
  1020. end
  1021. Spawn(function()
  1022. wait(0.6)
  1023. if attack==false then
  1024. attack=true
  1025. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  1026. smo=true
  1027. wait(.2)
  1028. attack=false
  1029. combo=-1
  1030. end
  1031. end)
  1032. end)
  1033. ftimer=0
  1034. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=false})
  1035. CurrentActiveAnim="Idle"
  1036. game:service'RunService'.Stepped:connect(function()wait()
  1037. ftimer=ftimer+.1
  1038. Spawn(function()
  1039. if obf and ftimer > 1 then
  1040. mgblock(pob,CFrame.new(0,-3,0),2,"White","White",Vector3.new(0,0,0),.1)
  1041. ftimer=0
  1042. if mov then
  1043. so('200633455',pchar,false,1.2)
  1044. Lightning(pchar.Torso.Position+Vector3.new(0,.5,0),pob.Position,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  1045. end
  1046. end
  1047. end)
  1048. if mov then
  1049. bg.cframe = CFrame.new(torso.Position,Vector3.new(mouse.Hit.p.x,torso.CFrame.p.y,mouse.Hit.p.z))
  1050. end
  1051. col = col + 1.1
  1052. if obf then
  1053. if mov then
  1054. pob.CFrame=clerp(pob.CFrame,CFrame.new(mouse.Hit.p)*CFrame.Angles(math.rad(math.sin((tick())*2)*10),math.rad(col),0)*CFrame.new(0,5+math.sin((tick())*1),0),.1)
  1055. else
  1056. pob.CFrame=clerp(pob.CFrame,stfobl*CFrame.Angles(math.rad(math.sin((tick())*2)*10),math.rad(col),0)*CFrame.new(0,1+math.sin((tick())*1),0),.1)
  1057. end
  1058. end
  1059. UpdateAnims()
  1060. for _,v in pairs(LerpTo) do
  1061. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
  1062. end
  1063. angle = (angle % 100) + anglespeed/10
  1064. if Vector3.new(0, torso.Velocity.y, 0).magnitude > 4 then
  1065. CheckAnimData(CurrentActiveAnim,"Jump")
  1066. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  1067. CheckAnimData(CurrentActiveAnim,"Stance")
  1068. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  1069. CheckAnimData(CurrentActiveAnim,"Walk")
  1070. end
  1071. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement