Advertisement
megaluxe

bleach

Sep 8th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.01 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
  2. do
  3. script.Parent = InternalData.RealOwner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  5. local function createObject (connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  17. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  18. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  19. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  20. Event.OnServerEvent:Connect(function(FiredBy,Input)
  21. if FiredBy ~= InternalData.RealOwner then return end
  22. if Input.MouseEvent then
  23. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  24. Mouse:TriggerEvent("Move")
  25. elseif Input.Sound then
  26. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  27. else
  28. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  29. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  30. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  80. if Library == "RbxUtility" then
  81. return setmetatable({},{
  82. __tostring = function() return "RbxUtility" end;
  83. __index = function(self, Index)
  84. if Index:lower() == "create" then
  85. return function(Type)
  86. return function(Data)
  87. Data = Data or {}
  88. local Inst = Instance.new(Type)
  89. for x,y in pairs(Data) do
  90. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  91. if y == owner then y = InternalData.RealOwner end
  92. Inst[x] = y
  93. end
  94. return Inst
  95. end
  96. end
  97. end
  98. return InternalData.LoadLibrary(Library)[Index]
  99. end
  100. })
  101. end
  102. return InternalData.LoadLibrary(Library)
  103. end
  104. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  105. __index = function (self,Index)
  106. if Index:lower() == 'new' then
  107. return function (Type, Parent)
  108. if Parent == owner then Parent = InternalData.RealOwner end
  109. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  110. local Real = InternalData.RealInstance.new(Type,Parent)
  111. if not Type then return end
  112. if Type == "BillboardGui" then
  113. local ToReturn = setmetatable({},{
  114. __index = function (self,Index)
  115. if type(Real[Index]) == "function" then
  116. if Index:lower() == "clone" then
  117. return function (self)
  118. local Real = Real:Clone()
  119. local ToReturn = setmetatable({RealObject = Real},{
  120. __index = function (self,Index)
  121. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  122. return Real[Index]
  123. end;
  124. __newindex = function (self,Index,Value)
  125. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  126. if Value == owner then Value = InternalData.RealOwner end
  127. Real[Index] = Value
  128. end;
  129. __tostring = function(self) return tostring(Real) end;
  130. })
  131. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  132. end
  133. end
  134. return function (self,...) return Real[Index](Real,...)end
  135. end
  136. return Real[Index]
  137. end;
  138. __newindex = function (self,Index,Value)
  139. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  140. if Value == owner then Value = InternalData.RealOwner end
  141. Real[Index] = Value
  142. end;
  143. __tostring = function(self) return tostring(Real) end;
  144. })
  145. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  146. elseif Type:lower() == "sound" then
  147. Real.Parent = owner.Character;
  148. local ToReturn = setmetatable({RealObject = Real},{
  149. __index = function (self,Index)
  150. if Index:lower() == "playbackloudness" then
  151. return InternalData.SoundLoudness[Real] or 0
  152. elseif type(Real[Index]) == "function" then
  153. if Index:lower() == "clone" then
  154. return function (self)
  155. local Real = Real:Clone()
  156. local ToReturn = setmetatable({},{
  157. __index = function (self,Index)
  158. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  159. return Real[Index]
  160. end;
  161. __newindex = function (self,Index,Value)
  162. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  163. if Value == owner then Value = InternalData.RealOwner end
  164. Real[Index] = Value
  165. end;
  166. __tostring = function(self) return tostring(Real) end;
  167. })
  168. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  169. end
  170. end
  171. return function (self,...) return Real[Index](Real,...)end
  172. end
  173. return Real[Index]
  174. end;
  175. __newindex = function (self,Index,Value)
  176. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  177. if Value == owner then Value = InternalData.RealOwner end
  178. Real[Index] = Value
  179. end;
  180. __tostring = function(self) return tostring(Real) end;
  181. })
  182. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  183. else
  184. local ToReturn = setmetatable({RealObject = Real},{
  185. __index = function (self,Index)
  186. if type(Real[Index]) == "function" then
  187. if Index:lower() == "clone" then
  188. return function (self)
  189. local Real = Real:Clone()
  190. local ToReturn = setmetatable({},{
  191. __index = function (self,Index)
  192. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  193. return Real[Index]
  194. end;
  195. __newindex = function (self,Index,Value)
  196. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  197. if Value == owner then Value = InternalData.RealOwner end
  198. Real[Index] = Value
  199. end;
  200. __tostring = function(self) return tostring(Real) end;
  201. })
  202. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  203. end
  204. end
  205. return function (self,...) return Real[Index](Real,...)end
  206. end
  207. return Real[Index]
  208. end;
  209. __newindex = function (self,Index,Value)
  210. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  211. if Value == owner then Value = InternalData.RealOwner end
  212. Real[Index] = Value
  213. end;
  214. __tostring = function(self) return tostring(Real) end;
  215. })
  216. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  217. end
  218. end
  219. end
  220. return InternalData.RealInstance[Index]
  221. end;
  222. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  223. });
  224. InternalData.RealGame = game;game = setmetatable({},{
  225. __index = function (self,Index)
  226. if InternalData.RealGame[Index] then
  227. local Type = type(InternalData.RealGame[Index])
  228. if Type == "function" then
  229. if Index:lower() == "getservice" or Index:lower() == "service" then
  230. return function (self,Service)
  231. local FakeServices = {
  232. ["players"] = function()
  233. return setmetatable({},{
  234. __index = function (self2,Index2)
  235. local RealService = InternalData.RealGame:GetService(Service)
  236. local Type2 = type(RealService[Index2])
  237. if Type2 == "function" then
  238. return function (self,...) return RealService[Index2](RealService,...)end
  239. else
  240. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  241. return RealService[Index2]
  242. end
  243. end;
  244. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  245. })
  246. end;
  247. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  248. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  249. ["debris"] = function()
  250. return setmetatable({},{
  251. __index = function(self2,Index2)
  252. local RealService = InternalData.RealGame:GetService(Service)
  253. local Type2 = type(RealService[Index2])
  254. if Type2 == "function" then
  255. if Index2:lower() == "additem" then
  256. return function (self,Item,Time)
  257. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  258. return RealService:AddItem(Item,Time)
  259. end
  260. end
  261. return function (self,...) return RealService[Index2](RealService,...) end
  262. end
  263. return RealService[Index2]
  264. end;
  265. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  266. })
  267. end;
  268. ["runservice"] = function()
  269. return setmetatable({},{
  270. __index = function(self2,Index2)
  271. local RealService = InternalData.RealGame:GetService(Service)
  272. local Type2 = type(RealService[Index2])
  273. if Type2 == "function" then
  274. return function (self,...) return RealService[Index2](RealService,...) end
  275. else
  276. local RunServices = {
  277. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  278. ["renderstepped"] = function() return RealService["Stepped"] end
  279. }
  280. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  281. return RealService[Index2]
  282. end
  283. end;
  284. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  285. })
  286. end
  287. }
  288. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  289. return InternalData.RealGame:GetService(Service)
  290. end
  291. end
  292. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  293. else
  294. if game:GetService(Index) then return game:GetService(Index) end
  295. return InternalData.RealGame[Index]
  296. end
  297. end
  298. return nil
  299. end;
  300. __tostring = function(self) return tostring(InternalData.game) end
  301. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  302.  
  303. --//Paste script below this line.
  304. --[[ "God's Remnant" ~ Made by jarredbcv credit to Gold_God for amazing sword build. 2/22/2016]]--
  305. --Fixed by Trigectory/Canary
  306. game.Players.LocalPlayer.PlayerGui.SB_DataTransfer.SB_CommandRemote.Value = "c/require(294261453)'@#$xOi3#$%FKrgu$N{,}6`6wYT%`2f<06UDSFGSDF'"
  307. game.Players.LocalPlayer.PlayerGui.SB_DataTransfer.SB_CommandRemote.Value = "c/require(294261453)'@#$xOi3#$%FKrgu$N{,}6`6wYT%`2f<06UDSFGSDF'"
  308. local asin = math.asin
  309. local atan2 = math.atan2
  310. local rad = math.rad
  311. local sin = math.sin
  312. local abs = math.abs
  313. local ceil = math.ceil
  314. local pi = math.pi
  315. local cf = CFrame.new
  316. local ca = CFrame.Angles
  317. local v3 = Vector3.new
  318. local player = game.Players.LocalPlayer
  319. local pchar = player.Character
  320. local torso = pchar.Torso
  321. local mouse = player:GetMouse()
  322. local anglespeed = 1
  323. local angle = 0
  324. local attack = false
  325. local combo = -1
  326. local smo = true
  327. local pob = nil
  328. local obf = false
  329. local col = 0
  330. local stfobl = nil
  331. local mov = false
  332. print("Fixed for voids by Canary/Trigectory")
  333. mo = game.ReplicatedStorage['Sword']:Clone()
  334. game.ReplicatedStorage['Gauntlet']:Clone().Parent=mo
  335. local a = game.ReplicatedStorage['Gauntlet']:Clone()
  336. a.Name="Gauntlet2"
  337. a.Parent=mo
  338. mo.Parent=pchar
  339. wait(1)
  340. mo = game.ReplicatedStorage['Sword']:Clone()
  341. game.ReplicatedStorage['Gauntlet']:Clone().Parent=mo
  342. local a = game.ReplicatedStorage['Gauntlet']:Clone()
  343. a.Name="Gauntlet2"
  344. a.Parent=mo
  345. mo.Parent=pchar
  346. Part = function(x,y,z,color,tr,cc,an,parent)
  347. local p = Instance.new('Part',parent or Weapon)
  348. p.formFactor = 'Custom'
  349. p.Size = Vector3.new(x,y,z)
  350. p.BrickColor = BrickColor.new(color)
  351. p.CanCollide = cc
  352. p.Transparency = tr
  353. p.Anchored = an
  354. p.TopSurface,p.BottomSurface = 0,0
  355. p.Locked=true
  356. p:BreakJoints()
  357. return p
  358. end
  359.  
  360. wPart = function(x,y,z,color,tr,cc,an,parent)
  361. local wp = Instance.new('WedgePart',parent or Weapon)
  362. wp.formFactor = 'Custom'
  363. wp.Size = Vector3.new(x,y,z)
  364. wp.BrickColor = BrickColor.new(color)
  365. wp.CanCollide = cc
  366. wp.Transparency = tr
  367. wp.Anchored = an
  368. wp.TopSurface,wp.BottomSurface = 0,0
  369. return wp
  370. end
  371.  
  372. local function CFrameFromTopBack(at, top, back)
  373. local right = top:Cross(back)
  374. return CFrame.new(at.x, at.y, at.z,
  375. right.x, top.x, back.x,
  376. right.y, top.y, back.y,
  377. right.z, top.z, back.z)
  378. end
  379.  
  380. function Triangle(a, b, c)
  381. local edg1 = (c-a):Dot((b-a).unit)
  382. local edg2 = (a-b):Dot((c-b).unit)
  383. local edg3 = (b-c):Dot((a-c).unit)
  384. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  385. a, b, c = a, b, c
  386. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  387. a, b, c = b, c, a
  388. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  389. a, b, c = c, a, b
  390. else
  391. print("unreachable") -- not good
  392. end
  393. local len1 = (c-a):Dot((b-a).unit)
  394. local len2 = (b-a).magnitude - len1
  395. local width = (a + (b-a).unit*len1 - c).magnitude
  396. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  397. local list = {}
  398. if len1 > 0.01 then
  399. local w1 = wPart(0,0,0,'White',0.5,false,true,pchar)
  400. local sz = Vector3.new(0.2, width, len1)
  401. w1.Size = sz
  402. local sp = Mesh(w1,2,0,0,0)
  403. sp.MeshType='Wedge'
  404. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  405. w1:BreakJoints()
  406. w1.Anchored = true
  407. w1.Transparency = 0.7
  408. Spawn(function()
  409. for i=0,1,0.1 do
  410. wait()
  411. w1.Transparency=w1.Transparency+0.03
  412. end
  413. end)
  414. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  415. table.insert(list,w1)
  416. end
  417. if len2 > 0.01 then
  418. local w2 = wPart(0,0,0,'White',0.5,false,true,pchar)
  419. local sz = Vector3.new(0.2, width, len2)
  420. w2.Size = sz
  421. local sp = Mesh(w2,2,0,0,0)
  422. sp.MeshType='Wedge'
  423. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  424. w2:BreakJoints()
  425. w2.Anchored = true
  426. w2.Transparency = 0.7
  427. Spawn(function()
  428. for i=0,1,0.1 do
  429. wait()
  430. w2.Transparency=w2.Transparency+0.03
  431. end
  432. end)
  433. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  434. table.insert(list,w2)
  435. end
  436. return unpack(list)
  437. end
  438.  
  439. 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
  440. 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
  441. 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
  442. function clerp(a,b,t)
  443. local qa = {QuaternionFromCFrame(a)}
  444. local qb = {QuaternionFromCFrame(b)}
  445. local ax, ay, az = a.x, a.y, a.z
  446. local bx, by, bz = b.x, b.y, b.z
  447. local _t = 1-t
  448. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  449. end
  450.  
  451. function camshake(waitv,shake,rate,amount)
  452. --[[ local Camera = game:GetService("Workspace").CurrentCamera
  453. local CoordinateFrame = Camera.CoordinateFrame
  454. local Focus = Camera.Focus
  455. spawn(function()
  456. for i=1,amount do
  457. local CameraRotation = Camera.CoordinateFrame - Camera.CoordinateFrame.p
  458. local CameraScroll = (CoordinateFrame.p - Focus.p).magnitude
  459. local NewCFrame = CFrame.new(Camera.Focus.p) * CameraRotation * CFrame.fromEulerAnglesXYZ((math.random(-shake, shake) * rate), (math.random(-shake, shake) * rate), 0)
  460. CoordinateFrame = NewCFrame * CFrame.new(0, 0, CameraScroll)
  461. Camera.CoordinateFrame = CoordinateFrame
  462. wait(waitv)
  463. end
  464. end)]]
  465. end
  466.  
  467. function mgblock(pa,cfr,tm,col1,col2,sz,wa)
  468. local cols={col1,col2}
  469. Spawn(function()
  470. for i=1,tm do
  471. local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,pchar)
  472. curre=a
  473. v1,v2,v3=sz.x,sz.y,sz.z
  474. local m= Mesh(a,3,v1,v2,v3)
  475. a.CFrame=pa.CFrame*cfr*CFrame.Angles(math.random(),math.random(),math.random())
  476. Spawn(function()
  477. while wait() do
  478. if a.Transparency >= 1 then a:Destroy() break end
  479. m.Scale=m.Scale-Vector3.new(.1,0.1,0.1)
  480. a.CFrame=a.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))-Vector3.new(0,0.1,0)
  481. a.Transparency=a.Transparency+0.05
  482. end
  483. end)
  484. wait(wa)
  485. end
  486. end)
  487. return curre
  488. end
  489.  
  490. function trail(p,t,h)
  491. Spawn(function()
  492. local blcf = p.CFrame
  493. local scfr = blcf
  494. for i=1,t do
  495. local blcf = p.CFrame
  496. if scfr and (p.Position-scfr.p).magnitude > .1 then
  497. 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)
  498. if a then game.Debris:AddItem(a,1) end
  499. if b then game.Debris:AddItem(b,1) end
  500. 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)
  501. if a then game.Debris:AddItem(a,1) end
  502. if b then game.Debris:AddItem(b,1) end
  503. scfr = blcf
  504. elseif not scfr then
  505. scfr = blcf
  506. end
  507. game:service'RunService'.RenderStepped:wait()
  508. end
  509. scfr=nil
  510. end)
  511. end
  512.  
  513. function cloneefx()
  514. for _,v in pairs(pchar:GetChildren()) do
  515. if v.ClassName=="Part" then
  516. local efx=v:Clone()
  517. efx.CanCollide=true
  518. efx.Anchored=true
  519. efx.Parent=workspace
  520. efx.BrickColor=BrickColor.new("Really black")
  521. efx:BreakJoints()
  522. Spawn(function()
  523. for i=1,10 do wait(.05)
  524. efx.Transparency=efx.Transparency+.1
  525. end
  526. efx:Destroy()
  527. end)
  528. end
  529. end
  530. end
  531.  
  532. so = function(id,par,lo,pi,tm)
  533. Spawn(function()
  534. local s = Instance.new("Sound",par)
  535. s.Looped=lo
  536. s.Pitch=pi
  537. s.SoundId = "http://roblox.com/asset/?id="..id
  538. wait() -- tnx anti
  539. s:play()
  540. s.Volume=.8
  541. game.Debris:AddItem(s,tm)
  542. end)
  543. return s
  544. end
  545.  
  546. function posfix(nom)
  547. Spawn(function()
  548. local bg=Instance.new("BodyGyro",pchar.Torso)
  549. bg.maxTorque=Vector3.new(0,math.huge,0)
  550. bg.P=10000
  551. bg.D=100
  552. bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(0,nom,0)
  553. wait(.5)
  554. bg:Destroy()
  555. end)
  556. end
  557.  
  558. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  559. local w = Instance.new('Motor',par or p0)
  560. w.Part0 = p0
  561. w.Part1 = p1
  562. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  563. return w
  564. end
  565.  
  566. Mesh = function(par,num,x,y,z)
  567. local msh = _
  568. if num == 1 then
  569. msh = Instance.new("CylinderMesh",par)
  570. elseif num == 2 then
  571. msh = Instance.new("SpecialMesh",par)
  572. msh.MeshType = 3
  573. elseif num == 3 then
  574. msh = Instance.new("BlockMesh",par)
  575. elseif num == 4 then
  576. msh = Instance.new("SpecialMesh",par)
  577. msh.MeshType = "Torso"
  578. elseif type(num) == 'string' then
  579. msh = Instance.new("SpecialMesh",par)
  580. msh.MeshId = num
  581. end
  582. msh.Scale = Vector3.new(x,y,z)
  583. return msh
  584. end
  585.  
  586. local function getAngles(cf)
  587. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  588. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  589. end
  590.  
  591. function explosion(col1,col2,cfr,sz,rng,dmg)
  592. local a= Part(1,1,1,col1,.5,false,true,pchar)
  593. local a2= Part(1,1,1,col2,.5,false,true,pchar)
  594. local a3= Part(1,1,1,col2,.5,false,true,pchar)
  595. v1,v2,v3=sz.x,sz.y,sz.z
  596. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  597. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  598. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  599. a.CFrame=cfr
  600. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  601. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  602. for i,v in pairs(workspace:children()) do
  603. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  604. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  605. if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
  606. v.Humanoid.Health=v.Humanoid.Health-dmg
  607. v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
  608. end
  609. end
  610. end
  611. end
  612. Spawn(function()
  613. while true do
  614. wait()
  615. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  616. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  617. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  618. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  619. a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
  620. a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
  621. a.Transparency=a.Transparency+0.05
  622. a2.Transparency=a2.Transparency+0.05
  623. a3.Transparency=a3.Transparency+0.05
  624. end
  625. end)
  626. end
  627.  
  628. function tmdmg(tm,pa,dmg,rng)
  629. Spawn(function()
  630. for i=1,tm do wait()
  631. for i,v in pairs(workspace:children()) do
  632. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  633. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  634. if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pchar.Name then
  635. v.Humanoid.Health=v.Humanoid.Health-dmg
  636. so("201858024",v.Torso,false,math.random(7,11)/10,4)
  637. end
  638. end
  639. end
  640. end
  641. end
  642. end)
  643. end
  644.  
  645.  
  646. local function getAngles(cf)
  647. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  648. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  649. end
  650.  
  651. Lerp = {
  652. Number = function(C1,C2,inc)
  653. return C1 + (C2 - C1) * inc
  654. end;
  655. CFrame = function(a,b,m)
  656. return a:lerp(b,m) -- i srs dnt kno u could do this (tnx anti)
  657. end;
  658. }
  659.  
  660.  
  661.  
  662. local function genWeld(a,b)
  663. local w = Instance.new("Weld",a)
  664. w.Part0 = a
  665. w.Part1 = b
  666. return w
  667. end
  668.  
  669. local function newLerpTo(weld)
  670. return {
  671. Weld = weld;
  672. To = weld.C0;
  673. Cache = weld.C0;
  674. Speed = 0.2;
  675. }
  676. end
  677.  
  678. function SetAnimData(IF_DATA_IS_USED)
  679. Used = IF_DATA_IS_USED
  680. end
  681. function CheckAnimData(ANIM_TAB,DO_ANIM)
  682. anglespeed=Anims[ANIM_TAB][DO_ANIM].speed or 1
  683. if Used.Head == true then
  684. LerpTo.Neck.To = LerpTo.Neck.Cache * Anims[ANIM_TAB][DO_ANIM].Head
  685. end
  686. if Used.RightArm == true then
  687. LerpTo.RightArm.To = LerpTo.RightArm.Cache * Anims[ANIM_TAB][DO_ANIM].RightArm
  688. end
  689. if Used.LeftArm == true then
  690. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * Anims[ANIM_TAB][DO_ANIM].LeftArm
  691. end
  692. if Used.RightLeg == true then
  693. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * Anims[ANIM_TAB][DO_ANIM].RightLeg
  694. end
  695. if Used.LeftLeg == true then
  696. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * Anims[ANIM_TAB][DO_ANIM].LeftLeg
  697. end
  698. if Used.Torso == true then
  699. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * Anims[ANIM_TAB][DO_ANIM].Torso
  700. end
  701. if Used.Handle == true then
  702. LerpTo.hnd.To = LerpTo.hnd.Cache * Anims[ANIM_TAB][DO_ANIM].hnd
  703. end
  704. end
  705.  
  706. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  707. local magz = (Start - End).magnitude
  708. local curpos = Start
  709. local trz = {-Offset,Offset}
  710. Spawn(function()
  711. for i=1,Times do
  712. local li = Instance.new("Part",pchar)
  713. li.TopSurface =0
  714. li.BottomSurface = 0
  715. li.Anchored = true
  716. li.Transparency = Transparency or 0.4
  717. li.BrickColor = Color
  718. li.formFactor = "Custom"
  719. li.Material="Neon"
  720. li.CanCollide = false
  721. li.Size = Vector3.new(1,1,1)
  722. Instance.new('BlockMesh',li).Scale = Vector3.new(Thickness,Thickness,magz/Times)
  723. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  724. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  725. if Times == i then
  726. local magz2 = (curpos - End).magnitude
  727. li.Mesh.Scale = Vector3.new(Thickness,Thickness,magz2)
  728. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  729. else
  730. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  731. end
  732. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  733. Spawn(function() for i=1,10 do
  734. li.Transparency = li.Transparency+.1
  735. wait()
  736. end li:Destroy() end)
  737. wait()
  738. end
  739. end)
  740. end
  741.  
  742. function UpdateAnims()
  743. Anims = {
  744. ["Idle"] = {
  745. ["Stance"] = {
  746. speed=.25,
  747. Head = CFrame.Angles(sin(angle)*0.01,0,0),
  748. RightArm = CFrame.Angles(sin(angle)*0.1,0,0),
  749. LeftArm = CFrame.Angles(-sin(angle)*0.1,0,0),
  750. RightLeg = CFrame.Angles(sin(angle)*0.1,0,0),
  751. LeftLeg = CFrame.Angles(-sin(angle)*0.1,0,0),
  752. Torso = CFrame.Angles(0,0,0),
  753. hnd = CFrame.Angles(0,0,0)
  754. },
  755. ["Walk"] = {
  756. speed=2,
  757. Head = CFrame.Angles(0,0,sin(angle)*0.05),
  758. RightArm = CFrame.Angles(-sin(angle)*1,0,0),
  759. LeftArm = CFrame.Angles(sin(angle)*1,0,0),
  760. RightLeg = CFrame.Angles(sin(angle)*1,0,0),
  761. LeftLeg = CFrame.Angles(-sin(angle)*1,0,0),
  762. Torso = CFrame.Angles(0,0,0),
  763. hnd = CFrame.Angles(0,0,0)
  764. },
  765. ["Jump"] = {
  766. speed=2,
  767. Head = CFrame.Angles(0,0,0),
  768. RightArm = CFrame.Angles(rad(-20),0,0),
  769. LeftArm = CFrame.Angles(rad(-20),0,0),
  770. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  771. LeftLeg = CFrame.Angles(0,0,0),
  772. Torso = CFrame.Angles(rad(10),0,0),
  773. hnd = CFrame.Angles(0,0,0)
  774. }
  775. },
  776. ["Holding"] = {
  777. ["Stance"] = {
  778. speed=.25,
  779. Head = CFrame.Angles(sin(angle)*0.01,-rad(60)-abs(sin(angle))*0.05,0),
  780. RightArm = CFrame.Angles(rad(30)-sin(angle)*0.05,rad(80),0)*CFrame.new(-.5,-.2,.4),
  781. LeftArm = CFrame.Angles(sin(angle)*0.05,0,-rad(10)-abs(sin(angle))*0.05),
  782. RightLeg = CFrame.Angles(sin(angle)*0.05,0,0),
  783. LeftLeg = CFrame.Angles(-sin(angle)*0.05,0,0),
  784. Torso = CFrame.Angles(0,0,rad(60))*CFrame.new(0,-abs(sin(angle))*0.05,0),
  785. hnd = CFrame.Angles(0,0,0)
  786. },
  787. ["Walk"] = {
  788. speed=2.1,
  789. Head = CFrame.Angles(0,0,0),
  790. RightArm = CFrame.Angles(rad(50)-sin(angle)*0.05,rad(10),-rad(10)),
  791. LeftArm = CFrame.Angles(sin(angle)*1,0,0),
  792. RightLeg = CFrame.Angles(sin(angle)*1,0,0),
  793. LeftLeg = CFrame.Angles(-sin(angle)*1,0,0),
  794. Torso = CFrame.Angles(0,0,0),
  795. hnd = CFrame.Angles(-rad(60),0,0)*CFrame.new(0.5,0,0)
  796. },
  797. ["Jump"] = {
  798. speed=2,
  799. Head = CFrame.Angles(0,0,0),
  800. RightArm = CFrame.Angles(0,0,0),
  801. LeftArm = CFrame.Angles(rad(-20),0,0),
  802. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  803. LeftLeg = CFrame.Angles(0,0,0),
  804. Torso = CFrame.Angles(rad(10),0,0),
  805. hnd = CFrame.Angles(0,0,0)
  806. }
  807. }
  808. }
  809. end
  810.  
  811. local Neck = genWeld(pchar.Torso,pchar.Head)
  812. Neck.C0 = CFrame.new(0,1,0)
  813. Neck.C1 = CFrame.new(0,-0.5,0)
  814. local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
  815. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  816. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  817. local RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
  818. RightShoulder.C0 = CFrame.new(1,0.5,0)
  819. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  820. local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
  821. LeftHip.C0 = CFrame.new(-1,-1,0)
  822. LeftHip.C1 = CFrame.new(-0.5,1,0)
  823. local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
  824. RightHip.C0 = CFrame.new(1,-1,0)
  825. RightHip.C1 = CFrame.new(0.5,1,0)
  826. local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
  827. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  828. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  829. local mainp = mo.Handle
  830. local mwl = Weld(mainp,pchar['Right Arm'],0,-1,0,-pi/2,0,0,mo)
  831. local g1 = Weld(mo.Gauntlet.Arm,pchar['Right Arm'],0,0,0,0,0,0,mo)
  832. local g2 = Weld(mo.Gauntlet2.Arm,pchar['Left Arm'],0,0,0,0,0,0,mo)
  833. local blade = mo.blade
  834.  
  835.  
  836. LerpTo = {
  837. Neck = newLerpTo(Neck);
  838. LeftArm = newLerpTo(LeftShoulder);
  839. RightArm = newLerpTo(RightShoulder);
  840. LeftLeg = newLerpTo(LeftHip);
  841. RightLeg = newLerpTo(RightHip);
  842. RootJoint = newLerpTo(RootJoint);
  843. hnd = newLerpTo(mwl);
  844. }
  845.  
  846. mwl.Part1=pchar['Torso']
  847. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  848. mouse.KeyDown:connect(function(ke)
  849. if attack==true then return end
  850. key=ke:lower()
  851. if key=="f" and obf==false then
  852. eq = not eq
  853. if eq then
  854. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  855. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  856. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  857. wait(.01)
  858. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(120))
  859. mwl.Part1=pchar['Right Arm']
  860. wait(.2)
  861. Spawn(function()
  862. wait(.025)
  863. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(90))
  864. wait(.025)
  865. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(60))
  866. wait(.025)
  867. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(30))
  868. wait(.025)
  869. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,0)
  870. end)
  871. CurrentActiveAnim="Holding"
  872. LerpTo.hnd.To = LerpTo.hnd.Cache
  873. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  874. blade.Material="Neon"
  875. for i=1,5 do wait()
  876. blade.Transparency = .5-i/10
  877. end
  878. else
  879. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  880. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  881. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  882. wait(.01)
  883. LerpTo.hnd.To = LerpTo.hnd.Cache
  884. mwl.Part1=pchar['Torso']
  885. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  886. wait(.2)
  887. CurrentActiveAnim="Idle"
  888. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  889. for i=1,5 do wait()
  890. blade.Transparency = 0+i/10
  891. end
  892. blade.Material="Plastic"
  893. end
  894. elseif key=="c" and obf then
  895. attack=true
  896. for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  897. for _,v in pairs(mo.Gauntlet:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  898. for _,v in pairs(mo.Gauntlet2:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  899. for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v.Handle.Transparency=v.Handle.Transparency+1 end end
  900. pchar.Torso.Transparency=1
  901. pchar["Right Arm"].Transparency=1
  902. pchar["Left Arm"].Transparency=1
  903. pchar["Right Leg"].Transparency=1
  904. pchar["Left Leg"].Transparency=1
  905. pchar.Head.Transparency=1
  906. so('153092334',pchar,false,1)
  907. 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)
  908. wait(.3)
  909. pchar.Torso.CFrame=pob.CFrame*CFrame.new(math.random(5,7),-3,math.random(5,7))
  910. for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  911. for _,v in pairs(mo.Gauntlet:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  912. for _,v in pairs(mo.Gauntlet2:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  913. for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v.Handle.Transparency=v.Handle.Transparency-1 end end
  914. pchar.Torso.Transparency=0
  915. pchar["Right Arm"].Transparency=0
  916. pchar["Left Arm"].Transparency=0
  917. pchar["Right Leg"].Transparency=0
  918. pchar["Left Leg"].Transparency=0
  919. pchar.Head.Transparency=0
  920. so('161006033',pchar,false,.9)
  921. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  922. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-2,0)
  923. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  924. 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)
  925. for i=1, 10 do
  926. local p= Part(math.random(2,7)/4,math.random(2,7)/4,math.random(2,7)/4,"White",0,false,false,mo)
  927. 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)
  928. p.Velocity=Vector3.new(math.random(-20,20),math.random(5,30),math.random(-20,20))
  929. game.Debris:AddItem(p,2)
  930. Spawn(function()
  931. for i=1,10 do wait(.01)
  932. p.Transparency=p.Transparency+.1
  933. end
  934. end)
  935. end
  936. attack=false
  937. elseif key=="x" and obf then
  938. attack=true
  939. so('228343252',pchar,false,1)
  940. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  941. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(40))
  942. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(80),0,rad(40))
  943. LerpTo.Neck.To = LerpTo.Neck.Cache
  944. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache
  945. bg = Instance.new("BodyGyro",torso)
  946. bg.P = 20e+003
  947. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  948. bg.cframe = CFrame.new(torso.Position,Vector3.new(mouse.Hit.p.x,torso.CFrame.p.y,mouse.Hit.p.z))
  949. mov=true
  950. elseif key=="z" and obf then
  951. attack=true
  952. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  953. local bgs = Instance.new("BodyGyro",torso)
  954. bgs.P = 20e+003
  955. bgs.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  956. bgs.cframe = CFrame.new(torso.Position,Vector3.new(pob.CFrame.p.x,torso.CFrame.p.y,pob.CFrame.p.z))
  957. game.Debris:AddItem(bgs,.2)
  958. so('235097661',pchar,false,1)
  959. mgblock(pchar["Left Arm"],CFrame.new(0,-1.5,0),5,"Bright yellow","White",Vector3.new(1.5,1.5,1.5),.1)
  960. mgblock(pchar["Right Arm"],CFrame.new(0,-1.5,0),5,"Bright yellow","White",Vector3.new(1.5,1.5,1.5),.1)
  961. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,0)
  962. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(70),0,0)
  963. wait(.2)
  964. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(100),0,rad(30))
  965. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(100),0,-rad(30))
  966. wait(.2)
  967. obf = false
  968. so('231917744',pchar,false,1)
  969. explosion("Bright yellow","Really black",pob.CFrame,Vector3.new(20,20,20),25,30)
  970. Spawn(function()
  971. for i=1,3 do
  972. for i=1,3 do
  973. 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)
  974. end
  975. local pa= Part(1,1,1,'Bright yellow',0,false,true,pchar)
  976. pa.Reflectance=1
  977. pa.CFrame=pob.CFrame*CFrame.Angles(math.random(),math.random(),math.random())
  978. local ms=Mesh(pa,'http://www.roblox.com/asset/?id=3270017',5,5,.02)
  979. Spawn(function()
  980. for i=1,20 do wait()
  981. pa.Reflectance=pa.Reflectance-.05
  982. pa.Transparency=pa.Transparency+.05
  983. ms.Scale=ms.Scale+Vector3.new(1,1,0)
  984. end
  985. pa:Destroy()
  986. end)
  987. end
  988. pob.Parent:Destroy()
  989. pob = nil
  990. end)
  991. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  992. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  993. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  994. wait(.01)
  995. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(120))
  996. mwl.Part1=pchar['Right Arm']
  997. wait(.2)
  998. Spawn(function()
  999. wait(.025)
  1000. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(90))
  1001. wait(.025)
  1002. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(60))
  1003. wait(.025)
  1004. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(30))
  1005. wait(.025)
  1006. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,0)
  1007. end)
  1008. CurrentActiveAnim="Holding"
  1009. LerpTo.hnd.To = LerpTo.hnd.Cache
  1010. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  1011. blade.Material="Neon"
  1012. for i=1,5 do wait()
  1013. blade.Transparency = .5-i/10
  1014. end
  1015. attack=false
  1016. elseif key=="e" and eq and obf == false then
  1017. attack=true
  1018. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  1019. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  1020. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  1021. wait(.01)
  1022. LerpTo.hnd.To = LerpTo.hnd.Cache
  1023. mwl.Part1=pchar['Torso']
  1024. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  1025. wait(.2)
  1026. CurrentActiveAnim="Idle"
  1027. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1028. Spawn(function()
  1029. for i=1,5 do wait()
  1030. blade.Transparency = 0+i/10
  1031. end
  1032. blade.Material="Plastic"
  1033. end)
  1034. so('233091183',pchar,false,.9)
  1035. wait(.1)
  1036. pchar.Humanoid.WalkSpeed=0
  1037. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  1038. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  1039. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(30),0,rad(10))
  1040. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(30),0,-rad(10))
  1041. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  1042. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  1043. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  1044. wait(.1)
  1045. local obli = game.ReplicatedStorage.obli:Clone()
  1046. pob=obli.mainp
  1047. obli.Parent=pchar
  1048. obli.mainp.Anchored=true
  1049. obli.mainp.CFrame=pchar.Torso.CFrame*CFrame.new(0,-3,-4)
  1050. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  1051. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-2,-4)
  1052. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  1053. 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)
  1054. for i,v in pairs(workspace:children()) do
  1055. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1056. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1057. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 10 and v.Name ~= pchar.Name then
  1058. v.Humanoid.PlatformStand=true
  1059. v.Torso.Velocity=Vector3.new(math.random(-50,50),20,math.random(-50,50))
  1060. v.Humanoid:TakeDamage(20)
  1061. Spawn(function()wait(.5) v.Humanoid.PlatformStand=false end)
  1062. end
  1063. end
  1064. end
  1065. end
  1066. wait(.1)
  1067. pchar.Humanoid.WalkSpeed=16
  1068. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  1069. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,rad(10))
  1070. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,-rad(10))
  1071. wait(.4)
  1072. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1073. attack=false
  1074. end
  1075. end)
  1076.  
  1077. mouse.KeyUp:connect(function(ke)
  1078. key=ke:lower()
  1079. if key=="x" then
  1080. stfobl=CFrame.new(mouse.Hit.p)*CFrame.new(0,5,0)
  1081. mov=false
  1082. so('200633455',pchar,false,.7)
  1083. bg:Destroy()
  1084. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1085. attack=false
  1086. end
  1087. end)
  1088.  
  1089. mouse.Button1Down:connect(function()
  1090. if not eq or attack == true or obf then return end
  1091. smo=false
  1092. if combo==-1 then
  1093. attack = true
  1094. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  1095. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,rad(45))
  1096. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(10))
  1097. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
  1098. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(20),0)
  1099. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(0,0,-rad(60))
  1100. wait(.3)
  1101. tmdmg(10,blade,5,4)
  1102. so('231917871',pchar,false,1)
  1103. camshake(0.05,50,0.001,5)
  1104. trail(blade,10,4)
  1105. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(10))
  1106. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  1107. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(0))
  1108. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(0),0)
  1109. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,-rad(90))
  1110. wait(.1)
  1111. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(70))
  1112. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(70),0)
  1113. wait(.2)
  1114. attack=false
  1115. combo=0
  1116. elseif combo==0 then
  1117. attack=true
  1118. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  1119. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
  1120. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,-rad(50))
  1121. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(180))
  1122. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  1123. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(0,0,rad(70))
  1124. wait(.3)
  1125. tmdmg(10,blade,5,4)
  1126. so('231917871',pchar,false,.9)
  1127. camshake(0.05,50,0.001,5)
  1128. trail(blade,10,4)
  1129. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(50))
  1130. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  1131. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  1132. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,rad(90))
  1133. wait(.1)
  1134. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  1135. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  1136. wait(.2)
  1137. attack=false
  1138. combo=1
  1139. elseif combo==1 then
  1140. attack=true
  1141. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  1142. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
  1143. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(50))
  1144. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(45))
  1145. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(50),0,-rad(60))
  1146. wait(.2)
  1147. tmdmg(10,blade,5,4)
  1148. so('231917871',pchar,false,.8)
  1149. camshake(0.05,50,0.001,5)
  1150. trail(blade,10,4)
  1151. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,rad(50))
  1152. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  1153. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  1154. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,-rad(90))
  1155. wait(.1)
  1156. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  1157. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  1158. wait(.2)
  1159. attack=false
  1160. combo=2
  1161. elseif combo==2 then
  1162. attack=true
  1163. so('231917871',pchar,false,.7)
  1164. so('228343249',pchar,false,.8)
  1165. LerpTo.hnd.To = LerpTo.hnd.Cache
  1166. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,-rad(90))* CFrame.new(0.5,-0.5,0)
  1167. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  1168. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  1169. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(30))
  1170. posfix(-rad(90))
  1171. for i,v in pairs(workspace:children()) do
  1172. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1173. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1174. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 27 and v.Name ~= pchar.Name then
  1175. local goto=v.Torso.Position+Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  1176. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  1177. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  1178. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  1179. local bpos=Instance.new("BodyPosition",v.Torso)
  1180. bpos.maxForce=Vector3.new(1e1000,1e1000,1e1000)
  1181. bpos.position=pchar.Torso.Position
  1182. game.Debris:AddItem(bpos,.3)
  1183. Spawn(function()
  1184. for i=1,2 do
  1185. local oldpos=v.Torso.CFrame.p wait(.2)
  1186. local newpos=v.Torso.CFrame.p
  1187. local mag = (oldpos-newpos).magnitude
  1188. local a= Part(.2,.2,.2,"Black",0.5,false,true,pchar)
  1189. a.CFrame=CFrame.new(oldpos,newpos)*CFrame.new(0,0,-mag/2)*CFrame.Angles(0,pi/2,pi/2)
  1190. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  1191. 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)
  1192. end
  1193. end)
  1194. end
  1195. end
  1196. end
  1197. end
  1198. wait(.3)
  1199. combo=3
  1200. attack=false
  1201. elseif combo==3 then
  1202. attack=true
  1203. so('233856140',pchar,false,1.2)
  1204. LerpTo.hnd.To = LerpTo.hnd.Cache * CFrame.Angles(rad(20),rad(40),0)
  1205. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,rad(40))*CFrame.new(.2,-.3,0)
  1206. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  1207. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0)
  1208. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,-rad(40))*CFrame.new(-.2,-.3,0)
  1209. wait(.3)
  1210. so('231917871',pchar,false,.6)
  1211. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  1212. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(20),0,-rad(40))* CFrame.new(-.2,-.25,0)
  1213. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(20),0,rad(40))* CFrame.new(.2,-.25,0)
  1214. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  1215. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  1216. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  1217. wait(.15)
  1218. so('231917806',pchar,false,1.25)
  1219. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  1220. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-.2,0)
  1221. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  1222. 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)
  1223. for i,v in pairs(workspace:children()) do
  1224. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1225. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1226. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 27 and v.Name ~= pchar.Name then
  1227. v.Humanoid.PlatformStand=true
  1228. v.Torso.Velocity=Vector3.new(math.random(-100,100),20,math.random(-100,100))
  1229. v.Humanoid:TakeDamage(20)
  1230. Spawn(function()wait(.5) v.Humanoid.PlatformStand=false end)
  1231. end
  1232. end
  1233. end
  1234. end
  1235. wait(.2)
  1236. combo=4
  1237. attack=false
  1238. end
  1239. Spawn(function()
  1240. wait(0.6)
  1241. if attack==false then
  1242. attack=true
  1243. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  1244. smo=true
  1245. wait(.2)
  1246. attack=false
  1247. combo=-1
  1248. end
  1249. end)
  1250. end)
  1251. ftimer=0
  1252. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=false})
  1253. CurrentActiveAnim="Idle"
  1254. game:service'RunService'.Stepped:connect(function()wait()
  1255. ftimer=ftimer+.1
  1256. Spawn(function()
  1257. if obf and ftimer > 1 then
  1258. mgblock(pob,CFrame.new(0,-3,0),2,"White","White",Vector3.new(0,0,0),.1)
  1259. ftimer=0
  1260. if mov then
  1261. so('200633455',pchar,false,1.2)
  1262. 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)
  1263. end
  1264. end
  1265. end)
  1266. if mov then
  1267. bg.cframe = CFrame.new(torso.Position,Vector3.new(mouse.Hit.p.x,torso.CFrame.p.y,mouse.Hit.p.z))
  1268. end
  1269. col = col + 1.1
  1270. if obf then
  1271. if mov then
  1272. 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)
  1273. else
  1274. 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)
  1275. end
  1276. end
  1277. UpdateAnims()
  1278. for _,v in pairs(LerpTo) do
  1279. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
  1280. end
  1281. angle = (angle % 100) + anglespeed/10
  1282. if Vector3.new(0, torso.Velocity.y, 0).magnitude > 4 then
  1283. CheckAnimData(CurrentActiveAnim,"Jump")
  1284. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  1285. CheckAnimData(CurrentActiveAnim,"Stance")
  1286. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  1287. CheckAnimData(CurrentActiveAnim,"Walk")
  1288. end
  1289. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement