Advertisement
Hermaxs

Untitled

Nov 14th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.77 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. 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(),Button2Up=c(),Button2Down=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;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u 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 rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},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")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7.  
  8. ---
  9. local p = game.Players.LocalPlayer
  10. local char = p.Character
  11. local mouse = p:GetMouse()
  12. local larm = char["Left Arm"]
  13. local rarm = char["Right Arm"]
  14. local lleg = char["Left Leg"]
  15. local rleg = char["Right Leg"]
  16. local hed = char.Head
  17. local torso = char.Torso
  18. local ASD = BrickColor.new("Maroon")
  19. local hum = char.Humanoid
  20. local cam = game.Workspace.CurrentCamera
  21. local root = char.HumanoidRootPart
  22. local DD = false
  23. local FA = false
  24. local deb = false
  25. local shot = 0
  26. local l = game:GetService("Lighting")
  27. local rs = game:GetService("RunService").RenderStepped
  28. local stanceToggle = "Normal"
  29. math.randomseed(os.time())
  30. hum.WalkSpeed = 7
  31. char.Health:Destroy()
  32. hum.MaxHealth = 5000000
  33. wait(0.1)
  34. hum.Health = 5000000
  35. z = Instance.new("Sound", char.Torso)
  36. z.SoundId = "rbxassetid://174039148"
  37. z.Looped = true
  38. z.Pitch = 1
  39. z.Volume = 1
  40. ----------------------------------------------------
  41. local SM = Instance.new("Smoke",torso)
  42. SM.Size = 15
  43. local S = Instance.new("Part",char)
  44. S.Size = Vector3.new(1,1,1)
  45. S.Material = "Neon"
  46. S.BrickColor = BrickColor.new("Deep orange")
  47. S.Transparency = 0
  48. S.Anchored = true
  49. S.CFrame = torso.CFrame*CFrame.new(0,0,0)
  50. local Ring = Instance.new("Part",S)
  51. Ring.Size = Vector3.new(1,1,1)
  52. Ring.BrickColor = BrickColor.new("Deep orange")
  53. Ring.Anchored = true
  54. Ring.CanCollide = false
  55. Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
  56. local Ring2 = Instance.new("SpecialMesh",Ring)
  57. Ring2.MeshId = "rbxassetid://3270017"
  58. Ring2.Scale = Vector3.new(0.1,0.1,0.1)
  59. local S2 = Instance.new("SpecialMesh",S)
  60. S2.MeshType = "Sphere"
  61. S2.Scale = Vector3.new(1,1,1)
  62. v = Instance.new("Sound")
  63. v.SoundId = "rbxassetid://821439273"
  64. v.Parent = char.Torso
  65. v.Looped = false
  66. v.Pitch = 1
  67. v.Volume = 1
  68. wait(.01)
  69. v:Play()
  70. local partasdeff = Instance.new("ParticleEmitter",S)
  71. partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
  72. partasdeff.LightEmission = .1
  73. partasdeff.Size = NumberSequence.new(0.2)
  74. partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
  75. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  76. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  77. partasdeff.Transparency = bbb
  78. partasdeff.Size = aaa
  79. partasdeff.ZOffset = .9
  80. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  81. partasdeff.LockedToPart = false
  82. partasdeff.EmissionDirection = "Top"
  83. partasdeff.Lifetime = NumberRange.new(1, 2)
  84. partasdeff.Rate = 1000
  85. partasdeff.Rotation = NumberRange.new(-100, 100)
  86. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  87. partasdeff.Speed = NumberRange.new(10)
  88. partasdeff.VelocitySpread = 300
  89. partasdeff.Enabled = true
  90. for i = 1,100 do
  91. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  92. Ring.Transparency = Ring.Transparency + 0.01
  93. S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
  94. S.Transparency = S.Transparency + 0.01
  95. game:GetService("RunService").RenderStepped:wait()
  96. end
  97. S:remove()
  98. wait(1)
  99. SM:remove()
  100. hed.face:remove()
  101. char.Shirt:remove()
  102. char.Pants:remove()
  103. v = Instance.new("Sound")
  104. v.SoundId = "rbxassetid://181384451"
  105. v.Parent = torso
  106. v.Looped = false
  107. v.Pitch = 0.8
  108. v.Volume = 1
  109. wait(.01)
  110. v:Play()
  111. z:Play()
  112. ----------------------------------------------------
  113. Debounces = {
  114. on = false;
  115. ks = false;
  116. CanAttack = true;
  117. CanJoke = true;
  118. NoIdl = false;
  119. Slashing = false;
  120. Slashed = false;
  121. Grabbing = false;
  122. Grabbed = false;
  123. }
  124. local Touche = {char.Name, }
  125. ----------------------------------------------------
  126. function lerp(a, b, t) -- Linear interpolation
  127. return a + (b - a)*t
  128. end
  129.  
  130. function slerp(a, b, t) --Spherical interpolation
  131. dot = a:Dot(b)
  132. if dot > 0.99999 or dot < -0.99999 then
  133. return t <= 0.5 and a or b
  134. else
  135. r = math.acos(dot)
  136. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  137. end
  138. end
  139.  
  140. function matrixInterpolate(a, b, t)
  141. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  142. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  143. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  144. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  145. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  146. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  147. local t = v1:Dot(v2)
  148. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  149. return CFrame.new()
  150. end
  151. return CFrame.new(
  152. v0.x, v0.y, v0.z,
  153. v1.x, v1.y, v1.z,
  154. v2.x, v2.y, v2.z,
  155. v3.x, v3.y, v3.z)
  156. end
  157. ----------------------------------------------------
  158. function genWeld(a,b)
  159. local w = Instance.new("Weld",a)
  160. w.Part0 = a
  161. w.Part1 = b
  162. return w
  163. end
  164. function weld(a, b)
  165. local weld = Instance.new("Weld")
  166. weld.Name = "W"
  167. weld.Part0 = a
  168. weld.Part1 = b
  169. weld.C0 = a.CFrame:inverse() * b.CFrame
  170. weld.Parent = a
  171. return weld;
  172. end
  173. ----------------------------------------------------
  174. function Lerp(c1,c2,al)
  175. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  176. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  177. for i,v in pairs(com1) do
  178. com1[i] = v+(com2[i]-v)*al
  179. end
  180. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  181. end
  182. ----------------------------------------------------
  183. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  184. local wld = Instance.new("Weld", wp1)
  185. wld.Part0 = wp0
  186. wld.Part1 = wp1
  187. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  188. end
  189. ----------------------------------------------------
  190. for i,v in pairs(char:children()) do
  191. if v:IsA("Hat") then
  192. v:Destroy()
  193. end
  194. end
  195. for i,v in pairs(hed:children()) do
  196. if v:IsA("Sound") then
  197. v:Destroy()
  198. end
  199. end
  200. ----------------------------------------------------
  201. function HasntTouched(plrname)
  202. local ret = true
  203. for _, v in pairs(Touche) do
  204. if v == plrname then
  205. ret = false
  206. end
  207. end
  208. return ret
  209. end
  210. ----------------------------------------------------
  211. larm.Size = larm.Size * 5
  212. rarm.Size = rarm.Size * 5
  213. lleg.Size = lleg.Size * 5
  214. rleg.Size = rleg.Size * 5
  215. torso.Size = torso.Size * 5
  216. hed.Size = hed.Size * 5
  217. root.Size = root.Size * 5
  218. ----------------------------------------------------
  219. newWeld(torso, larm, -1.5, 0.5, 0)
  220. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  221. newWeld(torso, rarm, 1.5, 0.5, 0)
  222. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  223. newWeld(torso, hed, 0, 1.5, 0)
  224. newWeld(torso, lleg, -0.5, -1, 0)
  225. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  226. newWeld(torso, rleg, 0.5, -1, 0)
  227. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  228. newWeld(root, torso, 0, -1, 0)
  229. torso.Weld.C1 = CFrame.new(0, -1, 0)
  230. ----------------------------------------------------
  231. local Part = Instance.new("Part",hed)
  232. Part.BrickColor = BrickColor.new("White")
  233. Part.Size = Vector3.new(1,1,1)
  234. Part.CanCollide = false
  235. Part.Material = "Neon"
  236. local M = Instance.new("SpecialMesh",Part)
  237. M.MeshId = "rbxassetid://62246019"
  238. M.Scale = Vector3.new(5,5,5)
  239. local Part2 = Instance.new("Weld",Part)
  240. Part2.Part0 = hed
  241. Part2.Part1 = Part
  242. Part2.C0 = CFrame.new(-0.2,1.5,0.8)
  243. ----------------------------------------------------
  244. -----Armored titan parts nibs
  245. local Arm = Instance.new("Part",char)
  246. Arm.Size = Vector3.new(1,1,1)
  247. Arm.BrickColor = BrickColor.new("Bronze")
  248. Arm.TopSurface = 0
  249. Arm.BottomSurface = 0
  250. Arm.CanCollide = false
  251. local Arm2 = Instance.new("SpecialMesh",Arm)
  252. Arm2.MeshType = "Brick"
  253. Arm2.Scale = Vector3.new(5,8.5,0.3)
  254. local Arm3 = Instance.new("Weld",Arm)
  255. Arm3.Part0 = rarm
  256. Arm3.Part1 = Arm
  257. Arm3.C0 = CFrame.new(0,0,2.5)
  258. local ArmR = Instance.new("Part",char)
  259. ArmR.Size = Vector3.new(1,1,1)
  260. ArmR.BrickColor = BrickColor.new("Bronze")
  261. ArmR.TopSurface = 0
  262. ArmR.BottomSurface = 0
  263. ArmR.CanCollide = false
  264. local Arm2R = Instance.new("SpecialMesh",ArmR)
  265. Arm2R.MeshType = "Brick"
  266. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  267. local Arm3R = Instance.new("Weld",ArmR)
  268. Arm3R.Part0 = rarm
  269. Arm3R.Part1 = ArmR
  270. Arm3R.C0 = CFrame.new(0,0,-2.5)
  271. local ArmRS = Instance.new("Part",char)
  272. ArmRS.Size = Vector3.new(1,1,1)
  273. ArmRS.BrickColor = BrickColor.new("Bronze")
  274. ArmRS.TopSurface = 0
  275. ArmRS.BottomSurface = 0
  276. ArmRS.CanCollide = false
  277. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  278. Arm2RS.MeshType = "Brick"
  279. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  280. local Arm3RS = Instance.new("Weld",ArmRS)
  281. Arm3RS.Part0 = rarm
  282. Arm3RS.Part1 = ArmRS
  283. Arm3RS.C0 = CFrame.new(2.5,0,0)*CFrame.Angles(0,0,0)
  284. local TopRS = Instance.new("Part",char)
  285. TopRS.Size = Vector3.new(1,1,1)
  286. TopRS.BrickColor = BrickColor.new("Bronze")
  287. TopRS.TopSurface = 0
  288. TopRS.BottomSurface = 0
  289. TopRS.CanCollide = false
  290. local Top2RS = Instance.new("SpecialMesh",TopRS)
  291. Top2RS.MeshType = "Brick"
  292. Top2RS.Scale = Vector3.new(4.7,0.3,4.7)
  293. local Top3RS = Instance.new("Weld",TopRS)
  294. Top3RS.Part0 = rarm
  295. Top3RS.Part1 = TopRS
  296. Top3RS.C0 = CFrame.new(0,5,0)*CFrame.Angles(0,0,0)
  297. local BotRS = Instance.new("Part",char)
  298. BotRS.Size = Vector3.new(1,1,1)
  299. BotRS.BrickColor = BrickColor.new("Bronze")
  300. BotRS.BottomSurface = 0
  301. BotRS.TopSurface = 0
  302. BotRS.CanCollide = false
  303. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  304. Bot2RS.MeshType = "Brick"
  305. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  306. local Bot3RS = Instance.new("Weld",BotRS)
  307. Bot3RS.Part0 = rarm
  308. Bot3RS.Part1 = BotRS
  309. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  310. ----------------------------------------------------
  311.  
  312. local Arm = Instance.new("Part",char)
  313. Arm.Size = Vector3.new(1,1,1)
  314. Arm.BrickColor = BrickColor.new("Bronze")
  315. Arm.TopSurface = 0
  316. Arm.BottomSurface = 0
  317. Arm.CanCollide = false
  318. local Arm2 = Instance.new("SpecialMesh",Arm)
  319. Arm2.MeshType = "Brick"
  320. Arm2.Scale = Vector3.new(5,8.5,0.3)
  321. local Arm3 = Instance.new("Weld",Arm)
  322. Arm3.Part0 = larm
  323. Arm3.Part1 = Arm
  324. Arm3.C0 = CFrame.new(0,0,2.5)
  325. local ArmR = Instance.new("Part",char)
  326. ArmR.Size = Vector3.new(1,1,1)
  327. ArmR.BrickColor = BrickColor.new("Bronze")
  328. ArmR.TopSurface = 0
  329. ArmR.BottomSurface = 0
  330. ArmR.CanCollide = false
  331. local Arm2R = Instance.new("SpecialMesh",ArmR)
  332. Arm2R.MeshType = "Brick"
  333. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  334. local Arm3R = Instance.new("Weld",ArmR)
  335. Arm3R.Part0 = larm
  336. Arm3R.Part1 = ArmR
  337. Arm3R.C0 = CFrame.new(0,0,-2.5)
  338. local ArmRS = Instance.new("Part",char)
  339. ArmRS.Size = Vector3.new(1,1,1)
  340. ArmRS.BrickColor = BrickColor.new("Bronze")
  341. ArmRS.TopSurface = 0
  342. ArmRS.BottomSurface = 0
  343. ArmRS.CanCollide = false
  344. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  345. Arm2RS.MeshType = "Brick"
  346. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  347. local Arm3RS = Instance.new("Weld",ArmRS)
  348. Arm3RS.Part0 = larm
  349. Arm3RS.Part1 = ArmRS
  350. Arm3RS.C0 = CFrame.new(-2.5,0,0)*CFrame.Angles(0,0,0)
  351. local TopRS = Instance.new("Part",char)
  352. TopRS.Size = Vector3.new(1,1,1)
  353. TopRS.BrickColor = BrickColor.new("Bronze")
  354. TopRS.TopSurface = 0
  355. TopRS.BottomSurface = 0
  356. TopRS.CanCollide = false
  357. local Top2RS = Instance.new("SpecialMesh",TopRS)
  358. Top2RS.MeshType = "Brick"
  359. Top2RS.Scale = Vector3.new(4.7,0.3,4.7)
  360. local Top3RS = Instance.new("Weld",TopRS)
  361. Top3RS.Part0 = larm
  362. Top3RS.Part1 = TopRS
  363. Top3RS.C0 = CFrame.new(0,5,0)*CFrame.Angles(0,0,0)
  364. local BotRS = Instance.new("Part",char)
  365. BotRS.Size = Vector3.new(1,1,1)
  366. BotRS.BrickColor = BrickColor.new("Bronze")
  367. BotRS.BottomSurface = 0
  368. BotRS.TopSurface = 0
  369. BotRS.CanCollide = false
  370. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  371. Bot2RS.MeshType = "Brick"
  372. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  373. local Bot3RS = Instance.new("Weld",BotRS)
  374. Bot3RS.Part0 = larm
  375. Bot3RS.Part1 = BotRS
  376. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  377. ----------------------------------------------------
  378. local Long = Instance.new("Part",char)
  379. Long.Size = Vector3.new(1,1,1)
  380. Long.CanCollide = false
  381. Long.BrickColor = BrickColor.new("Bronze")
  382. Long.TopSurface = 0
  383. Long.BottomSurface = 0
  384. local Long2 = Instance.new("SpecialMesh",Long)
  385. Long2.MeshType = "Brick"
  386. Long2.Scale = Vector3.new(9.5,0.3,4.5)
  387. local Long3 = Instance.new("Weld",Long)
  388. Long3.Part0 = torso
  389. Long3.Part1 = Long
  390. Long3.C0 = CFrame.new(0,4.95,0)
  391. ----------------------------------------------------
  392. local Back = Instance.new("Part",char)
  393. Back.Size = Vector3.new(1,1,1)
  394. Back.CanCollide = false
  395. Back.BrickColor = BrickColor.new("Bronze")
  396. Back.TopSurface = 0
  397. Back.BottomSurface = 0
  398. local Back2 = Instance.new("SpecialMesh",Back)
  399. Back2.MeshType = "Brick"
  400. Back2.Scale = Vector3.new(9.5,9.3,0.3)
  401. local Back3 = Instance.new("Weld",Back)
  402. Back3.Part0 = torso
  403. Back3.Part1 = Back
  404. Back3.C0 = CFrame.new(0,0,2.5)
  405. ----------------------------------------------------
  406. ----------------------------------------------------
  407. local Leg = Instance.new("Part",char)
  408. Leg.Size = Vector3.new(1,1,1)
  409. Leg.BrickColor = BrickColor.new("Bronze")
  410. Leg.TopSurface = 0
  411. Leg.BottomSurface = 0
  412. Leg.CanCollide = false
  413. local Leg2 = Instance.new("SpecialMesh",Leg)
  414. Leg2.MeshType = "Brick"
  415. Leg2.Scale = Vector3.new(5,8.5,0.3)
  416. local Leg3 = Instance.new("Weld",Leg)
  417. Leg3.Part0 = rleg
  418. Leg3.Part1 = Leg
  419. Leg3.C0 = CFrame.new(0,0,2.5)
  420. local LegR = Instance.new("Part",char)
  421. LegR.Size = Vector3.new(1,1,1)
  422. LegR.BrickColor = BrickColor.new("Bronze")
  423. LegR.TopSurface = 0
  424. LegR.BottomSurface = 0
  425. LegR.CanCollide = false
  426. local Leg2R = Instance.new("SpecialMesh",LegR)
  427. Leg2R.MeshType = "Brick"
  428. Leg2R.Scale = Vector3.new(5,8.5,0.3)
  429. local Leg3R = Instance.new("Weld",LegR)
  430. Leg3R.Part0 = rleg
  431. Leg3R.Part1 = LegR
  432. Leg3R.C0 = CFrame.new(0,0,-2.5)
  433. local LegRS = Instance.new("Part",char)
  434. LegRS.Size = Vector3.new(1,1,1)
  435. LegRS.BrickColor = BrickColor.new("Bronze")
  436. LegRS.TopSurface = 0
  437. LegRS.BottomSurface = 0
  438. LegRS.CanCollide = false
  439. local Leg2RS = Instance.new("SpecialMesh",LegRS)
  440. Leg2RS.MeshType = "Brick"
  441. Leg2RS.Scale = Vector3.new(0.3,8.5,4.5)
  442. local Leg3RS = Instance.new("Weld",LegRS)
  443. Leg3RS.Part0 = rleg
  444. Leg3RS.Part1 = LegRS
  445. Leg3RS.C0 = CFrame.new(2.5,0,0)*CFrame.Angles(0,0,0)
  446. local TopRS = Instance.new("Part",char)
  447. TopRS.Size = Vector3.new(1,1,1)
  448. TopRS.BrickColor = BrickColor.new("Bronze")
  449. TopRS.TopSurface = 0
  450. TopRS.BottomSurface = 0
  451. TopRS.CanCollide = false
  452. local BotRS = Instance.new("Part",char)
  453. BotRS.Size = Vector3.new(1,1,1)
  454. BotRS.BrickColor = BrickColor.new("Bronze")
  455. BotRS.BottomSurface = 0
  456. BotRS.TopSurface = 0
  457. BotRS.CanCollide = false
  458. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  459. Bot2RS.MeshType = "Brick"
  460. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  461. local Bot3RS = Instance.new("Weld",BotRS)
  462. Bot3RS.Part0 = rleg
  463. Bot3RS.Part1 = BotRS
  464. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  465. -----------------------------------------------------------
  466. local Arm = Instance.new("Part",char)
  467. Arm.Size = Vector3.new(1,1,1)
  468. Arm.BrickColor = BrickColor.new("Bronze")
  469. Arm.TopSurface = 0
  470. Arm.BottomSurface = 0
  471. Arm.CanCollide = false
  472. local Arm2 = Instance.new("SpecialMesh",Arm)
  473. Arm2.MeshType = "Brick"
  474. Arm2.Scale = Vector3.new(5,8.5,0.3)
  475. local Arm3 = Instance.new("Weld",Arm)
  476. Arm3.Part0 = lleg
  477. Arm3.Part1 = Arm
  478. Arm3.C0 = CFrame.new(0,0,2.5)
  479. local ArmR = Instance.new("Part",char)
  480. ArmR.Size = Vector3.new(1,1,1)
  481. ArmR.BrickColor = BrickColor.new("Bronze")
  482. ArmR.TopSurface = 0
  483. ArmR.BottomSurface = 0
  484. ArmR.CanCollide = false
  485. local Arm2R = Instance.new("SpecialMesh",ArmR)
  486. Arm2R.MeshType = "Brick"
  487. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  488. local Arm3R = Instance.new("Weld",ArmR)
  489. Arm3R.Part0 = lleg
  490. Arm3R.Part1 = ArmR
  491. Arm3R.C0 = CFrame.new(0,0,-2.5)
  492. local ArmRS = Instance.new("Part",char)
  493. ArmRS.Size = Vector3.new(1,1,1)
  494. ArmRS.BrickColor = BrickColor.new("Bronze")
  495. ArmRS.TopSurface = 0
  496. ArmRS.BottomSurface = 0
  497. ArmRS.CanCollide = false
  498. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  499. Arm2RS.MeshType = "Brick"
  500. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  501. local Arm3RS = Instance.new("Weld",ArmRS)
  502. Arm3RS.Part0 = lleg
  503. Arm3RS.Part1 = ArmRS
  504. Arm3RS.C0 = CFrame.new(-2.5,0,0)*CFrame.Angles(0,0,0)
  505. local BotRS = Instance.new("Part",char)
  506. BotRS.Size = Vector3.new(1,1,1)
  507. BotRS.BrickColor = BrickColor.new("Bronze")
  508. BotRS.BottomSurface = 0
  509. BotRS.TopSurface = 0
  510. BotRS.CanCollide = false
  511. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  512. Bot2RS.MeshType = "Brick"
  513. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  514. local Bot3RS = Instance.new("Weld",BotRS)
  515. Bot3RS.Part0 = lleg
  516. Bot3RS.Part1 = BotRS
  517. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  518. ----------------------------------------------------
  519. local Pec = Instance.new("Part",char)
  520. Pec.Size = Vector3.new(1,1,1)
  521. Pec.BrickColor = BrickColor.new("Bronze")
  522. Pec.CanCollide = false
  523. Pec.TopSurface = 0
  524. Pec.BottomSurface = 0
  525. local Pec2 = Instance.new("SpecialMesh",Pec)
  526. Pec2.MeshType = "Brick"
  527. Pec2.Scale = Vector3.new(5,3,0.3)
  528. local Pec3 = Instance.new("Weld",Pec)
  529. Pec3.Part0 = torso
  530. Pec3.Part1 = Pec
  531. Pec3.C0 = CFrame.new(2,2.8,-2.8)*CFrame.Angles(0,0,0.1)
  532. local PecA = Instance.new("Part",char)
  533. PecA.Size = Vector3.new(1,1,1)
  534. PecA.BrickColor = BrickColor.new("Bronze")
  535. PecA.CanCollide = false
  536. PecA.TopSurface = 0
  537. PecA.BottomSurface = 0
  538. local Pec2A = Instance.new("SpecialMesh",PecA)
  539. Pec2A.MeshType = "Brick"
  540. Pec2A.Scale = Vector3.new(5,3,0.3)
  541. local Pec3A = Instance.new("Weld",PecA)
  542. Pec3A.Part0 = torso
  543. Pec3A.Part1 = PecA
  544. Pec3A.C0 = CFrame.new(-2,2.8,-2.8)*CFrame.Angles(0,0,-0.1)
  545. ---------------------------------------------------
  546. local Abs = Instance.new("Part",char)
  547. Abs.Size = Vector3.new(1,1,1)
  548. Abs.BrickColor = BrickColor.new("Bronze")
  549. Abs.CanCollide = false
  550. Abs.TopSurface = 0
  551. Abs.BottomSurface = 0
  552. local Abs2 = Instance.new("SpecialMesh",Abs)
  553. Abs2.MeshType = "Brick"
  554. Abs2.Scale = Vector3.new(2,2,0.3)
  555. local Abs3 = Instance.new("Weld",Abs)
  556. Abs3.Part0 = torso
  557. Abs3.Part1 = Abs
  558. Abs3.C0 = CFrame.new(1.4,0,-2.8)*CFrame.Angles(0,0,0.1)
  559. local Abs = Instance.new("Part",char)
  560. Abs.Size = Vector3.new(1,1,1)
  561. Abs.BrickColor = BrickColor.new("Bronze")
  562. Abs.CanCollide = false
  563. Abs.TopSurface = 0
  564. Abs.BottomSurface = 0
  565. local Abs2 = Instance.new("SpecialMesh",Abs)
  566. Abs2.MeshType = "Brick"
  567. Abs2.Scale = Vector3.new(2,2,0.3)
  568. local Abs3 = Instance.new("Weld",Abs)
  569. Abs3.Part0 = torso
  570. Abs3.Part1 = Abs
  571. Abs3.C0 = CFrame.new(-1.4,0,-2.8)*CFrame.Angles(0,0,-0.1)
  572.  
  573. local Abs = Instance.new("Part",char)
  574. Abs.Size = Vector3.new(1,1,1)
  575. Abs.BrickColor = BrickColor.new("Bronze")
  576. Abs.CanCollide = false
  577. Abs.TopSurface = 0
  578. Abs.BottomSurface = 0
  579. local Abs2 = Instance.new("SpecialMesh",Abs)
  580. Abs2.MeshType = "Brick"
  581. Abs2.Scale = Vector3.new(2,2,0.3)
  582. local Abs3 = Instance.new("Weld",Abs)
  583. Abs3.Part0 = torso
  584. Abs3.Part1 = Abs
  585. Abs3.C0 = CFrame.new(1.4,-2.1,-2.8)*CFrame.Angles(0,0,0.1)
  586. local Abs = Instance.new("Part",char)
  587. Abs.Size = Vector3.new(1,1,1)
  588. Abs.BrickColor = BrickColor.new("Bronze")
  589. Abs.CanCollide = false
  590. Abs.TopSurface = 0
  591. Abs.BottomSurface = 0
  592. local Abs2 = Instance.new("SpecialMesh",Abs)
  593. Abs2.MeshType = "Brick"
  594. Abs2.Scale = Vector3.new(2,2,0.3)
  595. local Abs3 = Instance.new("Weld",Abs)
  596. Abs3.Part0 = torso
  597. Abs3.Part1 = Abs
  598. Abs3.C0 = CFrame.new(-1.4,-2.1,-2.8)*CFrame.Angles(0,0,-0.1)
  599.  
  600. local Abs = Instance.new("Part",char)
  601. Abs.Size = Vector3.new(1,1,1)
  602. Abs.BrickColor = BrickColor.new("Bronze")
  603. Abs.CanCollide = false
  604. Abs.TopSurface = 0
  605. Abs.BottomSurface = 0
  606. local Abs2 = Instance.new("SpecialMesh",Abs)
  607. Abs2.MeshType = "Brick"
  608. Abs2.Scale = Vector3.new(2,2,0.3)
  609. local Abs3 = Instance.new("Weld",Abs)
  610. Abs3.Part0 = torso
  611. Abs3.Part1 = Abs
  612. Abs3.C0 = CFrame.new(1.4,-4.1,-2.8)*CFrame.Angles(0,0,0.1)
  613. local Abs = Instance.new("Part",char)
  614. Abs.Size = Vector3.new(1,1,1)
  615. Abs.BrickColor = BrickColor.new("Bronze")
  616. Abs.CanCollide = false
  617. Abs.TopSurface = 0
  618. Abs.BottomSurface = 0
  619. local Abs2 = Instance.new("SpecialMesh",Abs)
  620. Abs2.MeshType = "Brick"
  621. Abs2.Scale = Vector3.new(2,2,0.3)
  622. local Abs3 = Instance.new("Weld",Abs)
  623. Abs3.Part0 = torso
  624. Abs3.Part1 = Abs
  625. Abs3.C0 = CFrame.new(-1.4,-4.1,-2.8)*CFrame.Angles(0,0,-0.1)
  626. -----------------------------------------------------
  627. local Head = Instance.new("Part",char)
  628. Head.Size = Vector3.new(1,1,1)
  629. Head.BrickColor = BrickColor.new("Bronze")
  630. Head.CanCollide = false
  631. Head.TopSurface = 0
  632. Head.BottomSurface = 0
  633. local Head2 = Instance.new("SpecialMesh",Head)
  634. Head2.MeshType = "Head"
  635. Head2.Scale = Vector3.new(11.5,6.5,6.5)
  636. local Head3 = Instance.new("Weld",Head)
  637. Head3.Part0 = hed
  638. Head3.Part1 = Head
  639. Head3.C0 = CFrame.new(0,0,0)
  640. -----------------------------------------------------
  641. local Eye2 = Instance.new("Part",char)
  642. Eye2.Size = Vector3.new(1,1,1)
  643. Eye2.BrickColor = BrickColor.new("Really black")
  644. Eye2.CanCollide = false
  645. Eye2.TopSurface = 0
  646. Eye2.BottomSurface = 0
  647. local Eye22 = Instance.new("SpecialMesh",Eye2)
  648. Eye22.MeshType = "Sphere"
  649. Eye22.Scale = Vector3.new(1.2,0.6,0.1)
  650. local Eye32 = Instance.new("Weld",Eye2)
  651. Eye32.Part0 = hed
  652. Eye32.Part1 = Eye2
  653. Eye32.C0 = CFrame.new(1.3,0.5,-3)*CFrame.Angles(0,0,0.3)
  654. local Eye = Instance.new("Part",char)
  655. Eye.Size = Vector3.new(1,1,1)
  656. Eye.BrickColor = BrickColor.new("Really black")
  657. Eye.CanCollide = false
  658. Eye.TopSurface = 0
  659. Eye.BottomSurface = 0
  660. local Eye212 = Instance.new("SpecialMesh",Eye)
  661. Eye212.MeshType = "Sphere"
  662. Eye212.Scale = Vector3.new(1.2,0.6,0.1)
  663. local Eye3 = Instance.new("Weld",Eye)
  664. Eye3.Part0 = hed
  665. Eye3.Part1 = Eye
  666. Eye3.C0 = CFrame.new(-1.3,0.5,-3)*CFrame.Angles(0,0,-0.3)
  667.  
  668. local Glow = Instance.new("Part",char)
  669. Glow.Size = Vector3.new(1,1,1)
  670. Glow.BrickColor = BrickColor.new("Bronze")
  671. Glow.CanCollide = false
  672. Glow.TopSurface = 0
  673. Glow.Material = "Neon"
  674. Glow.BottomSurface = 0
  675. local Glow2 = Instance.new("SpecialMesh",Glow)
  676. Glow2.MeshType = "Sphere"
  677. Glow2.Scale = Vector3.new(0.5,0.5,0.5)
  678. local Glow3 = Instance.new("Weld",Glow)
  679. Glow3.Part0 = Eye
  680. Glow3.Part1 = Glow
  681. Glow3.C0 = CFrame.new(0,0,-0.2)*CFrame.Angles(0,0,0)
  682.  
  683. local Glow = Instance.new("Part",char)
  684. Glow.Size = Vector3.new(1,1,1)
  685. Glow.BrickColor = BrickColor.new("Bronze")
  686. Glow.CanCollide = false
  687. Glow.TopSurface = 0
  688. Glow.Material = "Neon"
  689. Glow.BottomSurface = 0
  690. local Glow2 = Instance.new("SpecialMesh",Glow)
  691. Glow2.MeshType = "Sphere"
  692. Glow2.Scale = Vector3.new(0.5,0.5,0.5)
  693. local Glow3 = Instance.new("Weld",Glow)
  694. Glow3.Part0 = Eye2
  695. Glow3.Part1 = Glow
  696. Glow3.C0 = CFrame.new(0,0,-0.2)*CFrame.Angles(0,0,0)
  697. -----------------------------------------------------
  698.  
  699. function weld5(part0, part1, c0, c1)
  700. weeld=Instance.new("Weld", part0)
  701. weeld.Part0=part0
  702. weeld.Part1=part1
  703. weeld.C0=c0
  704. weeld.C1=c1
  705. return weeld
  706. end
  707. ----------------------------------------------------
  708. function newRay(start,face,range,wat)
  709. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  710. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  711. return rey,hit,pos
  712. end
  713. ----------------------------------------------------
  714. mod5 = Instance.new("Model",char)
  715.  
  716. function FindNearestTorso(Position,Distance,SinglePlayer)
  717. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  718. local List = {}
  719. for i,v in pairs(workspace:GetChildren())do
  720. if v:IsA("Model")then
  721. if v:findFirstChild("Torso")then
  722. if v ~= char then
  723. if(v.Torso.Position -Position).magnitude <= Distance then
  724. table.insert(List,v)
  725. end
  726. end
  727. end
  728. end
  729. end
  730. return List
  731. end
  732.  
  733. function Landing()
  734. part=Instance.new('Part',mod5)
  735. part.Anchored=true
  736. part.CanCollide=false
  737. part.FormFactor='Custom'
  738. part.Size=Vector3.new(.2,.2,.2)
  739. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  740. part.Transparency=.7
  741. part.BrickColor=BrickColor.new('Really black')
  742. mesh=Instance.new('SpecialMesh',part)
  743. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  744. mesh.Scale=Vector3.new(10,5,10)
  745.  
  746. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  747. if v:FindFirstChild('Humanoid') then
  748. v.Humanoid:TakeDamage(math.random(20,30))
  749. v.Humanoid.PlatformStand = true
  750. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  751. end
  752. end
  753.  
  754. coroutine.resume(coroutine.create(function()
  755. for i=0,3.8,0.05 do
  756. wait()
  757. part.CFrame=part.CFrame
  758. part.Transparency=i
  759. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  760. end
  761. part.Parent = nil
  762. end))
  763. end
  764. ----------------------------------------------------
  765. mod4 = Instance.new("Model",char)
  766.  
  767. ptez = {0.7, 0.8, 0.9, 1}
  768.  
  769. function FindNearestTorso(Position,Distance,SinglePlayer)
  770. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  771. local List = {}
  772. for i,v in pairs(workspace:GetChildren())do
  773. if v:IsA("Model")then
  774. if v:findFirstChild("Torso")then
  775. if v ~= char then
  776. if(v.Torso.Position -Position).magnitude <= Distance then
  777. table.insert(List,v)
  778. end
  779. end
  780. end
  781. end
  782. end
  783. return List
  784. end
  785.  
  786. ----------------------------------------------------
  787.  
  788. local acos = math.acos
  789. local sqrt = math.sqrt
  790. local Vec3 = Vector3.new
  791. local fromAxisAngle = CFrame.fromAxisAngle
  792.  
  793. local function toAxisAngle(CFr)
  794. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  795. local Angle = math.acos((R00+R11+R22-1)/2)
  796. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  797. A = A == 0 and 0.00001 or A
  798. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  799. B = B == 0 and 0.00001 or B
  800. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  801. C = C == 0 and 0.00001 or C
  802. local x = (R21-R12)/sqrt(A)
  803. local y = (R02-R20)/sqrt(B)
  804. local z = (R10-R01)/sqrt(C)
  805. return Vec3(x,y,z),Angle
  806. end
  807.  
  808. function ApplyTrig(Num,Func)
  809. local Min,Max = Func(0),Func(1)
  810. local i = Func(Num)
  811. return (i-Min)/(Max-Min)
  812. --[[if Func == "sin" then
  813. return (math.sin((1-Num)*math.pi)+1)/2
  814. elseif Func == "cos" then
  815. return (math.cos((1-Num)*math.pi)+1)/2
  816. end]]
  817. end
  818.  
  819. function LerpCFrame(CFrame1,CFrame2,Num)
  820. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  821. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  822. end
  823. mouse.KeyDown:connect(function(key)
  824. if key == "b" then
  825. if Debounces.CanAttack == true then
  826. Debounces.CanAttack = false
  827. Debounces.on = true
  828. Debounces.NoIdl = true
  829. for i = 1,20 do
  830. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(9,4,1) * CFrame.Angles(0.3,-0.5,1.55),.3)
  831. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-9,4,1) * CFrame.Angles(0.3,0.5,-1.55),.3)
  832. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0.4,0,0),.3)
  833. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.3,0,0),.3)
  834. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,1) *CFrame.Angles(-0.3,0,-0.1),.3)
  835. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,1) * CFrame.Angles(-0.3,0,0.1),.3)
  836. if Debounces.on == false then break end
  837. wait()
  838. end
  839. v = Instance.new("Sound")
  840. v.SoundId = "rbxassetid://181384451"
  841. v.Parent = torso
  842. v.Looped = false
  843. v.Pitch = 0.8
  844. v.Volume = math.huge
  845. wait(.01)
  846. v:Play()
  847. coroutine.resume(coroutine.create(function()
  848. for i = 1,80 do
  849. local H = Instance.new("Part",torso)
  850. H.Size = Vector3.new(1,1,1)
  851. H.BrickColor = BrickColor.new("White")
  852. H.CanCollide = false
  853. H.Anchored = true
  854. H.CFrame = torso.CFrame*CFrame.new(0,-13,0)*CFrame.Angles(1.3,0,0)
  855. local H2 = Instance.new("SpecialMesh",H)
  856. H2.MeshId = "rbxassetid://3270017"
  857. coroutine.resume(coroutine.create(function()
  858. for i = 1,200 do
  859. H2.Scale = H2.Scale + Vector3.new(5,5,5)
  860. H.Transparency = H.Transparency + 0.05
  861. wait(0.05)
  862. end
  863. H:remove()
  864. end))
  865. wait(0.005)
  866. end
  867. if Debounces.CanAttack == false then
  868. Debounces.CanAttack = true
  869. Debounces.on = false
  870. Debounces.NoIdl = false
  871. end
  872. end))
  873. end
  874. end
  875. end)
  876. mouse.KeyDown:connect(function(key)
  877. if key == "z" then
  878. if Debounces.CanAttack == true then
  879. Debounces.CanAttack = false
  880. Debounces.on = true
  881. Debounces.NoIdl = true
  882. for i = 1,20 do
  883. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  884. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  885. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  886. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -6, 0) * CFrame.Angles(-1.5,0,0),.3)
  887. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -7.6,-2) *CFrame.Angles(1.55,0,0),.3)
  888. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,-2) * CFrame.Angles(1.55,0,0),.3)
  889. if Debounces.on == false then break end
  890. wait()
  891. end
  892. local Rock = Instance.new("Part",char)
  893. Rock.Size = Vector3.new(1,1,1)
  894. local Rock22 = Instance.new("SpecialMesh",Rock)
  895. Rock22.MeshId = "rbxassetid://433651599"
  896. Rock22.Scale = Vector3.new(0.5,0.5,0.5)
  897. local Rock2 = Instance.new("Weld",Rock)
  898. Rock2.Part0 = hed
  899. Rock2.Part1 = Rock
  900. Rock2.C0 = CFrame.new(0,40,0)*CFrame.Angles(0,-1.55,0)
  901. local PPA = Instance.new("Part",Rock)
  902. PPA.Size = Vector3.new(30,30,30)
  903. PPA.CanCollide = false
  904. local PPA2 = Instance.new("Weld",PPA)
  905. PPA2.Part0 = Rock
  906. PPA2.Part1 = PPA
  907. PPA2.C0 = CFrame.new(0,0,0)
  908. PPA.Touched:connect(function(hit)
  909. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  910. if not FA then FA = true
  911. hit.Parent.Humanoid.PlatformStand = true
  912. hit.Parent.Humanoid:TakeDamage(30)
  913. local Fly = Instance.new("BodyVelocity",hit.Parent.Torso)
  914. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  915. Fly.velocity = mouse.hit.lookVector*560
  916. wait(0.1)
  917. Fly:remove()
  918. wait(3)
  919. FA = false
  920. end
  921. end
  922. end)
  923. wait(0.5)
  924. for i = 1,20 do
  925. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  926. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  927. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  928. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0,0,0),.3)
  929. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  930. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,0) * CFrame.Angles(0,0,0),.3)
  931. if Debounces.on == false then break end
  932. wait()
  933. end
  934. Rock2:remove()
  935. local Fly = Instance.new("BodyVelocity",Rock)
  936. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  937. Fly.velocity = mouse.hit.lookVector*200
  938. for i = 1,20 do
  939. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  940. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  941. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.3,0,0),.3)
  942. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.3,0,0),.3)
  943. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  944. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,-2) * CFrame.Angles(0.5,0,0),.3)
  945. if Debounces.on == false then break end
  946. wait()
  947. end
  948. if Debounces.CanAttack == false then
  949. Debounces.CanAttack = true
  950. Debounces.on = false
  951. Debounces.NoIdl = false
  952. end
  953. wait(2)
  954. Fly:remove()
  955. local SFXZ = Instance.new("Sound",Rock)
  956. SFXZ.SoundId = "rbxassetid://134854740"
  957. SFXZ.Volume = math.huge
  958. SFXZ.Pitch = 1
  959. SFXZ.Looped = false
  960. wait(0.01)
  961. SFXZ:Play()
  962. wait(3)
  963. Rock:remove()
  964. end
  965. end
  966. end)
  967. mouse.KeyDown:connect(function(key)
  968. if key == "e" then
  969. if Debounces.CanAttack == true then
  970. Debounces.CanAttack = false
  971. Debounces.on = true
  972. Debounces.NoIdl = true
  973. for i = 1,20 do
  974. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
  975. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  976. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  977. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  978. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  979. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  980. if Debounces.on == false then break end
  981. wait()
  982. end
  983. local HitBox = Instance.new("Part",char)
  984. HitBox.Size = Vector3.new(5,5,5)
  985. HitBox.CanCollide = false
  986. HitBox.Transparency = math.huge
  987. local HitBox2 = Instance.new("Weld",HitBox)
  988. HitBox2.Part0 = rarm
  989. HitBox2.Part1 = HitBox
  990. HitBox2.C0 = CFrame.new(0,-4.5,0)
  991. HitBox.Touched:connect(function(hit)
  992. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  993. if not DD then DD = true
  994. HitBox:remove()
  995. hit.Parent.Humanoid.PlatformStand = true
  996. local We = Instance.new("Weld",hit.Parent.Torso)
  997. We.Part0 = rarm
  998. We.Part1 = hit.Parent.Torso
  999. We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
  1000. wait(1)
  1001. for i = 1,20 do
  1002. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
  1003. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
  1004. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
  1005. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1006. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1007. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1008. if Debounces.on == false then break end
  1009. wait()
  1010. end
  1011. hit.Parent.Humanoid:TakeDamage(20)
  1012. for i = 1,20 do
  1013. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
  1014. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
  1015. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  1016. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1017. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1018. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1019. if Debounces.on == false then break end
  1020. wait()
  1021. end
  1022. for i = 1,20 do
  1023. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
  1024. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
  1025. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  1026. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1027. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1028. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1029. if Debounces.on == false then break end
  1030. wait()
  1031. end
  1032. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  1033. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  1034. partasdeff.LightEmission = .1
  1035. partasdeff.Size = NumberSequence.new(0.2)
  1036. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  1037. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1038. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1039. partasdeff.Transparency = bbb
  1040. partasdeff.Size = aaa
  1041. partasdeff.ZOffset = .9
  1042. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  1043. partasdeff.LockedToPart = false
  1044. partasdeff.EmissionDirection = "Top"
  1045. partasdeff.Lifetime = NumberRange.new(1, 2)
  1046. partasdeff.Rate = 1000
  1047. partasdeff.Rotation = NumberRange.new(-100, 100)
  1048. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  1049. partasdeff.Speed = NumberRange.new(10)
  1050. partasdeff.VelocitySpread = 300
  1051. partasdeff.Enabled = true
  1052. wait(1.5)
  1053. hit.Parent:BreakJoints()
  1054. We:remove()
  1055. partasdeff.Enabled = false
  1056. if Debounces.CanAttack == false then
  1057. Debounces.CanAttack = true
  1058. Debounces.on = false
  1059. Debounces.NoIdl = false
  1060. end
  1061. wait(3)
  1062. DD = false
  1063. end
  1064. end
  1065. end)
  1066. wait(5)
  1067. if Debounces.CanAttack == false then
  1068. Debounces.CanAttack = true
  1069. Debounces.on = false
  1070. Debounces.NoIdl = false
  1071. end
  1072. end
  1073. end
  1074. end)
  1075. mouse.KeyDown:connect(function(key)
  1076. if key == "r" then
  1077. if Debounces.CanAttack == true then
  1078. Debounces.CanAttack = false
  1079. Debounces.on = true
  1080. Debounces.NoIdl = true
  1081. for i = 1,20 do
  1082. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  1083. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1084. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1085. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
  1086. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
  1087. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
  1088. if Debounces.on == false then break end
  1089. wait()
  1090. end
  1091. local HitBox = Instance.new("Part",char)
  1092. HitBox.Size = Vector3.new(5,5,5)
  1093. HitBox.CanCollide = false
  1094. HitBox.Transparency = math.huge
  1095. local HitBox2 = Instance.new("Weld",HitBox)
  1096. HitBox2.Part0 = rleg
  1097. HitBox2.Part1 = HitBox
  1098. HitBox2.C0 = CFrame.new(0,-1.1,0)
  1099. local SFXZ = Instance.new("Sound",torso)
  1100. SFXZ.SoundId = "rbxassetid://169259383"
  1101. SFXZ.Volume = math.huge
  1102. SFXZ.Pitch = 0.5
  1103. SFXZ.Looped = false
  1104. wait(0.01)
  1105. SFXZ:Play()
  1106. HitBox.Touched:connect(function(hit)
  1107. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  1108. local SFXZ = Instance.new("Sound",torso)
  1109. SFXZ.SoundId = "rbxassetid://743886825"
  1110. SFXZ.Volume = 1
  1111. SFXZ.Pitch = 0.5
  1112. SFXZ.Looped = false
  1113. SFXZ:Play()
  1114. HitBox:remove()
  1115. hit.Parent.Humanoid:TakeDamage(44)
  1116. hit.Parent.Humanoid.PlatformStand = true
  1117. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  1118. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1119. Fl.velocity = rleg.CFrame.lookVector*350
  1120. wait(0.1)
  1121. Fl:remove()
  1122. end
  1123. end)
  1124. for i = 1,20 do
  1125. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1126. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  1127. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1128. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
  1129. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
  1130. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
  1131. if Debounces.on == false then break end
  1132. wait()
  1133. end
  1134. if Debounces.CanAttack == false then
  1135. Debounces.CanAttack = true
  1136. Debounces.on = false
  1137. Debounces.NoIdl = false
  1138. HitBox:remove()
  1139. end
  1140. end
  1141. end
  1142. end)
  1143. ----------------------------------------------------
  1144. mouse.KeyDown:connect(function(key)
  1145. if string.byte(key) == 48 then
  1146. char.Humanoid.WalkSpeed = 34
  1147. end
  1148. end)
  1149. mouse.KeyUp:connect(function(key)
  1150. if string.byte(key) == 48 then
  1151. char.Humanoid.WalkSpeed = 5
  1152. end
  1153. end)
  1154. ----------------------------------------------------
  1155. local animpose = "Idle"
  1156. local lastanimpose = "Idle"
  1157. local sine = 0
  1158. local change = 1
  1159. local val = 0
  1160. local ffing = false
  1161. ----------------------------------------------------
  1162. local x = Instance.new("Sound", char.Torso)
  1163. x.SoundId = "http://www.roblox.com/asset/?id=273962540"
  1164. x.Looped = true
  1165. x.Volume = 1
  1166. x.Pitch = 1
  1167. local footsteps = false
  1168. -------------------------------
  1169. game:GetService("RunService").RenderStepped:connect(function()
  1170. rarm.BrickColor = ASD
  1171. larm.BrickColor = ASD
  1172. rleg.BrickColor = ASD
  1173. lleg.BrickColor = ASD
  1174. hed.BrickColor = ASD
  1175. torso.BrickColor = ASD
  1176. --[[if char.Humanoid.Jump == true then
  1177. jump = true
  1178. else
  1179. jump = false
  1180. end]]
  1181. char.Humanoid.FreeFalling:connect(function(f)
  1182. if f then
  1183. ffing = true
  1184. else
  1185. ffing = false
  1186. end
  1187. end)
  1188. sine = sine + change
  1189. if jumpn == true then
  1190. animpose = "Jumping"
  1191. elseif ffing == true then
  1192. animpose = "Freefalling"
  1193. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1194. animpose = "Idle"
  1195. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1196. animpose = "Walking"
  1197. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1198. animpose = "Running"
  1199. end
  1200. if animpose ~= lastanimpose then
  1201. sine = 0
  1202. if Debounces.NoIdl == false then
  1203. if animpose == "Idle" then
  1204. for i = 1, 2 do
  1205. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
  1206. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  1207. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  1208. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1209. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  1210. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  1211. end
  1212. elseif animpose == "Walking" then
  1213. for i = 1, 2 do
  1214. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
  1215. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  1216. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  1217. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  1218. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1219. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1220. end
  1221. elseif animpose == "Running" then
  1222. for i = 1, 2 do
  1223. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
  1224. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  1225. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  1226. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  1227. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  1228. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  1229. end
  1230. wait()
  1231. end
  1232. else
  1233. end
  1234. end
  1235. lastanimpose = animpose
  1236. if Debounces.NoIdl == false then
  1237. if animpose == "Idle" then
  1238. if stanceToggle == "Normal" then
  1239. change = 0.5
  1240. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.new(0,0-.3*math.sin(tick()*1),0)*CFrame.Angles(0,0,0)*CFrame.Angles(0,0,0.3),.2)
  1241. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.new(0,0-.3*math.sin(tick()*1),0)*CFrame.Angles(0,0,0)*CFrame.Angles(0,0,-0.3),.2)
  1242. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(0-.1*math.sin(tick()*1),0,0)*CFrame.Angles(-0.3,0,0), 0.2)
  1243. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1244. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  1245. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  1246. elseif stanceToggle == "Sitting" then
  1247. 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)
  1248. 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)
  1249. 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)
  1250. 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)
  1251. 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)
  1252. 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)
  1253. end
  1254. elseif animpose == "Walking" then
  1255. if stanceToggle == "Normal" then
  1256. change = 1
  1257. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,0.8,0)*CFrame.Angles(0-.2*math.sin(tick()*2.5),0,0.2),.3)
  1258. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,0.8,0)*CFrame.Angles(0+.2*math.sin(tick()*2.5),0,-0.2),.3)
  1259. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
  1260. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-1.8,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
  1261. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4)
  1262. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4)
  1263. end
  1264. elseif animpose == "Running" then
  1265. change = 1
  1266. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.7,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
  1267. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.7,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
  1268. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  1269. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  1270. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.80*math.cos(sine/6)/2.4, -.15 + math.sin(sine/6)/1.5) * CFrame.Angles(math.rad(-10) + -math.sin(sine/6)/1.7, 0, 0), .4)
  1271. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.80*math.cos(sine/6)/2.4, -.15 + -math.sin(sine/6)/1.5) * CFrame.Angles(math.rad(-10) + math.sin(sine/6)/1.7, 0, 0), .4)
  1272. end
  1273. end
  1274. if animpose == "Walking" then
  1275. if footsteps == false then
  1276. x:Play()
  1277. footsteps = true
  1278. end
  1279. x.Pitch = 1.1
  1280. elseif animpose == "Idle" then
  1281. x:Stop()
  1282. footsteps = false
  1283. elseif animpose == "Running" then
  1284. x.Pitch = 1.2
  1285. if footsteps == false then
  1286. x:Play()
  1287. footsteps = true
  1288. end
  1289. end
  1290. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement