Advertisement
HoneyBadger69

Untitled

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