Advertisement
Guest User

Untitled

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