Goo345

Untitled

Jul 31st, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.86 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6. ---
  7. local p = game.Players.LocalPlayer
  8. local char = p.Character
  9. local mouse = p:GetMouse()
  10. local larm = char["Left Arm"]
  11. local rarm = char["Right Arm"]
  12. local lleg = char["Left Leg"]
  13. local rleg = char["Right Leg"]
  14. local hed = char.Head
  15. local torso = char.Torso
  16. local ASD = BrickColor.new("Pastel brown")
  17. local hum = char.Humanoid
  18. local attack = false
  19. local attacktype = 1
  20. local cam = game.Workspace.CurrentCamera
  21. local root = char.HumanoidRootPart
  22. local deb = false
  23. local shot = 0
  24. local l = game:GetService("Lighting")
  25. local rs = game:GetService("RunService").RenderStepped
  26. local stanceToggle = "Normal"
  27. math.randomseed(os.time())
  28. hum.WalkSpeed = 7
  29. char.Health:Destroy()
  30. hum.MaxHealth = 5000000
  31. wait(0.1)
  32. hum.Health = 5000000
  33. z = Instance.new("Sound", char.Torso)
  34. z.SoundId = "rbxassetid://945754402"
  35. z.Looped = true
  36. z.Pitch = 1
  37. z.Volume = 1
  38. ----------------------------------------------------
  39. local SM = Instance.new("Smoke",torso)
  40. SM.Size = 15
  41. local S = Instance.new("Part",char)
  42. S.Size = Vector3.new(1,1,1)
  43. S.Material = "Neon"
  44. S.BrickColor = BrickColor.new("Deep orange")
  45. S.Transparency = 0
  46. S.Anchored = true
  47. S.CFrame = torso.CFrame*CFrame.new(0,0,0)
  48. local Ring = Instance.new("Part",S)
  49. Ring.Size = Vector3.new(1,1,1)
  50. Ring.BrickColor = BrickColor.new("Deep orange")
  51. Ring.Anchored = true
  52. Ring.CanCollide = false
  53. Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
  54. local Ring2 = Instance.new("SpecialMesh",Ring)
  55. Ring2.MeshId = "rbxassetid://3270017"
  56. Ring2.Scale = Vector3.new(0.1,0.1,0.1)
  57. local S2 = Instance.new("SpecialMesh",S)
  58. S2.MeshType = "Sphere"
  59. S2.Scale = Vector3.new(1,1,1)
  60. v = Instance.new("Sound")
  61. v.SoundId = "rbxassetid://821439273"
  62. v.Parent = char.Torso
  63. v.Looped = false
  64. v.Pitch = 1
  65. v.Volume = 1
  66. wait(.01)
  67. v:Play()
  68. local partasdeff = Instance.new("ParticleEmitter",S)
  69. partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
  70. partasdeff.LightEmission = .1
  71. partasdeff.Size = NumberSequence.new(0.2)
  72. partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
  73. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  74. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  75. partasdeff.Transparency = bbb
  76. partasdeff.Size = aaa
  77. partasdeff.ZOffset = .9
  78. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  79. partasdeff.LockedToPart = false
  80. partasdeff.EmissionDirection = "Top"
  81. partasdeff.Lifetime = NumberRange.new(1, 2)
  82. partasdeff.Rate = 1000
  83. partasdeff.Rotation = NumberRange.new(-100, 100)
  84. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  85. partasdeff.Speed = NumberRange.new(10)
  86. partasdeff.VelocitySpread = 300
  87. partasdeff.Enabled = true
  88. for i = 1,100 do
  89. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  90. Ring.Transparency = Ring.Transparency + 0.01
  91. S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
  92. S.Transparency = S.Transparency + 0.01
  93. game:GetService("RunService").RenderStepped:wait()
  94. end
  95. S:remove()
  96. wait(1)
  97. SM:remove()
  98. v = Instance.new("Sound")
  99. v.SoundId = "rbxassetid://181384451"
  100. v.Parent = torso
  101. v.Looped = false
  102. v.Pitch = 1.5
  103. v.Volume = 1
  104. wait(.01)
  105. v:Play()
  106. z:Play()
  107. ----------------------------------------------------
  108. Debounces = {
  109. on = false;
  110. ks = false;
  111. CanAttack = true;
  112. CanJoke = true;
  113. NoIdl = false;
  114. Slashing = false;
  115. Slashed = false;
  116. Grabbing = false;
  117. Grabbed = false;
  118. }
  119. local Touche = {char.Name, }
  120. ----------------------------------------------------
  121. function lerp(a, b, t) -- Linear interpolation
  122. return a + (b - a)*t
  123. end
  124.  
  125. function slerp(a, b, t) --Spherical interpolation
  126. dot = a:Dot(b)
  127. if dot > 0.99999 or dot < -0.99999 then
  128. return t <= 0.5 and a or b
  129. else
  130. r = math.acos(dot)
  131. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  132. end
  133. end
  134.  
  135. function matrixInterpolate(a, b, t)
  136. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  137. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  138. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  139. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  140. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  141. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  142. local t = v1:Dot(v2)
  143. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  144. return CFrame.new()
  145. end
  146. return CFrame.new(
  147. v0.x, v0.y, v0.z,
  148. v1.x, v1.y, v1.z,
  149. v2.x, v2.y, v2.z,
  150. v3.x, v3.y, v3.z)
  151. end
  152. ----------------------------------------------------
  153. function genWeld(a,b)
  154. local w = Instance.new("Weld",a)
  155. w.Part0 = a
  156. w.Part1 = b
  157. return w
  158. end
  159. function weld(a, b)
  160. local weld = Instance.new("Weld")
  161. weld.Name = "W"
  162. weld.Part0 = a
  163. weld.Part1 = b
  164. weld.C0 = a.CFrame:inverse() * b.CFrame
  165. weld.Parent = a
  166. return weld;
  167. end
  168. ----------------------------------------------------
  169. function Lerp(c1,c2,al)
  170. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  171. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  172. for i,v in pairs(com1) do
  173. com1[i] = v+(com2[i]-v)*al
  174. end
  175. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  176. end
  177. ----------------------------------------------------
  178. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  179. local wld = Instance.new("Weld", wp1)
  180. wld.Part0 = wp0
  181. wld.Part1 = wp1
  182. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  183. end
  184. ----------------------------------------------------
  185. for i,v in pairs(char:children()) do
  186. if v:IsA("Hat") then
  187. v:Destroy()
  188. end
  189. end
  190. for i,v in pairs(hed:children()) do
  191. if v:IsA("Sound") then
  192. v:Destroy()
  193. end
  194. end
  195. ----------------------------------------------------
  196. function HasntTouched(plrname)
  197. local ret = true
  198. for _, v in pairs(Touche) do
  199. if v == plrname then
  200. ret = false
  201. end
  202. end
  203. return ret
  204. end
  205. ----------------------------------------------------
  206. larm.Size = larm.Size * 6
  207. rarm.Size = rarm.Size * 6
  208. lleg.Size = lleg.Size * 6
  209. rleg.Size = rleg.Size * 6
  210. torso.Size = torso.Size * 6
  211. hed.Size = hed.Size * 6
  212. root.Size = root.Size * 6
  213. ----------------------------------------------------
  214. newWeld(torso, larm, -1.5, 0.5, 0)
  215. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  216. newWeld(torso, rarm, 1.5, 0.5, 0)
  217. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  218. newWeld(torso, hed, 0, 1.5, 0)
  219. newWeld(torso, lleg, -0.5, -1, 0)
  220. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  221. newWeld(torso, rleg, 0.5, -1, 0)
  222. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  223. newWeld(root, torso, 0, -1, 0)
  224. torso.Weld.C1 = CFrame.new(0, -1, 0)
  225. ----------------------------------------------------
  226. local Part = Instance.new("Part",hed)
  227. Part.BrickColor = BrickColor.new("Really black")
  228. Part.Size = Vector3.new(1,1,1)
  229. Part.CanCollide = false
  230. Part.Material = "Neon"
  231. local M = Instance.new("SpecialMesh",Part)
  232. M.MeshId = "rbxassetid://731024518"
  233. M.Scale = Vector3.new(2,2,2)
  234. local Part2 = Instance.new("Weld",Part)
  235. Part2.Part0 = hed
  236. Part2.Part1 = Part
  237. Part2.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,3.1,0)
  238. char.Shirt:remove()
  239. char.Pants:remove()
  240. char.Head.face.Texture = "rbxassetid://470245396"
  241. char.Humanoid.WalkSpeed = 44
  242. ----------------------------------------------------
  243. ----------------------------------------------------
  244.  
  245. ----------------------------------------------------
  246. function weld5(part0, part1, c0, c1)
  247. weeld=Instance.new("Weld", part0)
  248. weeld.Part0=part0
  249. weeld.Part1=part1
  250. weeld.C0=c0
  251. weeld.C1=c1
  252. return weeld
  253. end
  254. ----------------------------------------------------
  255. function newRay(start,face,range,wat)
  256. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  257. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  258. return rey,hit,pos
  259. end
  260. ----------------------------------------------------
  261. mod5 = Instance.new("Model",char)
  262.  
  263. function FindNearestTorso(Position,Distance,SinglePlayer)
  264. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  265. local List = {}
  266. for i,v in pairs(workspace:GetChildren())do
  267. if v:IsA("Model")then
  268. if v:findFirstChild("Torso")then
  269. if v ~= char then
  270. if(v.Torso.Position -Position).magnitude <= Distance then
  271. table.insert(List,v)
  272. end
  273. end
  274. end
  275. end
  276. end
  277. return List
  278. end
  279.  
  280. function Landing()
  281. part=Instance.new('Part',mod5)
  282. part.Anchored=true
  283. part.CanCollide=false
  284. part.FormFactor='Custom'
  285. part.Size=Vector3.new(.2,.2,.2)
  286. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  287. part.Transparency=.7
  288. part.BrickColor=BrickColor.new('Really black')
  289. mesh=Instance.new('SpecialMesh',part)
  290. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  291. mesh.Scale=Vector3.new(10,5,10)
  292.  
  293. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  294. if v:FindFirstChild('Humanoid') then
  295. v.Humanoid:TakeDamage(math.random(20,30))
  296. v.Humanoid.PlatformStand = true
  297. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  298. end
  299. end
  300.  
  301. coroutine.resume(coroutine.create(function()
  302. for i=0,3.8,0.05 do
  303. wait()
  304. part.CFrame=part.CFrame
  305. part.Transparency=i
  306. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  307. end
  308. part.Parent = nil
  309. end))
  310. end
  311. ----------------------------------------------------
  312. mod4 = Instance.new("Model",char)
  313.  
  314. ptez = {0.7, 0.8, 0.9, 1}
  315.  
  316. function FindNearestTorso(Position,Distance,SinglePlayer)
  317. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  318. local List = {}
  319. for i,v in pairs(workspace:GetChildren())do
  320. if v:IsA("Model")then
  321. if v:findFirstChild("Torso")then
  322. if v ~= char then
  323. if(v.Torso.Position -Position).magnitude <= Distance then
  324. table.insert(List,v)
  325. end
  326. end
  327. end
  328. end
  329. end
  330. return List
  331. end
  332.  
  333. ----------------------------------------------------
  334.  
  335. local acos = math.acos
  336. local sqrt = math.sqrt
  337. local Vec3 = Vector3.new
  338. local fromAxisAngle = CFrame.fromAxisAngle
  339.  
  340. local function toAxisAngle(CFr)
  341. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  342. local Angle = math.acos((R00+R11+R22-1)/2)
  343. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  344. A = A == 0 and 0.00001 or A
  345. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  346. B = B == 0 and 0.00001 or B
  347. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  348. C = C == 0 and 0.00001 or C
  349. local x = (R21-R12)/sqrt(A)
  350. local y = (R02-R20)/sqrt(B)
  351. local z = (R10-R01)/sqrt(C)
  352. return Vec3(x,y,z),Angle
  353. end
  354.  
  355. function ApplyTrig(Num,Func)
  356. local Min,Max = Func(0),Func(1)
  357. local i = Func(Num)
  358. return (i-Min)/(Max-Min)
  359. --[[if Func == "sin" then
  360. return (math.sin((1-Num)*math.pi)+1)/2
  361. elseif Func == "cos" then
  362. return (math.cos((1-Num)*math.pi)+1)/2
  363. end]]
  364. end
  365.  
  366. function LerpCFrame(CFrame1,CFrame2,Num)
  367. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  368. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  369. end
  370. ----------------------------------------------------
  371. function Hit()
  372. if Debounces.CanAttack == true then
  373. Debounces.CanAttack = false
  374. Debounces.on = true
  375. Debounces.NoIdl = true
  376. local HitBox = Instance.new("Part",char)
  377. HitBox.Size = Vector3.new(5,5,5)
  378. HitBox.CanCollide = false
  379. HitBox.Transparency = math.huge
  380. local HitBox2 = Instance.new("Weld",HitBox)
  381. HitBox2.Part0 = rarm
  382. HitBox2.Part1 = HitBox
  383. HitBox2.C0 = CFrame.new(0,-1.3,0)
  384. HitBox.Touched:connect(function(hit)
  385. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  386. local SFXZ = Instance.new("Sound",torso)
  387. SFXZ.SoundId = "rbxassetid://743886825"
  388. SFXZ.Volume = math.huge
  389. SFXZ.Pitch = 0.5
  390. SFXZ.Looped = false
  391. SFXZ:Play()
  392. HitBox:remove()
  393. hit.Parent.Humanoid:TakeDamage(88)
  394. hit.Parent.Humanoid.PlatformStand = true
  395. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  396. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  397. Fl.velocity = rleg.CFrame.lookVector*120
  398. wait(0.1)
  399. Fl:remove()
  400. end
  401. end)
  402. for i = 1,20 do
  403. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,5.5,-1)*CFrame.Angles(3.1,0,1),.3)
  404. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
  405. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
  406. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,-0.5),.3)
  407. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
  408. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3)
  409. if Debounces.on == false then break end
  410. wait()
  411. end
  412. local SFXZ = Instance.new("Sound",torso)
  413. SFXZ.SoundId = "rbxassetid://169259383"
  414. SFXZ.Volume = math.huge
  415. SFXZ.Pitch = 0.5
  416. SFXZ.Looped = false
  417. wait(0.01)
  418. SFXZ:Play()
  419. for i = 1,20 do
  420. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,12,-2.5)*CFrame.Angles(3.1,0,-1),.3)
  421. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
  422. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
  423. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,0.5),.3)
  424. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
  425. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3)
  426. if Debounces.on == false then break end
  427. wait()
  428. end
  429. if Debounces.CanAttack == false then
  430. Debounces.CanAttack = true
  431. Debounces.on = false
  432. Debounces.NoIdl = false
  433. HitBox:remove()
  434. end
  435. end
  436. end
  437. function Hit2()
  438. if Debounces.CanAttack == true then
  439. Debounces.CanAttack = false
  440. Debounces.on = true
  441. Debounces.NoIdl = true
  442. local HitBox = Instance.new("Part",char)
  443. HitBox.Size = Vector3.new(5,5,5)
  444. HitBox.CanCollide = false
  445. HitBox.Transparency = math.huge
  446. local HitBox2 = Instance.new("Weld",HitBox)
  447. HitBox2.Part0 = larm
  448. HitBox2.Part1 = HitBox
  449. HitBox2.C0 = CFrame.new(0,-1.3,0)
  450. HitBox.Touched:connect(function(hit)
  451. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  452. local SFXZ = Instance.new("Sound",torso)
  453. SFXZ.SoundId = "rbxassetid://743886825"
  454. SFXZ.Volume = math.huge
  455. SFXZ.Pitch = 0.5
  456. SFXZ.Looped = false
  457. SFXZ:Play()
  458. HitBox:remove()
  459. hit.Parent.Humanoid:TakeDamage(88)
  460. hit.Parent.Humanoid.PlatformStand = true
  461. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  462. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  463. Fl.velocity = rleg.CFrame.lookVector*120
  464. wait(0.1)
  465. Fl:remove()
  466. end
  467. end)
  468. for i = 1,20 do
  469. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,5.5,-1)*CFrame.Angles(1.55,0,0.3),.3)
  470. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(3.1,0,-1),.3)
  471. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
  472. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,0.5),.3)
  473. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
  474. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3)
  475. if Debounces.on == false then break end
  476. wait()
  477. end
  478. local SFXZ = Instance.new("Sound",torso)
  479. SFXZ.SoundId = "rbxassetid://169259383"
  480. SFXZ.Volume = math.huge
  481. SFXZ.Pitch = 0.5
  482. SFXZ.Looped = false
  483. wait(0.01)
  484. SFXZ:Play()
  485. for i = 1,20 do
  486. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3),.3)
  487. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-3,12,-2.5) *CFrame.Angles(3.1,0,1),.3)
  488. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
  489. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,-0.5),.3)
  490. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
  491. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3)
  492. if Debounces.on == false then break end
  493. wait()
  494. end
  495. if Debounces.CanAttack == false then
  496. Debounces.CanAttack = true
  497. Debounces.on = false
  498. Debounces.NoIdl = false
  499. HitBox:remove()
  500. end
  501. end
  502. end
  503. function Grab()
  504. if Debounces.CanAttack == true then
  505. Debounces.CanAttack = false
  506. Debounces.on = true
  507. Debounces.NoIdl = true
  508. for i = 1,20 do
  509. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(9,9,-1)*CFrame.Angles(2.8,0,0),.3)
  510. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
  511. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
  512. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3)
  513. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
  514. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3)
  515. if Debounces.on == false then break end
  516. wait()
  517. end
  518. local HitBox = Instance.new("Part",char)
  519. HitBox.Size = Vector3.new(5,5,5)
  520. HitBox.CanCollide = false
  521. HitBox.Transparency = math.huge
  522. local HitBox2 = Instance.new("Weld",HitBox)
  523. HitBox2.Part0 = rarm
  524. HitBox2.Part1 = HitBox
  525. HitBox2.C0 = CFrame.new(0,-4.5,0)
  526. HitBox.Touched:connect(function(hit)
  527. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  528. if not DD then DD = true
  529. HitBox:remove()
  530. hit.Parent.Humanoid.PlatformStand = true
  531. local We = Instance.new("Weld",hit.Parent.Torso)
  532. We.Part0 = rarm
  533. We.Part1 = hit.Parent.Torso
  534. We.C0 = CFrame.new(0,-7,0)*CFrame.Angles(-1.55,0,0)
  535. wait(1)
  536. for i = 1,20 do
  537. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,-1)*CFrame.Angles(1.55,0,-0.5),.3)
  538. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
  539. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
  540. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3)
  541. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
  542. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3)
  543. if Debounces.on == false then break end
  544. wait()
  545. end
  546. for i = 1,4 do
  547. local SS = Instance.new("Sound",hit.Parent.Torso)
  548. SS.SoundId = "rbxassetid://134854740"
  549. SS.Volume = math.huge
  550. SS.Looped = false
  551. SS.Pitch = 0.9
  552. SS:play()
  553. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  554. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  555. partasdeff.LightEmission = .1
  556. partasdeff.Size = NumberSequence.new(0.2)
  557. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  558. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  559. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  560. partasdeff.Transparency = bbb
  561. partasdeff.Size = aaa
  562. partasdeff.ZOffset = .9
  563. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  564. partasdeff.LockedToPart = false
  565. partasdeff.EmissionDirection = "Top"
  566. partasdeff.Lifetime = NumberRange.new(1, 2)
  567. partasdeff.Rate = 1000
  568. partasdeff.Rotation = NumberRange.new(-100, 100)
  569. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  570. partasdeff.Speed = NumberRange.new(10)
  571. partasdeff.VelocitySpread = 300
  572. partasdeff.Enabled = true
  573. wait(0.005)
  574. local Ring = Instance.new("Part",hit.Parent.Torso)
  575. Ring.BrickColor = BrickColor.new("Camo")
  576. Ring.CanCollide = false
  577. Ring.Anchored = true
  578. Ring.CFrame = hit.Parent.Torso.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0,0)
  579. local Ring2 = Instance.new("SpecialMesh",Ring)
  580. Ring2.MeshId = "rbxassetid://3270017"
  581. Ring2.Scale = Vector3.new(1,1,1)
  582. coroutine.resume(coroutine.create(function()
  583. for i = 1,130 do
  584. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  585. Ring.Transparency = Ring.Transparency + 0.009
  586. game:GetService("RunService").RenderStepped:wait()
  587. end
  588. wait(0.5)
  589. Ring:remove()
  590. end))
  591. for i = 1,20 do
  592. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,-3)*CFrame.Angles(1.55,0,-0.1),.3)
  593. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
  594. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
  595. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3)
  596. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
  597. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3)
  598. if Debounces.on == false then break end
  599. wait()
  600. end
  601. for i = 1,20 do
  602. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,0)*CFrame.Angles(1.55,0,-0.1),.3)
  603. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3)
  604. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3)
  605. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3)
  606. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3)
  607. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3)
  608. if Debounces.on == false then break end
  609. wait()
  610. end
  611. partasdeff.Enabled = false
  612. end
  613. hit.Parent:BreakJoints()
  614. We:remove()
  615. if Debounces.CanAttack == false then
  616. Debounces.CanAttack = true
  617. Debounces.on = false
  618. Debounces.NoIdl = false
  619. end
  620. wait(1)
  621. DD = false
  622. end
  623. end
  624. end)
  625. wait(8)
  626. if Debounces.CanAttack == false then
  627. Debounces.CanAttack = true
  628. Debounces.on = false
  629. Debounces.NoIdl = false
  630. HitBox:remove()
  631. end
  632. end
  633. end
  634. ----------------------------------------------------
  635. mouse.Button1Down:connect(function(key)
  636. if attack == false and attacktype == 1 then
  637. Hit()
  638. attacktype = 2
  639. elseif attack == false and attacktype == 2 then
  640. Hit2()
  641. attacktype = 1
  642. end
  643. end)
  644. mouse.KeyDown:connect(function(key)
  645. if key == "e" then
  646. Grab()
  647. end
  648. end)
  649. ----------------------------------------------------
  650. local animpose = "Idle"
  651. local lastanimpose = "Idle"
  652. local sine = 0
  653. local change = 1
  654. local val = 0
  655. local ffing = false
  656. ----------------------------------------------------
  657. local x = Instance.new("Sound", char.Torso)
  658. x.SoundId = "http://www.roblox.com/asset/?id=273962540"
  659. x.Looped = true
  660. x.Volume = 1
  661. x.Pitch = 1
  662. local footsteps = false
  663. -------------------------------
  664. game:GetService("RunService").RenderStepped:connect(function()
  665. rarm.BrickColor = ASD
  666. larm.BrickColor = ASD
  667. rleg.BrickColor = ASD
  668. lleg.BrickColor = ASD
  669. hed.BrickColor = ASD
  670. torso.BrickColor = ASD
  671. --[[if char.Humanoid.Jump == true then
  672. jump = true
  673. else
  674. jump = false
  675. end]]
  676. char.Humanoid.FreeFalling:connect(function(f)
  677. if f then
  678. ffing = true
  679. else
  680. ffing = false
  681. end
  682. end)
  683. sine = sine + change
  684. if jumpn == true then
  685. animpose = "Jumping"
  686. elseif ffing == true then
  687. animpose = "Freefalling"
  688. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  689. animpose = "Idle"
  690. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  691. animpose = "Walking"
  692. end
  693. if animpose ~= lastanimpose then
  694. sine = 0
  695. if Debounces.NoIdl == false then
  696. if animpose == "Idle" then
  697. for i = 1, 2 do
  698. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2)
  699. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2)
  700. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0), 0.2)
  701. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0) * CFrame.Angles(-1.55,0,0), 0.2)
  702. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55, 0, math.rad(-10)), 0.2)
  703. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.55, 0, math.rad(10)), 0.2)
  704. end
  705. elseif animpose == "Walking" then
  706. for i = 1, 2 do
  707. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2)
  708. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3), 0.2)
  709. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0),0.2)
  710. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0) * CFrame.Angles(-1.55, 0,0),0.2)
  711. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55, 0, 0), .4)
  712. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.55, 0, 0), .4)
  713. end
  714. wait()
  715. end
  716. else
  717. end
  718. end
  719. lastanimpose = animpose
  720. if Debounces.NoIdl == false then
  721. if animpose == "Idle" then
  722. if stanceToggle == "Normal" then
  723. change = 0.5
  724. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3)*CFrame.new(0,0-.1*math.sin(tick()*2),0-.1*math.sin(tick()*2)),.2)
  725. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3)*CFrame.new(0,0-.1*math.sin(tick()*2),0-.1*math.sin(tick()*2)),.2)
  726. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0)*CFrame.Angles(0-.1*math.sin(tick()*2),0,0),.3)
  727. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0)*CFrame.Angles(-1.55,0,0)*CFrame.new(0,0-.15*math.sin(tick()*2),0),1)
  728. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,-0.1), 0.2)
  729. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.2,0,0.1)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0-.1*math.sin(tick()*2),0,0), 0.2)
  730. elseif stanceToggle == "Sitting" then
  731. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  732. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  733. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  734. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  735. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  736. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  737. end
  738. elseif animpose == "Walking" then
  739. if stanceToggle == "Normal" then
  740. change = 1
  741. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3)*CFrame.Angles(0-.8*math.sin(tick()*9),0,0),.3)
  742. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3)*CFrame.Angles(0+.8*math.sin(tick()*9),0,0),.3)
  743. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0)*CFrame.Angles(0-.1*math.sin(tick()*9),0,0),.3)
  744. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0)*CFrame.Angles(-1.55,0,0)*CFrame.new(0,0,0-.2*math.sin(tick()*9)),1)
  745. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,-0.1)*CFrame.Angles(0-.8*math.sin(tick()*9),0,0), 0.2)
  746. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.2,0,0.1)*CFrame.Angles(0+.8*math.sin(tick()*9),0,0),0.2)
  747. end
  748. end
  749. end
  750. end)
Add Comment
Please, Sign In to add comment