Wweroblox12121212

Untitled

May 9th, 2017
1,530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.60 KB | None | 0 0
  1. local Player, Character, Mouse = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse();
  2. local Torso = Character:FindFirstChild("Torso")
  3. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  4. local Humanoid = Character:FindFirstChild("Humanoid")
  5. local Head = Character:FindFirstChild("Head")
  6. local Right_Arm = Character:FindFirstChild("Right Arm")
  7. local Left_Arm = Character:FindFirstChild("Left Arm")
  8. local Right_Leg = Character:FindFirstChild("Right Leg")
  9. local Left_Leg = Character:FindFirstChild("Left Leg")
  10. local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
  11. local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
  12. local Right_Hip = Torso:FindFirstChild("Right Hip")
  13. local Left_Hip = Torso:FindFirstChild("Left Hip")
  14. local Neck = Torso:FindFirstChild("Neck")
  15. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  16. local rootJoint = rootPart:FindFirstChild("RootJoint")
  17. local CurrentIdle = "Idling1"
  18. local Degree = 0.0175438596491228
  19. local Camera = workspace.CurrentCamera
  20. local canremove = false
  21. local debounce = false
  22. local Size = 1
  23. dabbing = false
  24. _G.SongName = math.random(1,9025232)
  25. sin = math.sin
  26. Right_Leg.FormFactor = "Custom";
  27. Left_Leg.FormFactor = "Custom";
  28. rootPart.Archivable = true;
  29. rootJoint.Archivable = true;
  30. c_new = CFrame.new;
  31. c_angles = CFrame.Angles;
  32. i_new = Instance.new
  33. Humanoid:ClearAllChildren();
  34. local isAttacking = false
  35. local isSprinting = false
  36. local Animations = false
  37. local Angle = 0
  38. local Axis = 0
  39. local angleSpeed = 1
  40. local axisSpeed = angleSpeed
  41. local currentAnim
  42. local levetatingheight = 3
  43. local WalkType = "Ground"
  44. local holding = false
  45. isFalling = false
  46. local val2 = 1
  47. local val3 = 1
  48. local Sitting = false
  49. Jp = Humanoid.JumpPower*Size
  50. ws = 16*Size/2
  51. val = 1
  52. local deb = false
  53. drink = false
  54. local deb2 = false
  55. local deb3 = false
  56. local deb5 = false
  57. local deb6 = false
  58. local Punch2 = false
  59. local Punch1 = false
  60. local Raising = false
  61. local Stomping = false
  62. local Grabbing = false
  63. crawl = false
  64. local valz = false
  65. Character.Health:Destroy()
  66. local Shielding = false
  67. local Clap = false
  68. local combo = 1
  69. local Charge1 = false
  70. local Charge2 = false
  71. Mouse.KeyDown:connect(function(key)
  72. if key:byte() == 48 then
  73. isSprinting = true
  74. end
  75.  
  76. Mouse.KeyUp:connect(function(key2)
  77. if key:byte() == 48 then
  78. isSprinting = false
  79. end
  80. end)
  81. end)
  82.  
  83.  
  84. Mouse.KeyDown:connect(function(key)
  85. if key == "f" and Animations == false then
  86. Charge = true
  87. Animations = true
  88. wait(1)
  89. Charge = false
  90. Animations = false
  91. end
  92. end)
  93.  
  94. local z = -8
  95. local Finger = false
  96. local Finger2 = false
  97. Mouse.Button1Down:connect(function()
  98. if combo == 1 and Animations == false then
  99. Finger = true
  100. Animations = true
  101. local audio = Instance.new("Sound", Left_Arm)
  102. audio.SoundId = "rbxassetid://242076158"
  103. audio.Volume = 4
  104. audio:Play()
  105. wait(0.4)
  106. local ray = Ray.new(Left_Arm.CFrame.p, (Mouse.Hit.p - Left_Arm.CFrame.p).unit * 300)
  107. local part, position = workspace:FindPartOnRay(ray, Character, false, true)
  108.  
  109. local beam = Instance.new("Part", Character)
  110. --beam.BrickColor = BrickColor.new("Bright red")
  111. beam.FormFactor = "Custom"
  112. beam.Material = "Neon"
  113. --beam.Transparency = 0.25
  114. beam.Anchored = true
  115. beam.Locked = true
  116. beam.CanCollide = false
  117. game:GetService("Debris"):AddItem(beam, 0.6)
  118.  
  119. local distance = (Left_Arm.CFrame.p - position).magnitude
  120. beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
  121. beam.CFrame = CFrame.new(Left_Arm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
  122. spawn(function()
  123. for i = 0,1,0.08 do
  124. beam.Transparency = i*2
  125. beam.Size = beam.Size+Vector3.new(1,1,0)*Size
  126. wait()
  127. end
  128. end)
  129. spawn(function()
  130. local p = Instance.new("Part", Character)
  131. local audio2 = Instance.new("Sound", p)
  132. audio2.SoundId = "rbxassetid://287142895"
  133. audio2.Volume = 4
  134. audio2:Play()
  135. p.TopSurface = 0
  136. p.BottomSurface = 0
  137. p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
  138. p.Anchored = true
  139. p.Material = "Neon"
  140. p.CanCollide = false
  141. game.Debris:AddItem(p, 0.6)
  142. for i,v in pairs(game.Workspace:GetChildren()) do
  143. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  144. if torso and (torso.Position - p.Position).magnitude <= 15*Size/2 and torso.Parent.Name ~= Character.Name then
  145. torso.Parent.Humanoid:TakeDamage(math.random(10,30)*Size)
  146. -- torso.Parent.Humanoid.PlatformStand = true
  147. end
  148. end
  149. for i = 0,1,0.05 do
  150. p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
  151. p.Transparency = i*2
  152. wait()
  153. end
  154. end)
  155.  
  156. Finger = false
  157. Animations = false
  158. combo = combo+1
  159. elseif combo == 2 and Animations == false then
  160. Finger2 = true
  161. Animations = true
  162. local audio = Instance.new("Sound", Right_Arm)
  163. audio.SoundId = "rbxassetid://242076158"
  164. audio.Volume = 4
  165. audio:Play()
  166. wait(0.4)
  167. local ray = Ray.new(Right_Arm.CFrame.p, (Mouse.Hit.p - Right_Arm.CFrame.p).unit * 300)
  168. local part, position = workspace:FindPartOnRay(ray, Character, false, true)
  169.  
  170. local beam = Instance.new("Part", Character)
  171. --beam.BrickColor = BrickColor.new("Bright red")
  172. beam.FormFactor = "Custom"
  173. beam.Material = "Neon"
  174. --beam.Transparency = 0.25
  175. beam.Anchored = true
  176. beam.Locked = true
  177. beam.CanCollide = false
  178. game:GetService("Debris"):AddItem(beam, 0.6)
  179. local distance = (Right_Arm.CFrame.p - position).magnitude
  180. beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
  181. beam.CFrame = CFrame.new(Right_Arm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
  182. spawn(function()
  183. for i = 0,1,0.08 do
  184. beam.Transparency = i*2
  185. beam.Size = beam.Size+Vector3.new(1,1,0)*Size
  186. wait()
  187. end
  188. end)
  189. spawn(function()
  190. local p = Instance.new("Part", Character)
  191. local audio2 = Instance.new("Sound", p)
  192. audio2.SoundId = "rbxassetid://287142895"
  193. audio2.Volume = 4
  194. audio2:Play()
  195. p.TopSurface = 0
  196. p.BottomSurface = 0
  197. p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
  198. p.Anchored = true
  199. p.Material = "Neon"
  200. p.CanCollide = false
  201. game.Debris:AddItem(p, 0.6)
  202.  
  203. for i,v in pairs(game.Workspace:GetChildren()) do
  204. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  205. if torso and (torso.Position - p.Position).magnitude <= 15*Size and torso.Parent.Name ~= Character.Name then
  206. torso.Parent.Humanoid:TakeDamage(math.random(10,20)*Size)
  207. -- torso.Parent.Humanoid.PlatformStand = true
  208. end
  209. end
  210. for i = 0,1,0.05 do
  211. p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
  212. p.Transparency = i*2
  213. wait()
  214. end
  215. end)
  216.  
  217. Finger2 = false
  218. Animations = false
  219. combo = combo+1
  220. elseif combo == 3 and Animations == false then
  221. Finger = true
  222. Animations = true
  223. local audio = Instance.new("Sound", Left_Arm)
  224. audio.SoundId = "rbxassetid://242076158"
  225. audio.Volume = 4
  226. audio:Play()
  227. wait(0.4)
  228. for i = 1,3 do
  229.  
  230. z = z+(i*2.6)
  231. b = z*Size
  232. local ray = Ray.new(Head.CFrame.p, (Mouse.Hit.p - Head.CFrame.p+Vector3.new(b,2,0)).unit * 300)
  233. local part, position = workspace:FindPartOnRay(ray, Character, false, true)
  234.  
  235. local beam = Instance.new("Part", Character)
  236. --beam.BrickColor = BrickColor.new("Bright red")
  237. beam.FormFactor = "Custom"
  238. beam.Material = "Neon"
  239. --beam.Transparency = 0.25
  240. beam.Anchored = true
  241. beam.Locked = true
  242. beam.CanCollide = false
  243. game:GetService("Debris"):AddItem(beam, 0.6)
  244.  
  245. local distance = (Head.CFrame.p - position).magnitude
  246. beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
  247. beam.CFrame = CFrame.new(Head.CFrame.p+Vector3.new(b,2,0), position) * CFrame.new(Head.CFrame.p+Vector3.new(b,2,0), 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
  248. spawn(function()
  249. for i = 0,1,0.08 do
  250. beam.Transparency = i*2
  251. beam.Size = beam.Size+Vector3.new(1,1,0)*Size
  252. wait()
  253. end
  254. end)
  255. spawn(function()
  256. local p = Instance.new("Part", Character)
  257. local audio2 = Instance.new("Sound", p)
  258. audio2.SoundId = "rbxassetid://287142895"
  259. audio2.Volume = 4
  260. audio2:Play()
  261. p.TopSurface = 0
  262. p.BottomSurface = 0
  263. p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
  264. p.Anchored = true
  265. p.Material = "Neon"
  266. p.CanCollide = false
  267. game.Debris:AddItem(p, 0.6)
  268.  
  269. for i,v in pairs(game.Workspace:GetChildren()) do
  270. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  271. if torso and (torso.Position - p.Position).magnitude <= 15*Size/2 and torso.Parent.Name ~= Character.Name then
  272. torso.Parent.Humanoid:TakeDamage(math.random(10,20)*Size)
  273. -- torso.Parent.Humanoid.PlatformStand = true
  274. end
  275. end
  276. for i = 0,1,0.05 do
  277. p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
  278. p.Transparency = i*2
  279. wait()
  280. end
  281. end)
  282. end
  283. z = -8
  284. Finger = false
  285. Animations = false
  286. combo = combo+1
  287. elseif combo == 4 then
  288. Finger2 = true
  289. Animations = true
  290. local audio = Instance.new("Sound", Right_Arm)
  291. audio.SoundId = "rbxassetid://242076158"
  292. audio.Volume = 4
  293. audio:Play()
  294. wait(0.4)
  295. for i = 1,15 do
  296. --Vector3.new(math.random(-20,20),math.random(20,30),0)
  297. local ray = Ray.new(Head.CFrame.p, (Mouse.Hit.p - Head.CFrame.p).unit * 300)
  298. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {Character})
  299.  
  300. local beam = Instance.new("Part", Character)
  301. --beam.BrickColor = BrickColor.new("Bright red")
  302. beam.FormFactor = "Custom"
  303. beam.Material = "Neon"
  304. beam.Name = "beem"
  305. --beam.Transparency = 0.25
  306. beam.Anchored = true
  307. beam.Locked = true
  308. beam.CanCollide = false
  309. game:GetService("Debris"):AddItem(beam, 0.6)
  310. local distance = (Head.CFrame.p+Vector3.new(math.random(-20,20),math.random(5,30),0) - position).magnitude
  311. beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
  312. beam.CFrame = CFrame.new(Head.CFrame.p+Vector3.new(math.random(-40,40),math.random(7,50),0) , position) * CFrame.new(0, 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
  313. spawn(function()
  314. for i = 0,1,0.08 do
  315. beam.Transparency = i*2
  316. beam.Size = beam.Size+Vector3.new(1,1,0)*Size
  317. wait()
  318. end
  319. end)
  320. spawn(function()
  321. local p = Instance.new("Part", Character)
  322. local audio2 = Instance.new("Sound", p)
  323. audio2.SoundId = "rbxassetid://287142895"
  324. audio2.Volume = 4
  325. audio2:Play()
  326. p.TopSurface = 0
  327. p.BottomSurface = 0
  328. p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
  329. p.Anchored = true
  330. p.Material = "Neon"
  331. p.CanCollide = false
  332. game.Debris:AddItem(p, 0.9)
  333.  
  334. for i,v in pairs(game.Workspace:GetChildren()) do
  335. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  336. if torso and (torso.Position - p.Position).magnitude <= 15*Size and torso.Parent.Name ~= Character.Name then
  337. torso.Parent.Humanoid:TakeDamage(math.random(10,20)*Size)
  338. -- torso.Parent.Humanoid.PlatformStand = true
  339. end
  340. end
  341. for i = 0,1,0.05 do
  342. p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
  343. p.Transparency = i*2
  344. wait()
  345. end
  346. end)
  347. wait()
  348. end
  349.  
  350. Finger2 = false
  351. Animations = false
  352. combo = combo+1
  353. elseif combo == 5 then
  354. Finger2 = true
  355. Animations = true
  356. local audio = Instance.new("Sound", Right_Arm)
  357. audio.SoundId = "rbxassetid://242076158"
  358. audio.Volume = 4
  359. audio:Play()
  360. wait(0.4)
  361. for i = 1,5 do
  362. --Vector3.new(math.random(-20,20),math.random(20,30),0)
  363. local ray = Ray.new(Vector3.new(math.random(-20,20),20,math.random(-20,20)), (Vector3.new(math.random(-20,20),20,math.random(-20,20)) - Head.CFrame.p).unit * 300)
  364. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {Character})
  365.  
  366. local beam = Instance.new("Part", Character)
  367. --beam.BrickColor = BrickColor.new("Bright red")
  368. beam.FormFactor = "Custom"
  369. beam.Material = "Neon"
  370. beam.Name = "beem"
  371. --beam.Transparency = 0.25
  372. beam.Anchored = true
  373. beam.Locked = true
  374. beam.CanCollide = false
  375. game:GetService("Debris"):AddItem(beam, 0.6)
  376. local distance = (Vector3.new(math.random(-20,20),20,math.random(-20,20)) - position).magnitude
  377. beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
  378. beam.CFrame = CFrame.new(Vector3.new(math.random(-20,20),20,math.random(-20,20)) , position) * CFrame.new(0, 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
  379. spawn(function()
  380. for i = 0,1,0.08 do
  381. beam.Transparency = i*2
  382. beam.Size = beam.Size+Vector3.new(1,1,0)*Size
  383. wait()
  384. end
  385. end)
  386. spawn(function()
  387. local p = Instance.new("Part", Character)
  388. local audio2 = Instance.new("Sound", p)
  389. audio2.SoundId = "rbxassetid://287142895"
  390. audio2.Volume = 4
  391. audio2:Play()
  392. p.TopSurface = 0
  393. p.BottomSurface = 0
  394. p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
  395. p.Anchored = true
  396. p.Material = "Neon"
  397. p.CanCollide = false
  398. game.Debris:AddItem(p, 0.9)
  399.  
  400. for i,v in pairs(game.Workspace:GetChildren()) do
  401. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  402. if torso and (torso.Position - p.Position).magnitude <= 15*Size and torso.Parent.Name ~= Character.Name then
  403. torso.Parent.Humanoid:TakeDamage(math.random(10,20)*Size)
  404. -- torso.Parent.Humanoid.PlatformStand = true
  405. end
  406. end
  407. for i = 0,1,0.05 do
  408. p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
  409. p.Transparency = i*2
  410. wait()
  411. end
  412. end)
  413. wait()
  414. end
  415.  
  416. Finger2 = false
  417. Animations = false
  418. combo = 1
  419. end
  420. end)
  421.  
  422. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  423. wld = Instance.new("Weld", wp1)
  424. wld.Part0 = wp0
  425. wld.Part1 = wp1
  426. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  427. return wld
  428. end
  429.  
  430. function noOutline(part)
  431. Part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  432. end
  433.  
  434. local function Part(Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent)
  435. local partie = i_new("Part",parent)
  436. partie.BrickColor = BrickColor.new(Color)
  437. partie.Material = Material
  438. partie.Shape = Shape
  439. partie.Transparency = Transparency
  440. partie.Size = Size
  441. partie.CFrame = CFrame
  442. partie.CanCollide = CanCollide
  443. partie.Anchored = Anchored
  444. return partie
  445. end
  446.  
  447.  
  448.  
  449. function swait(num)
  450. if num == 0 or num == nil then
  451. game:GetService("RunService").RenderStepped:wait()
  452. else
  453. for i = 0, num do
  454. game:GetService("RunService").RenderStepped:wait()
  455. end
  456. end
  457. end
  458.  
  459. Humanoid.FreeFalling:connect(function(falling)
  460. if falling then
  461. isFalling = true
  462. elseif not falling then
  463. isFalling = false
  464. end
  465. end)
  466.  
  467. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  468. local mesh = i_new(Mesh)
  469. mesh.Parent = part
  470. if Mesh == "SpecialMesh" then
  471. mesh.MeshType = meshtype
  472. mesh.MeshId = meshid
  473. end
  474. mesh.Offset = offset
  475. mesh.Scale = scale
  476. return mesh
  477. end
  478.  
  479.  
  480. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
  481. return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  482. end
  483.  
  484. function QuaternionFromCFrame(cf)
  485. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  486. local trace = m00 + m11 + m22
  487. if trace > 0 then
  488. local s = math.sqrt(1 + trace)
  489. local recip = 0.5/s
  490. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  491. else
  492. local i = 0
  493. if m11 > m00 then
  494. i = 1
  495. end
  496. if m22 > (i == 0 and m00 or m11) then
  497. i = 2
  498. end
  499. if i == 0 then
  500. local s = math.sqrt(m00-m11-m22+1)
  501. local recip = 0.5/s
  502. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  503. elseif i == 1 then
  504. local s = math.sqrt(m11-m22-m00+1)
  505. local recip = 0.5/s
  506. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  507. elseif i == 2 then
  508. local s = math.sqrt(m22-m00-m11+1)
  509. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  510. end
  511. end
  512. end
  513.  
  514. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  515. local xs, ys, zs = x + x, y + y, z + z
  516. local wx, wy, wz = w*xs, w*ys, w*zs
  517. local xx = x*xs
  518. local xy = x*ys
  519. local xz = x*zs
  520. local yy = y*ys
  521. local yz = y*zs
  522. local zz = z*zs
  523. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  524. end
  525.  
  526. function QuaternionSlerp(a, b, t)
  527. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  528. local startInterp, finishInterp;
  529. if cosTheta >= 0.0001 then
  530. if (1 - cosTheta) > 0.0001 then
  531. local theta = math.acos(cosTheta)
  532. local invSinTheta = 1/math.sin(theta)
  533. startInterp = math.sin((1-t)*theta)*invSinTheta
  534. finishInterp = math.sin(t*theta)*invSinTheta
  535. else
  536. startInterp = 1-t
  537. finishInterp = t
  538. end
  539. else
  540. if (1+cosTheta) > 0.0001 then
  541. local theta = math.acos(-cosTheta)
  542. local invSinTheta = 1/math.sin(theta)
  543. startInterp = math.sin((t-1)*theta)*invSinTheta
  544. finishInterp = math.sin(t*theta)*invSinTheta
  545. else
  546. startInterp = t-1
  547. finishInterp = t
  548. end
  549. end
  550. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  551. end
  552.  
  553. function clerp(a, b, t)
  554. local qa = {QuaternionFromCFrame(a)}
  555. local qb = {QuaternionFromCFrame(b)}
  556. local ax, ay, az = a.x, a.y, a.z
  557. local bx, by, bz = b.x, b.y, b.z
  558. local _t = 1-t
  559. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  560. end
  561.  
  562.  
  563. wait()
  564. function bigger (char, S)
  565. tor = char.Torso
  566. larm = char["Left Arm"]
  567. rarm = char["Right Arm"]
  568. lleg = char["Left Leg"]
  569. rleg = char["Right Leg"]
  570. head = char.Head
  571. root = char.HumanoidRootPart
  572. hum = char.Humanoid
  573.  
  574. tor.Size = tor.Size*S
  575. larm.Size = larm.Size*S
  576. rarm.Size = rarm.Size*S
  577. lleg.Size = lleg.Size*S
  578. rleg.Size = rleg.Size*S
  579. root.Size = root.Size*S
  580. hum.HipHeight = hum.HipHeight*S
  581. hum.JumpPower = hum.JumpPower*S/1.1
  582. head.Mesh.Scale = head.Mesh.Scale*S
  583. hum.MaxHealth = 500*S
  584. print(hum.MaxHealth)
  585.  
  586. local scale = S
  587. scale = scale^-1
  588. function scaleCF(cf, n)
  589. local comp = {cf:components()}
  590. local matrix = {}
  591. for i = 4, #comp do
  592. matrix[i-3] = comp[i]
  593. end
  594. return CFrame.new(comp[1]/n, comp[2]/n, comp[3]/n, unpack(matrix))end
  595. --[[for _, v in pairs(Character.Head:GetChildren()) do
  596. if v:IsA("Attachment") then
  597. v.Position = v.Position / scale
  598. elseif v:IsA("SpecialMesh") and v.Parent. then
  599. v.Scale = v.Scale / scale
  600. v.Offset = v.Offset / scale
  601. end
  602. end--]]
  603. for _, a in pairs(Character:GetChildren()) do
  604. if a:IsA("Accoutrement") then
  605. for _, v in pairs(a.Handle:GetChildren()) do
  606. if v:IsA("Weld") then
  607. v.C0 = scaleCF(v.C0, scale)
  608. v.C1 = scaleCF(v.C1, scale)
  609. elseif v:IsA("Attachment") then
  610. v.Position = v.Position / scale
  611. elseif v:IsA("SpecialMesh") and v.Parent.Name ~= "Head" then
  612. v.Scale = v.Scale / scale
  613. v.Offset = v.Offset / scale
  614. end
  615. end
  616. end
  617. end
  618.  
  619.  
  620. LA_Weld = newWeld(Torso, Left_Arm, -1.5*S, 0.5*S, 0)
  621. Left_Arm.Weld.C1 = CFrame.new(0, 0.5*S, 0)
  622. RA_Weld = newWeld(Torso, Right_Arm, 1.5*S, 0.5*S, 0)
  623. Right_Arm.Weld.C1 = CFrame.new(0, 0.5*S, 0)
  624. LL_Weld = newWeld(Torso, Left_Leg, -0.5*S, -1*S, 0)
  625. Left_Leg.Weld.C1 = CFrame.new(0, 1*S, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  626. RL_Weld = newWeld(Torso, Right_Leg, 0.5*S, -1*S, 0)
  627. Right_Leg.Weld.C1 = CFrame.new(0, 1*S, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  628. Torso_Weld = newWeld(rootPart, Torso, 0, -1*S, 0)
  629. Torso.Weld.C1 = CFrame.new(0, -1*S, 0)
  630. Head_Weld = newWeld(Torso, Head, 0, 1.5*S, 0)
  631. end
  632.  
  633. bigger(Character, Size)
  634.  
  635. sine = 0
  636. change = 1
  637.  
  638. --[[
  639. m2 = Instance.new("SpecialMesh", Right_Arm)
  640. m2.MeshId = "http://www.roblox.com/asset/?id=32328563"
  641. --32328397m2.TextureId = "http://www.roblox.com/asset/?id=21465353"
  642. m2.Scale = Vector3.new(1.2,1.2,1.2)*Size
  643.  
  644. m3 = Instance.new("SpecialMesh", Left_Arm)
  645. m3.MeshId = "http://www.roblox.com/asset/?id=32328397"
  646. --m3.TextureId = "http://www.roblox.com/asset/?id=21465353"
  647. m3.Scale = Vector3.new(1.2,1.2,1.2)*Size
  648.  
  649. --]]
  650. spawn(function()
  651.  
  652. while wait(1.5) do
  653. spawn(function()
  654. while wait(5) do
  655. _G.currentHealth = Humanoid.Health
  656. end
  657. end)
  658. if Humanoid.Health >= _G.currentHealth then
  659. Humanoid.Health = Humanoid.Health+Humanoid.MaxHealth/30
  660. end
  661. end
  662. end)
  663.  
  664.  
  665. game:GetService("RunService").Stepped:connect(function()
  666. Camera.CameraSubject = Torso
  667. Angle = (Angle % 100) + angleSpeed/10
  668. Axis = (Axis % 100) + axisSpeed/10
  669. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  670. jumpVel = Torso.Velocity.Y
  671. sine = change + sine
  672.  
  673. if (Humanoid.Jump) and jumpVel > 1 then
  674. currentAnim = "Jumping"
  675. elseif walkingMagnitude < 2 then
  676. currentAnim = "Idling"
  677. elseif isSprinting == true then
  678. currentAnim = "Sprinting"
  679. elseif walkingMagnitude > 2 then
  680. isSprinting = false
  681. currentAnim = "Walking"
  682. elseif isAttacking == true then
  683. currentAnim = "Attacking"
  684. end
  685.  
  686.  
  687. if currentAnim == "Jumping" and Animations == false then
  688. angleSpeed = 2
  689. axisSpeed = 2
  690. change = 0.5
  691. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
  692. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5*Size, 0.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  693. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
  694. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(5)), 0.15)
  695. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  696. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(9), math.rad(0), math.rad(0)), 0.15)
  697.  
  698.  
  699. elseif isFalling == true and Animations == false then
  700. angleSpeed = 2
  701. axisSpeed = 2
  702. change = 0.5
  703. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
  704. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5*Size, 0.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-50)), 0.15)
  705. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size, -0.5*Size) * c_angles(math.rad(-20), math.rad(0), math.rad(-0)), 0.15)
  706. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size, -0.5*Size) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  707. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  708. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  709.  
  710. elseif currentAnim == "Idling" and Animations == false then
  711. angleSpeed = 1
  712. axisSpeed = 1
  713. change = 0.5
  714.  
  715. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2*Size, 0.3*Size+-0.02*math.sin(tick()),0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.15)
  716. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2*Size, 0.3*Size+-0.05*math.sin(tick()/1.5),0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(40)), 0.15)
  717. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size-0.05*math.asin(math.cos(tick()*1.5)), 0) * c_angles(math.rad(0),math.rad(15),math.rad(-5)), 0.15)
  718. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size-0.05*math.asin(math.cos(tick()*1.5)), 0)* c_angles(math.rad(0),math.rad(-15),math.rad(5)), 0.15)
  719. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0*Size, -0.9*Size+0.05*math.asin(math.cos(tick()*1.5)), 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  720. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(0), math.rad(-10), math.rad(0)), 0.15)
  721.  
  722.  
  723.  
  724. elseif currentAnim == "Sprinting" and Animations == false then
  725. angleSpeed = 1
  726. axisSpeed = 1
  727. Humanoid.WalkSpeed = 42*Size
  728.  
  729. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2*Size, 0.35*Size,0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.15)
  730. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2*Size, 0.35*Size,0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(40)), 0.15)
  731. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -0.8*Size+(math.cos(sine/2)/2)*Size, -0.1*Size+(math.sin(sine/2)*0.8)/2) * c_angles(math.sin(sine/2)*1.6,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  732. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -0.8*Size+(-math.cos(sine/2)/2)*Size, -0.1*Size+(-math.sin(sine/2)*0.8)/2)* c_angles(-math.sin(sine/2)*1.6,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  733. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0*Size, -1*Size+math.sin(sine/2)/5, 0*Size) * c_angles(math.rad(-25), math.sin(sine/2)/8, math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  734. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(17), math.rad(0), math.rad(0)), 0.15)
  735.  
  736.  
  737. elseif currentAnim == "Walking" and Animations == false then
  738. angleSpeed = 1
  739. axisSpeed = 1
  740. change = 0.6
  741. Humanoid.WalkSpeed = 3.5*Size
  742.  
  743. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size,0) * c_angles(-math.rad(-50), math.rad(0), math.rad(10)), 0.15)
  744. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5*Size, (0.4+-math.asin(math.cos(sine/8.5))/8.5)*Size, (-0.2+-math.asin(math.cos(sine/8.5))/3.4)*Size) * c_angles(math.asin(math.cos(sine/8.5))*0.4, math.rad(0), math.rad(-5)), 0.15)
  745. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -0.8*Size+(math.cos(sine/6)/6)*Size, -0.1*Size+(math.sin(sine*5)*0.9)/6) * c_angles(math.sin(sine/6)*0.5,-math.sin(sine/5)/8, -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  746. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -0.8*Size+(-math.cos(sine/6)/6)*Size, -0.1*Size+(-math.sin(sine*5)*0.9)/6)* c_angles(-math.sin(sine/6)*0.5,-math.sin(sine/5)/8, -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  747. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0*Size, -1*Size+math.sin(sine/4)/6, 0*Size) * c_angles(math.rad(-5), math.rad(0)+math.sin(sine/5)/8, math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  748. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(0, math.rad(0), math.rad(0)), 0.15)
  749.  
  750. elseif Finger == true and walkingMagnitude < 2 then
  751.  
  752.  
  753. -- First Punch (All C1, Lasts 3 Frames)
  754. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2*Size, 0.35*Size, 0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.5)
  755.  
  756. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5*Size, .5*Size, 0*Size) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.5)
  757.  
  758. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
  759. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(-10), math.rad(0), math.rad(10)), 0.5)
  760. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  761. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.35)
  762.  
  763. elseif Finger2 == true and walkingMagnitude < 2 then
  764.  
  765. -- First Punch (All C1, Lasts 3 Frames)
  766. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size, 0*Size) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.5)
  767.  
  768. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2*Size, .35*Size, 0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(40)), 0.5)
  769.  
  770. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
  771. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(-10), math.rad(0), math.rad(10)), 0.5)
  772. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  773. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.35)
  774. elseif Finger2 == true and walkingMagnitude > 2 then
  775.  
  776.  
  777. -- First Punch (All C1, Lasts 3 Frames)
  778. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size, 0*Size) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.5)
  779.  
  780. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2*Size, .35*Size, 0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(40)), 0.5)
  781.  
  782. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -0.8*Size+(math.cos(sine/3)/4)*Size, -0.2*Size+(math.sin(sine/3)*0.7)/2) * c_angles(math.sin(sine/3)*0.95,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  783. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -0.8*Size+(-math.cos(sine/3)/4)*Size, -0.2*Size+(-math.sin(sine/3)*0.7)/2)* c_angles(-math.sin(sine/3)*0.95,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  784. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0*Size, -1*Size+math.sin(sine/2)/3, 0*Size) * c_angles(math.rad(0), math.rad(0)+math.sin(sine/2)/8, math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  785. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  786.  
  787. elseif Finger == true and walkingMagnitude > 2 then
  788.  
  789. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2*Size, 0.35*Size, 0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.5)
  790.  
  791. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5*Size, .5*Size, 0*Size) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.5)
  792.  
  793.  
  794. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5*Size, -0.8*Size+(math.cos(sine/3)/4)*Size, -0.2*Size+(math.sin(sine/3)*0.7)/2) * c_angles(math.sin(sine/3)*0.95,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  795. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5*Size, -0.8*Size+(-math.cos(sine/3)/4)*Size, -0.2*Size+(-math.sin(sine/3)*0.7)/2)* c_angles(-math.sin(sine/3)*0.95,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  796. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0*Size, -1*Size+math.sin(sine/2)/3, 0*Size) * c_angles(math.rad(0), math.rad(0)+math.sin(sine/2)/8, math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
  797. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  798.  
  799. end
  800. end)
Add Comment
Please, Sign In to add comment