Advertisement
Guest User

Untitled

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