Hugo1234cool

Untitled

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