NiceBBMBThai

Titan

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