Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.25 KB | None | 0 0
  1. wait(0.1)
  2. -------------------------------
  3. local char=p.Character
  4. script.Parent=char
  5. local torso=char.Torso
  6. local hed=char.Head
  7. local larm=char:FindFirstChild("Left Arm")
  8. local rarm=char:FindFirstChild("Right Arm")
  9. local lleg=char:FindFirstChild("Left Leg")
  10. local rleg=char:FindFirstChild("Right Leg")
  11. local hum=char.Humanoid
  12. local cam=workspace.CurrentCamera
  13. local root=char.HumanoidRootPart
  14. local mouse=p:GetMouse()
  15. local hb=game:service("RunService").Heartbeat
  16. local rs=game:service("RunService").Stepped
  17. hum.MaxHealth=math.huge
  18. hum.Health=hum.MaxHealth
  19. char.Health:Destroy()
  20. local pgui=Instance.new("ScreenGui",p.PlayerGui)
  21. local rads=math.huge
  22. local ammo=0
  23. local maxammo=10
  24. local range=math.huge
  25. local minpush=math.huge
  26. local pushforce=math.huge
  27. local maxpush=math.huge
  28. local megatons=math.huge
  29. local megatons2=math.huge
  30. random={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
  31. coroutine.wrap(function()
  32. while rs:wait() do
  33. pushforce=math.random(minpush,maxpush)
  34. end
  35. end)()
  36. local mindmg=math.huge
  37. local maxdmg=math.huge
  38. local precision=math.random(7,9)
  39. local crouch=0
  40. local normal=16
  41. local fall=20
  42. local run=35
  43. local maxhp=hum.MaxHealth
  44. local hp=hum.Health
  45. function fnt(pos,dist,splr)
  46. if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
  47. local list = {}
  48. for i,v in pairs(workspace:GetChildren())do
  49. if v:IsA("Model")then
  50. if v:findFirstChild("Torso")then
  51. if v ~= char then
  52. if(v.Torso.Position -pos).magnitude <= dist then
  53. table.insert(list,v)
  54. end
  55. end
  56. end
  57. end
  58. end
  59. return list
  60. end
  61. function fnp(pos,dist,splr)
  62. if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
  63. local list = {}
  64. for i,v in pairs(workspace:GetChildren())do
  65. if v:IsA("Part")then
  66. if v ~= char and v.Name~="Car" and v~=torso and v.Name~="Base" and v.Name~="Baseplate" then
  67. if(v.Position -pos).magnitude <= dist then
  68. table.insert(list,v)
  69. end
  70. end
  71. end
  72. end
  73. return list
  74. end
  75. function rpr()
  76. precision=math.random(7,9)
  77. end
  78. fw = function(wp0, wp1, wc0x, wc0y, wc0z) -- fast weld
  79. local wld = Instance.new("Weld", wp1)
  80. wld.Part0 = wp0
  81. wld.Part1 = wp1
  82. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  83. end
  84. o1 = Instance.new("Frame")
  85. o2 = Instance.new("Frame")
  86. o3 = Instance.new("TextButton")
  87. o4 = Instance.new("TextLabel")
  88. o5 = Instance.new("TextLabel")
  89. o1.Name = "bk"
  90. o1.Parent = pgui
  91. o1.Position = UDim2.new(0.30000001192093,0,-0.10000000149012,0)
  92. o1.Size = UDim2.new(0.40000000596046,0,0.30000001192093,0)
  93. o1.Position = UDim2.new(0.30000001192093,0,-0.10000000149012,0)
  94. o1.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  95. o1.BorderColor3 = Color3.new(0, 0, 0)
  96. o1.BorderSizePixel = 6
  97. o2.Name = "upbar"
  98. o2.Parent = o1
  99. o2.Position = UDim2.new(2,0,0,0)
  100. o2.Size = UDim2.new(1,0,0.079999998211861,0)
  101. o2.Position = UDim2.new(2,0,0,0)
  102. o2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  103. o2.BorderColor3 = Color3.new(0, 0, 0)
  104. o2.BorderSizePixel = 3
  105. o3.Name = "close"
  106. o3.Parent = o2
  107. o3.Position = UDim2.new(0,0,30,0)
  108. o3.Size = UDim2.new(0.10000000149012,0,1,0)
  109. o3.Text = "X"
  110. o3.Position = UDim2.new(0,0,30,0)
  111. o3.BackgroundColor3 = Color3.new(1, 0, 0)
  112. o3.BorderColor3 = Color3.new(0, 0, 0)
  113. o3.BorderSizePixel = 3
  114. o3.Font = Enum.Font.ArialBold
  115. o3.FontSize = Enum.FontSize.Size14
  116. o3.TextColor3 = Color3.new(0, 0, 0)
  117. o3.TextScaled = true
  118. o3.TextWrapped = true
  119. o4.Name = "txt"
  120. o4.Parent = o2
  121. o4.Position = UDim2.new(0.125,0,-14,0)
  122. o4.Size = UDim2.new(0.85000002384186,0,0.89999997615814,0)
  123. o4.Text = "Open message"
  124. o4.Position = UDim2.new(0.125,0,-14,0)
  125. o4.BackgroundColor3 = Color3.new(0.988235, 0.988235, 0.988235)
  126. o4.BorderColor3 = Color3.new(0, 0, 0)
  127. o4.BorderSizePixel = 3
  128. o4.Font = Enum.Font.ArialBold
  129. o4.FontSize = Enum.FontSize.Size14
  130. o4.TextColor3 = Color3.new(0, 0, 0)
  131. o4.TextScaled = true
  132. o4.TextWrapped = true
  133. o5.Name = "maintxt"
  134. o5.Parent = o1
  135. o5.Position = UDim2.new(-2,0,0,0)
  136. o5.Size = UDim2.new(0.80000001192093,0,0.80000001192093,0)
  137. o5.Text = "Nuke launcher loaded.Fully created by LegendOfDarknees"
  138. o5.Position = UDim2.new(-2,0,0,0)
  139. o5.BackgroundColor3 = Color3.new(0.976471, 0.976471, 0.976471)
  140. o5.BorderColor3 = Color3.new(0, 0, 0)
  141. o5.BorderSizePixel = 3
  142. o5.Font = Enum.Font.ArialBold
  143. o5.FontSize = Enum.FontSize.Size14
  144. o5.TextColor3 = Color3.new(0, 0, 0)
  145. o5.TextScaled = true
  146. o5.TextWrapped = true
  147. local hb=game:service("RunService").Heartbeat
  148. local rs=game:service("RunService").Stepped
  149. local sc=pgui
  150. local bk=sc.bk
  151. local upbar=bk.upbar
  152. local close=upbar.close
  153. local txt=upbar.txt
  154. local maintxt=bk.maintxt
  155. canclose=true
  156. coroutine.wrap(function()
  157. for i = 1, 120 do
  158. bk.Position=bk.Position:lerp(UDim2.new(0.3,0,0.3,0),0.25)
  159. upbar.Position=upbar.Position:lerp(UDim2.new(0,0,0,0),0.05)
  160. close.Position=close.Position:lerp(UDim2.new(0,0,0,0),0.05)
  161. txt.Position=txt.Position:lerp(UDim2.new(0.125,0,0.05,0),0.05)
  162. maintxt.Position=maintxt.Position:lerp(UDim2.new(0.1,0,0.1,0),0.05)
  163. rs:wait()
  164. end
  165. end)()
  166. close.MouseButton1Click:connect(function()
  167. if canclose==true then
  168. canclose=false
  169. for i = 1, 30 do
  170. bk.Position=bk.Position:lerp(UDim2.new(0.3,0,-0.5,0),0.1)
  171. upbar.Position=upbar.Position:lerp(UDim2.new(2,0,0,0),0.1)
  172. close.Position=close.Position:lerp(UDim2.new(0,0,30,0),0.1)
  173. txt.Position=txt.Position:lerp(UDim2.new(0.125,0,-14,0),0.1)
  174. maintxt.Position=maintxt.Position:lerp(UDim2.new(-2,0,0.1,0),0.1)
  175. rs:wait()
  176. end
  177. bk:Destroy()
  178. end
  179. end)
  180. ------------guis------------
  181. o1 = Instance.new("Frame")
  182. o2 = Instance.new("TextLabel")
  183. o3 = Instance.new("Frame")
  184. o4 = Instance.new("Frame")
  185. o5 = Instance.new("Frame")
  186. o6 = Instance.new("TextLabel")
  187. o1.Name = "sdbar"
  188. o1.Parent = pgui
  189. o1.Position = UDim2.new(0,0,0.050000000745058,0)
  190. o1.Size = UDim2.new(0.10000000149012,0,0.94999998807907,0)
  191. o1.Position = UDim2.new(0,0,0.050000000745058,0)
  192. o1.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  193. o1.BorderColor3 = Color3.new(0, 0, 0)
  194. o1.BorderSizePixel = 4
  195. o2.Name = "txt"
  196. o2.Parent = o1
  197. o2.Size = UDim2.new(1,0,1,0)
  198. o2.Text = "Ammo: 1"
  199. o2.BackgroundColor3 = Color3.new(1, 1, 1)
  200. o2.BackgroundTransparency = 1
  201. o2.BorderSizePixel = 0
  202. o2.Font = Enum.Font.Bodoni
  203. o2.FontSize = Enum.FontSize.Size14
  204. o2.TextColor3 = Color3.new(1, 1, 1)
  205. o2.TextScaled = true
  206. o2.TextWrapped = true
  207. o3.Name = "bk"
  208. o3.Parent = pgui
  209. o3.Size = UDim2.new(1,0,0.050000000745058,0)
  210. o3.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  211. o3.BorderColor3 = Color3.new(0, 0, 0)
  212. o3.BorderSizePixel = 6
  213. o3.ZIndex = 2
  214. o4.Name = "bar1"
  215. o4.Parent = o3
  216. o4.Position = UDim2.new(0.050000000745058,0,0.15000000596046,0)
  217. o4.Size = UDim2.new(0.89999997615814,0,0.60000002384186,0)
  218. o4.Position = UDim2.new(0.050000000745058,0,0.15000000596046,0)
  219. o4.BackgroundColor3 = Color3.new(0, 0, 0)
  220. o4.BorderSizePixel = 0
  221. o4.ZIndex = 2
  222. o5.Name = "bar"
  223. o5.Parent = o4
  224. o5.Size = UDim2.new(1,0,1,0)
  225. o5.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  226. o5.BorderSizePixel = 0
  227. o5.ZIndex = 2
  228. o6.Name = "txt"
  229. o6.Parent = o5
  230. o6.Size = UDim2.new(1,0,1,0)
  231. o6.Text = "100/100 HP"
  232. o6.BackgroundColor3 = Color3.new(1, 1, 1)
  233. o6.BackgroundTransparency = 1
  234. o6.BorderSizePixel = 0
  235. o6.ZIndex = 2
  236. o6.Font = Enum.Font.Bodoni
  237. o6.FontSize = Enum.FontSize.Size14
  238. o6.TextColor3 = Color3.new(0, 0, 0)
  239. o6.TextScaled = true
  240. o6.TextWrapped = true
  241.  
  242. coroutine.wrap(function()
  243. while rs:wait() do
  244. hp=hum.Health
  245. maxhp=hum.MaxHealth
  246. o6.Text=hp.."/"..maxhp.." HP"
  247. o2.Text="Ammo: "..ammo
  248. o5.Size=o5.Size:lerp(UDim2.new(hp/maxhp,0,1,0),0.05)
  249. end
  250. end)()
  251.  
  252. coroutine.wrap(function()
  253. while wait(math.random(1,2)) do
  254. if hum.Health < hum.MaxHealth then
  255. hum.Health=hum.Health+hum.Health/math.random(7,10)
  256. if hum.Health > hum.MaxHealth then
  257. hum.Health=hum.MaxHealth
  258. end
  259. end
  260. end
  261. end)()
  262.  
  263. ------------------------------------
  264. local msgs=0
  265. function say(msg,speed,tme)
  266. msgs=msgs+1
  267. local bg=Instance.new("BillboardGui",char)
  268. bg.Enabled=true;
  269. bg.Active=true
  270. bg.Adornee=hed
  271. bg.Size=UDim2.new(1,0,1,0)
  272. bg.StudsOffset=Vector3.new(0,3+msgs,0)
  273. local txt=Instance.new("TextLabel",bg)
  274. txt.Position=UDim2.new(0,0,0,0)
  275. txt.Size=UDim2.new(8,0,1.3,0)
  276. txt.BackgroundTransparency=1
  277. txt.BorderSizePixel=0
  278. txt.Font="Bodoni"
  279. txt.TextScaled=true;
  280. txt.TextWrapped=true;
  281. txt.TextColor3=Color3.new(255,255,255)
  282. txt.TextStrokeTransparency=0
  283. txt.TextStrokeColor3=Color3.new(0,0,0)
  284. txt.Text=""
  285. coroutine.wrap(function()
  286. for i = 1,string.len(msg) do
  287. print(i)
  288. if speed>0 then
  289. wait(speed)
  290. else
  291. wait()
  292. end
  293. txt.Text=txt.Text..msg:sub(i,i)
  294. end
  295. wait(tme)
  296. txt:Destroy()
  297. bg:Destroy()
  298. msgs=msgs-1
  299. end)()
  300.  
  301. end
  302. ----------chat
  303. p.Chatted:connect(function(m)
  304. say(string.sub(m, 1, string.len(m)),0,3)
  305. end)
  306. ------------------------------------
  307. anim="idle"
  308. local sine=0
  309. local add=0
  310. local value=0
  311. local ffing=false
  312. local msgs=0
  313. attack=false
  314. NoAnims=false
  315. ----preparing character----
  316. fw(torso, larm, -1.5, 0.5, 0)
  317. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  318. fw(torso, rarm, 1.5, 0.5, 0)
  319. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  320. fw(torso, hed, 0, 1.5, 0)
  321. fw(torso, lleg, -0.5, -1, 0)
  322. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  323. fw(torso, rleg, 0.5, -1, 0)
  324. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  325. fw(root, torso, 0, -1, 0)
  326. torso.Weld.C1 = CFrame.new(0, -1, 0)
  327. --------------rot------------
  328. local r=0
  329. local radd=0.04
  330. coroutine.wrap(function()
  331. while rs:wait() do
  332. r=r+radd
  333. end
  334. end)()
  335. --------construction---------
  336.  
  337. local la=Instance.new("Part",char)
  338. la.Name="Launcher"
  339. la.CanCollide=false
  340. la.Anchored=false
  341. la.Transparency=0
  342. la.Material="Neon"
  343. la.Size=Vector3.new(1,1,3.6)
  344.  
  345. local m=Instance.new("SpecialMesh",la)
  346. m.MeshId="rbxassetid://483920452"
  347. m.TextureId="rbxassetid://483920455"
  348. m.Scale=Vector3.new(0.2,0.2,0.27)
  349.  
  350. local w=Instance.new("Weld",larm)
  351. w.Name="gunweld"
  352. w.Part1=la
  353. w.Part0=larm
  354. w.C0=CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90),0,0)
  355.  
  356. local pr=Instance.new("Part",char)
  357. pr.Name="Projectile"
  358. pr.CanCollide=false
  359. pr.Anchored=false
  360. pr.Transparency=0
  361. pr.Material="Neon"
  362. pr.Size=Vector3.new(0.7,2.5,0.6)
  363. pr.BrickColor=BrickColor.new("Really black")
  364.  
  365. local m2=Instance.new("SpecialMesh",pr)
  366. m2.MeshId="rbxassetid://544709735"
  367. m2.Scale=Vector3.new(0.015,0.015,0.015)
  368.  
  369. local w2=Instance.new("Weld",pr)
  370. w2.Name="projectileweld"
  371. w2.Part1=pr
  372. w2.Part0=la
  373. w2.C0=CFrame.new(0,0,2)*CFrame.Angles(math.rad(90),0,math.pi)
  374.  
  375. local aiming=false
  376.  
  377. -----------attack----------
  378. mouse.KeyDown:connect(function(key)
  379. if key =="f"then
  380. if aiming==false and attack==false and NoAnims==false then
  381. aiming=true
  382. NoAnims=true
  383. elseif aiming==true and NoAnims==true and attack==false then
  384. hum.WalkSpeed=normal
  385. aiming=false
  386. NoAnims=false
  387. rpr()
  388. end
  389. end
  390. end)
  391.  
  392. coroutine.wrap(function()
  393. while true do
  394. rs:wait()
  395. if aiming==true then
  396. hum.WalkSpeed=crouch
  397. precision=0
  398. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-2,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  399. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-70),0,0),0.25)
  400. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,0,-0.6)*CFrame.Angles(math.rad(10),0,0),0.25)
  401. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5+-math.sin(sine/20)/40,-0.45)*CFrame.Angles(math.rad(110)+-math.sin(sine/20)/40,0,-7),0.25)
  402. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5+-math.sin(sine/20)/40,-0.1)*CFrame.Angles(math.rad(90)+-math.sin(sine/20)/40,0,0),0.25)
  403. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),0,0.15),0.25)
  404. rs:wait()
  405. end
  406. end
  407. end)()
  408.  
  409. mouse.KeyDown:connect(function(key)
  410. if key =="r" and ammo < 1 and aiming==false and attack==false then
  411. attack=true
  412. NoAnims=true
  413. local pr2=pr:Clone()
  414. pr2.Transparency=0
  415. pr2.Parent=char
  416. pr2.Name="reload"
  417. local w3=pr2.projectileweld
  418. w3.Part0=rarm
  419. w3.C0=CFrame.new(0,-1.5,0)
  420. for i = 1, 30 do
  421. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  422. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
  423. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  424. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20),0,-7),0.25)
  425. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5,-0.1)*CFrame.Angles(math.rad(90),0,0),0.25)
  426. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25)
  427. rs:wait()
  428. end
  429. for i = 1, 30 do
  430. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  431. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
  432. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  433. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5,-0.8)*CFrame.Angles(math.rad(110),0,-7),0.25)
  434. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5,-0.1)*CFrame.Angles(math.rad(90),0,0),0.25)
  435. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25)
  436. rs:wait()
  437. end
  438. pr2:Destroy()
  439. ammo=ammo+1
  440. NoAnims=false
  441. attack=false
  442. end
  443. end)
  444.  
  445. mouse.KeyDown:connect(function(key)
  446. if key =="r" and ammo < 1 and aiming==true and attack==false then
  447. attack=true
  448. aiming=false
  449. NoAnims=true
  450. local pr2=pr:Clone()
  451. pr2.Transparency=0
  452. pr2.Parent=char
  453. pr2.Name="reload"
  454. local w3=pr2.projectileweld
  455. w3.Part0=rarm
  456. w3.C0=CFrame.new(0,-1.5,0)
  457. for i = 1, 30 do
  458. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-2,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  459. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-70),0,0),0.25)
  460. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,0,-0.6)*CFrame.Angles(math.rad(10),0,0),0.25)
  461. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20),0,-7),0.25)
  462. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5,-0.1)*CFrame.Angles(math.rad(90),0,0),0.25)
  463. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),0,0.15),0.25)
  464. rs:wait()
  465. end
  466. for i = 1, 30 do
  467. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-2,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  468. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-70),0,0),0.25)
  469. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,0,-0.6)*CFrame.Angles(math.rad(10),0,0),0.25)
  470. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5,-0.8)*CFrame.Angles(math.rad(110),0,-7),0.25)
  471. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5,-0.1)*CFrame.Angles(math.rad(90),0,0),0.25)
  472. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25)
  473. rs:wait()
  474. end
  475. pr2:Destroy()
  476. ammo=ammo+1
  477. NoAnims=true
  478. attack=false
  479. aiming=true
  480. end
  481. end)
  482.  
  483. coroutine.wrap(function()
  484. while rs:wait() do
  485. if ammo == 0 then
  486. pr.Transparency=1
  487. else
  488. pr.Transparency=0
  489. end
  490. end
  491. end)()
  492. mouse.KeyDown:connect(function(key)
  493. if key =="g" and ammo > 0 and aiming==false and attack==false and hum.Health>40 then
  494. attack=true
  495. hum.Health=hum.Health-40
  496. NoAnims=true
  497.  
  498. for i = 1, 30 do
  499. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.pi/2,0),0.25)
  500. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
  501. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  502. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(90),0,-80),0.25)
  503. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  504. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),80,0),0.25)
  505. rs:wait()
  506. end
  507.  
  508. local cf=root.CFrame*CFrame.new(0,0,-30).p
  509.  
  510. for i = 1, 30 do
  511. cf=root.CFrame*CFrame.new(0,0,-30).p
  512. local mb=pr:Clone()
  513. for i,v in pairs(mb:GetChildren()) do
  514. if v:IsA("Weld") then
  515. v:Destroy()
  516. end
  517. end
  518. mb.Parent=char
  519. mb.Anchored=false
  520. mb.Name="minibomb"
  521. mb.CFrame=CFrame.new(cf)*CFrame.new(0,6,0)
  522. mb.CFrame=mb.CFrame*CFrame.new(random[math.random(1,#random)]/10,0,random[math.random(1,#random)]/10)
  523. mb.CFrame=mb.CFrame*CFrame.Angles(math.rad(90),0,0)
  524. mb.CanCollide=false
  525.  
  526. mb.Touched:connect(function(hit)
  527. local cf2=mb.CFrame
  528. mb:Destroy()
  529. local e=Instance.new("Part",char)
  530. local s=Instance.new("Sound",e)
  531. s.SoundId="rbxassetid://144140670"
  532. s.Volume=1
  533. s.Pitch=1
  534. s:Play()
  535. e.Name="explosion"
  536. e.Shape="Ball"
  537. e.Material="Neon"
  538. e.BrickColor=BrickColor.new("New Yeller")
  539. e.Size=Vector3.new(1,1,1)
  540. e.CanCollide=false
  541. e.Anchored=true
  542. e.CFrame=cf2
  543.  
  544. coroutine.wrap(function()
  545. for i = 1 ,30 do
  546. e.Size=e.Size:lerp(e.Size+Vector3.new(2,2,2),0.25)
  547. e.Transparency=e.Transparency+1/30
  548. e.CFrame=cf2
  549. rs:wait()
  550. end
  551. end)()
  552.  
  553. for i,v in pairs(fnt(cf2.p,15))do
  554. if v:FindFirstChild("Humanoid") then
  555. v.Humanoid:TakeDamage(math.random(30,70))
  556. v.Torso.Velocity=v.Torso.CFrame.lookVector*100
  557. end
  558. end
  559. for i,v in pairs(fnp(cf2.p,15))do
  560. v.Velocity=v.CFrame.lookVector*100
  561. local f=Instance.new("Fire",v)
  562. coroutine.wrap(function()
  563. wait(3)
  564. f:Destroy()
  565. end)()
  566. for i,v in pairs(fnt(v.CFrame.p,3))do
  567. if v:FindFirstChild("Humanoid") then
  568. v.Humanoid:TakeDamage(math.random(30,60))
  569. local f2=Instance.new("Fire",v.Torso)
  570. coroutine.wrap(function()
  571. wait(3)
  572. f2:Destroy()
  573. end)()
  574.  
  575. end
  576. end
  577.  
  578.  
  579. end
  580.  
  581. end)
  582.  
  583. wait()
  584. end
  585.  
  586. NoAnims=false
  587. attack=false
  588. end
  589. end)
  590. mouse.KeyDown:connect(function(key)
  591. if key =="e" then
  592. if attack==false and ammo > 0 then
  593. ammo=ammo-1
  594. if aiming==true then
  595. NoAnims=true
  596. aiming=false
  597. attack=true
  598. local cf=la.CFrame*CFrame.new(0,0,5)
  599. local cf2=cf
  600. coroutine.wrap(function()
  601. while rs:wait() do
  602. for i,v in pairs(fnt(cf2.p,rads))do
  603. if v:FindFirstChild("Humanoid") then
  604. v.Humanoid:TakeDamage(math.random(6,9))
  605. end
  606. end
  607. end
  608. end)()
  609. local pr2=pr:Clone()
  610. pr2.Parent=pr.Parent
  611. local s5=Instance.new("Sound",pr2)
  612. s5.SoundId="rbxassetid://135792520"
  613. s5.Volume=1.3
  614. s5.Pitch=1
  615. s5.Looped=true
  616. local st=Instance.new("Sound",la)
  617. st.Volume=3
  618. st.SoundId="rbxassetid://147685821"
  619. st:Play()
  620. s5:Play()
  621. pr2.Transparency=0
  622. pr2.projectileweld:Destroy()
  623. pr2.CFrame=cf
  624. local g=Instance.new("BodyVelocity",pr2)
  625. g.maxForce=Vector3.new(666,666,666)
  626. pr2.CFrame=CFrame.new(cf.p,mouse.Hit.p)
  627. g.velocity=pr2.CFrame.lookVector*65
  628.  
  629. pr2.CFrame=pr2.CFrame*CFrame.Angles(90,0,math.pi)
  630.  
  631. pr2.Touched:connect(function(hit)
  632. if hit~=char and hit.Name~="projectile" then
  633. cf=CFrame.new(pr2.CFrame.p)
  634. for i,v in pairs(fnt(pr2.CFrame.p,range))do
  635. if v:FindFirstChild("Humanoid") then
  636. if v.Torso.Anchored==false then
  637. v.Torso.Velocity=v.Torso.CFrame.lookVector*500
  638. end
  639. v.Humanoid:TakeDamage(math.random(mindmg,maxdmg))
  640. end
  641. end
  642. for i,v in pairs(fnp(pr2.CFrame.p,range))do
  643. if v.Anchored==false then
  644. v.Velocity=pr2.CFrame.lookVector*pushforce
  645. end
  646. v.BrickColor=BrickColor.new("Really black")
  647. v.Material="Slate"
  648. local f=Instance.new("Fire",v)
  649. f.Heat=25
  650. f.Size=8
  651. f.Color=BrickColor.new("Lime green").Color
  652. f.SecondaryColor=BrickColor.new("Lime Green").Color
  653. coroutine.wrap(function()
  654. while rs:wait() do
  655. for i,v in pairs(fnt(v.CFrame.p,rads))do
  656. if v:FindFirstChild("Humanoid") then
  657. v.Humanoid:TakeDamage(math.random(2,4))
  658. end
  659. end
  660. end
  661. end)()
  662.  
  663. end
  664. pr2:Destroy()
  665. local e1=Instance.new("Part",char)
  666. e1.Name="Explode"
  667. e1.Size=Vector3.new(1,1,1)
  668. e1.CanCollide=false
  669. e1.Anchored=true
  670. e1.Material="Neon"
  671. e1.CFrame=cf
  672. e1.BrickColor=BrickColor.new("New Yeller")
  673.  
  674. local em1=Instance.new("SpecialMesh",e1)
  675. em1.MeshType="Sphere"
  676. em1.Scale=Vector3.new(5,2.5,5)
  677.  
  678. local e2=e1:Clone()
  679. e2.Parent=e1
  680. local em2=e2.Mesh
  681. em2.Scale=Vector3.new(2.5,6,2.5)
  682.  
  683. local e3=e1:Clone()
  684. e3.Parent=e1
  685. e3.CFrame=e2.CFrame*CFrame.new(0,e2.Size.Y/2.1,0)
  686. local em3=e3.Mesh
  687. em3.Scale=Vector3.new(2.5,6,2.5)
  688.  
  689. local e4=e1:Clone()
  690. e4.Parent=e1
  691. e4.CFrame=e3.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(90),0,0)
  692. local em4=e4.Mesh
  693. em4.MeshId="rbxassetid://3270017"
  694. em4.Scale=Vector3.new(6,6,0.000001)
  695.  
  696. local e5=e4:Clone()
  697. e5.Parent=e4
  698. e5.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  699. local em5=e5.Mesh
  700. em5.Scale=Vector3.new(6,6,6)
  701.  
  702. local e6=e5:Clone()
  703. e6.Parent=e5
  704. e6.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  705. local em6=e6.Mesh
  706. em6.Scale=Vector3.new(6,6,6)
  707.  
  708. local e7=e5:Clone()
  709. e7.Parent=e5
  710. e7.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  711. local em7=e7.Mesh
  712. em7.Scale=Vector3.new(6,6,0.1)
  713.  
  714. local e8=e5:Clone()
  715. e8.Parent=e5
  716. e8.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  717. local em8=e8.Mesh
  718. em8.MeshId="rbxassetid://9982590"
  719. em8.Scale=Vector3.new(3,3,3)
  720.  
  721. local e9=e5:Clone()
  722. e9.Parent=e5
  723. e9.CFrame=cf*CFrame.Angles(math.rad(0),0,0)
  724. local em9=e9.Mesh
  725. em9.MeshId="rbxassetid://20329976"
  726. em9.Scale=Vector3.new(6,6,6)
  727.  
  728. local e0=e5:Clone()
  729. e0.Parent=e5
  730. e0.CFrame=cf*CFrame.Angles(math.rad(0),0,0)
  731. local em0=e0.Mesh
  732. em0.MeshId="rbxassetid://20329976"
  733. em0.Scale=Vector3.new(6,6,6)
  734.  
  735. local e10=e5:Clone()
  736. e10.Parent=e5
  737. e10.CFrame=cf*CFrame.Angles(math.rad(0),0,0)
  738. e10.Shape="Ball"
  739. e10.Size=Vector3.new(30,30,30)
  740.  
  741. coroutine.wrap(function()
  742. for i = 1, megatons do
  743. em1.Scale=em1.Scale+Vector3.new(1,0.1,1)
  744. em2.Scale=em2.Scale+Vector3.new(0.25,2,0.25)
  745. em3.Scale=em3.Scale+Vector3.new(0.75,0.15,0.75)
  746. em4.Scale=em4.Scale+Vector3.new(0.75,0.75,0)
  747. em5.Scale=em5.Scale+Vector3.new(0.75,0.75,0.75)
  748. em6.Scale=em6.Scale+Vector3.new(1.5,1.5,0)
  749. em7.Scale=em7.Scale+Vector3.new(0.75,0.75,0)
  750. em8.Scale=em8.Scale+Vector3.new(0.15,0.15,0.15)
  751. em9.Scale=em9.Scale+Vector3.new(1,0.15,1)
  752. em0.Scale=em0.Scale+Vector3.new(0.95,0.3,0.95)
  753. e10.Size=e10.Size+Vector3.new(1,1,1)
  754. e3.CFrame=e2.CFrame*CFrame.new(0,em2.Scale.Y/2,0)
  755. e4.CFrame=e3.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(90),0,0)
  756. e5.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  757. e6.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  758. e7.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  759. e8.CFrame=cf*CFrame.Angles(math.rad(r),r,r)
  760. e9.CFrame=cf*CFrame.Angles(math.rad(0),r,0)
  761. e0.CFrame=cf*CFrame.Angles(math.rad(0),-r,0)
  762. e10.CFrame=cf*CFrame.Angles(math.rad(0),0,0)
  763. e1.Transparency=e1.Transparency+1/megatons
  764. e2.Transparency=e2.Transparency+1/megatons
  765. e3.Transparency=e3.Transparency+1/megatons
  766. e4.Transparency=e4.Transparency+1/megatons
  767. e5.Transparency=e5.Transparency+1/megatons
  768. e6.Transparency=e6.Transparency+1/megatons
  769. e7.Transparency=e7.Transparency+1/megatons
  770. e8.Transparency=e8.Transparency+1/megatons
  771. e9.Transparency=e9.Transparency+1/megatons
  772. e0.Transparency=e0.Transparency+1/megatons
  773. e10.Transparency=e10.Transparency+1/megatons
  774. e1.Color=e1.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  775. e2.Color=e2.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  776. e3.Color=e3.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  777. e4.Color=e4.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  778. e5.Color=e5.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  779. e6.Color=e6.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  780. e7.Color=e7.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  781. e8.Color=e8.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  782. e9.Color=e9.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  783. e0.Color=e0.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  784. e10.Color=e10.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  785. rs:wait()
  786. end
  787. e1:Destroy()
  788. end)()
  789.  
  790. end
  791. end)
  792.  
  793. for i = 1, 30 do
  794. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-2,0)*CFrame.Angles(math.rad(20),0,0),0.25)
  795. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-90),0,0),0.25)
  796. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,0,-0.6)*CFrame.Angles(math.rad(30),0,0),0.25)
  797. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.6,-0.45)*CFrame.Angles(math.rad(140),0,-7),0.25)
  798. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.6,-0.1)*CFrame.Angles(math.rad(120),0,0),0.25)
  799. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),0,0.15),0.25)
  800. rs:wait()
  801. end
  802. NoAnims=false
  803. attack=false
  804. hum.WalkSpeed=normal
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813. elseif aiming==false then
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821. NoAnims=true
  822. attack=true
  823. local cf=la.CFrame*CFrame.new(0,0,5)
  824. local cf2=cf
  825. coroutine.wrap(function()
  826. while rs:wait() do
  827. for i,v in pairs(fnt(cf2.p,rads))do
  828. if v:FindFirstChild("Humanoid") then
  829. v.Humanoid:TakeDamage(math.random(6,9))
  830. end
  831. end
  832. end
  833. end)()
  834. local pr2=pr:Clone()
  835. pr2.Parent=pr.Parent
  836. local s5=Instance.new("Sound",pr2)
  837. s5.SoundId="rbxassetid://135792520"
  838. s5.Volume=1.3
  839. s5.Pitch=1
  840. s5.Looped=true
  841. local st=Instance.new("Sound",la)
  842. st.Volume=3
  843. st.SoundId="rbxassetid://147685821"
  844. st:Play()
  845. s5:Play()
  846. pr2.Transparency=0
  847. pr2.projectileweld:Destroy()
  848. pr2.CFrame=cf
  849. local g=Instance.new("BodyVelocity",pr2)
  850. g.maxForce=Vector3.new(666,666,666)
  851. pr2.CFrame=CFrame.new(cf.p,mouse.Hit.p)
  852. g.velocity=pr2.CFrame.lookVector*65
  853.  
  854. pr2.CFrame=pr2.CFrame*CFrame.Angles(90,0,math.pi)
  855.  
  856. pr2.Touched:connect(function(hit)
  857. if hit~=char and hit.Name~="projectile" then
  858. cf=CFrame.new(pr2.CFrame.p)
  859. for i,v in pairs(fnt(pr2.CFrame.p,range))do
  860. if v:FindFirstChild("Humanoid") then
  861. if v.Torso.Anchored==false then
  862. v.Torso.Velocity=v.Torso.CFrame.lookVector*500
  863. end
  864. v.Humanoid:TakeDamage(math.random(mindmg,maxdmg))
  865. end
  866. end
  867. for i,v in pairs(fnp(pr2.CFrame.p,range))do
  868. if v.Anchored==false then
  869. v.Velocity=pr2.CFrame.lookVector*pushforce
  870. end
  871. v.BrickColor=BrickColor.new("Really black")
  872. v.Material="Slate"
  873. local f=Instance.new("Fire",v)
  874. f.Heat=25
  875. f.Size=8
  876. f.Color=BrickColor.new("Lime green").Color
  877. f.SecondaryColor=BrickColor.new("Lime Green").Color
  878. coroutine.wrap(function()
  879. while rs:wait() do
  880. for i,v in pairs(fnt(v.CFrame.p,rads))do
  881. if v:FindFirstChild("Humanoid") then
  882. v.Humanoid:TakeDamage(math.random(2,4))
  883. end
  884. end
  885. end
  886. end)()
  887.  
  888. end
  889. pr2:Destroy()
  890. local e1=Instance.new("Part",char)
  891. e1.Name="Explode"
  892. e1.Size=Vector3.new(1,1,1)
  893. e1.CanCollide=false
  894. e1.Anchored=true
  895. e1.Material="Neon"
  896. e1.CFrame=cf
  897. e1.BrickColor=BrickColor.new("New Yeller")
  898.  
  899. local em1=Instance.new("SpecialMesh",e1)
  900. em1.MeshType="Sphere"
  901. em1.Scale=Vector3.new(5,2.5,5)
  902.  
  903. local e2=e1:Clone()
  904. e2.Parent=e1
  905. local em2=e2.Mesh
  906. em2.Scale=Vector3.new(2.5,6,2.5)
  907.  
  908. local e3=e1:Clone()
  909. e3.Parent=e1
  910. e3.CFrame=e2.CFrame*CFrame.new(0,e2.Size.Y/2.1,0)
  911. local em3=e3.Mesh
  912. em3.Scale=Vector3.new(2.5,6,2.5)
  913.  
  914. local e4=e1:Clone()
  915. e4.Parent=e1
  916. e4.CFrame=e3.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(90),0,0)
  917. local em4=e4.Mesh
  918. em4.MeshId="rbxassetid://3270017"
  919. em4.Scale=Vector3.new(6,6,0.000001)
  920.  
  921. local e5=e4:Clone()
  922. e5.Parent=e4
  923. e5.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  924. local em5=e5.Mesh
  925. em5.Scale=Vector3.new(6,6,6)
  926.  
  927. local e6=e5:Clone()
  928. e6.Parent=e5
  929. e6.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  930. local em6=e6.Mesh
  931. em6.Scale=Vector3.new(6,6,6)
  932.  
  933. local e7=e5:Clone()
  934. e7.Parent=e5
  935. e7.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  936. local em7=e7.Mesh
  937. em7.Scale=Vector3.new(6,6,0.1)
  938.  
  939. local e8=e5:Clone()
  940. e8.Parent=e5
  941. e8.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  942. local em8=e8.Mesh
  943. em8.MeshId="rbxassetid://9982590"
  944. em8.Scale=Vector3.new(3,3,3)
  945.  
  946. local e9=e5:Clone()
  947. e9.Parent=e5
  948. e9.CFrame=cf*CFrame.Angles(math.rad(0),0,0)
  949. local em9=e9.Mesh
  950. em9.MeshId="rbxassetid://20329976"
  951. em9.Scale=Vector3.new(6,6,6)
  952.  
  953. local e0=e5:Clone()
  954. e0.Parent=e5
  955. e0.CFrame=cf*CFrame.Angles(math.rad(0),0,0)
  956. local em0=e0.Mesh
  957. em0.MeshId="rbxassetid://20329976"
  958. em0.Scale=Vector3.new(6,6,6)
  959.  
  960. local e10=e5:Clone()
  961. e10.Parent=e5
  962. e10.CFrame=cf*CFrame.Angles(math.rad(0),0,0)
  963. e10.Shape="Ball"
  964. e10.Size=Vector3.new(30,30,30)
  965.  
  966. coroutine.wrap(function()
  967. for i = 1, megatons do
  968. em1.Scale=em1.Scale+Vector3.new(1,0.1,1)
  969. em2.Scale=em2.Scale+Vector3.new(0.25,2,0.25)
  970. em3.Scale=em3.Scale+Vector3.new(0.75,0.15,0.75)
  971. em4.Scale=em4.Scale+Vector3.new(0.75,0.75,0)
  972. em5.Scale=em5.Scale+Vector3.new(0.75,0.75,0.75)
  973. em6.Scale=em6.Scale+Vector3.new(1.5,1.5,0)
  974. em7.Scale=em7.Scale+Vector3.new(0.75,0.75,0)
  975. em8.Scale=em8.Scale+Vector3.new(0.15,0.15,0.15)
  976. em9.Scale=em9.Scale+Vector3.new(1,0.15,1)
  977. em0.Scale=em0.Scale+Vector3.new(0.95,0.3,0.95)
  978. e10.Size=e10.Size+Vector3.new(1,1,1)
  979. e3.CFrame=e2.CFrame*CFrame.new(0,em2.Scale.Y/2,0)
  980. e4.CFrame=e3.CFrame*CFrame.new(0,7,0)*CFrame.Angles(math.rad(90),0,0)
  981. e5.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  982. e6.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  983. e7.CFrame=cf*CFrame.Angles(math.rad(90),0,0)
  984. e8.CFrame=cf*CFrame.Angles(math.rad(r),r,r)
  985. e9.CFrame=cf*CFrame.Angles(math.rad(0),r,0)
  986. e0.CFrame=cf*CFrame.Angles(math.rad(0),-r,0)
  987. e10.CFrame=cf*CFrame.Angles(math.rad(0),0,0)
  988. e1.Transparency=e1.Transparency+1/megatons
  989. e2.Transparency=e2.Transparency+1/megatons
  990. e3.Transparency=e3.Transparency+1/megatons
  991. e4.Transparency=e4.Transparency+1/megatons
  992. e5.Transparency=e5.Transparency+1/megatons
  993. e6.Transparency=e6.Transparency+1/megatons
  994. e7.Transparency=e7.Transparency+1/megatons
  995. e8.Transparency=e8.Transparency+1/megatons
  996. e9.Transparency=e9.Transparency+1/megatons
  997. e0.Transparency=e0.Transparency+1/megatons
  998. e10.Transparency=e10.Transparency+1/megatons
  999. e1.Color=e1.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1000. e2.Color=e2.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1001. e3.Color=e3.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1002. e4.Color=e4.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1003. e5.Color=e5.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1004. e6.Color=e6.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1005. e7.Color=e7.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1006. e8.Color=e8.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1007. e9.Color=e9.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1008. e0.Color=e0.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1009. e10.Color=e10.Color:lerp(BrickColor.new("Smoky gray").Color,0.05)
  1010. rs:wait()
  1011. end
  1012. e1:Destroy()
  1013. end)()
  1014.  
  1015. end
  1016. end)
  1017. torso.CFrame=torso.CFrame*CFrame.new(0,0,3)
  1018. for i = 1, 30 do
  1019. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),0,0),0.25)
  1020. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,-0.1)*CFrame.Angles(math.rad(70),0,0.15),0.25)
  1021. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,-0.1)*CFrame.Angles(math.rad(70),0,-0.15),0.25)
  1022. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.6,-0.45)*CFrame.Angles(math.rad(160),0,-7),0.25)
  1023. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.6,-0.1)*CFrame.Angles(math.rad(140),0,0),0.25)
  1024. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25)
  1025. rs:wait()
  1026. end
  1027. NoAnims=false
  1028. attack=false
  1029. end
  1030.  
  1031. end
  1032. end
  1033. end)
  1034.  
  1035. -----animations-----
  1036. mouse.KeyDown:connect(function(key)
  1037. if key=="0" then
  1038. char.Humanoid.WalkSpeed = run
  1039. hed.Velocity=hed.CFrame.lookVector*100
  1040. end
  1041. end)
  1042. mouse.KeyUp:connect(function(key)
  1043. if key=="0" then
  1044. char.Humanoid.WalkSpeed = normal
  1045. end
  1046. end)
  1047. game:GetService("RunService").RenderStepped:connect(function()
  1048. char.Humanoid.FreeFalling:connect(function(f)
  1049. if f then
  1050. ffing = true
  1051. else
  1052. ffing = false
  1053. end
  1054. end)
  1055. sine = sine + add
  1056. if ffing==true then
  1057. anim="jump"
  1058. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1059. anim="idle"
  1060. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1061. anim = "walk"
  1062. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1063. anim = "run"
  1064. end
  1065.  
  1066. if NoAnims==false then
  1067. if anim=="idle" then
  1068. add=0.5
  1069. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  1070. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
  1071. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  1072. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5+-math.sin(sine/14)/20,-0.45)*CFrame.Angles(math.rad(110)+-math.sin(sine/14)/20,0,-7),0.25)
  1073. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5+-math.sin(sine/14)/20,-0.1)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/20,0,0),0.25)
  1074. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),0.25)
  1075. w.C0=w.C0:lerp(CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/20,0,0),0.25)
  1076.  
  1077. elseif anim=="walk" then
  1078. add=1
  1079. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/3.5)/3,0)*CFrame.Angles(math.rad(-10),0,0),0.25)
  1080. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(0.5,0.5+-math.sin(sine/14)/20,-0.45)*CFrame.Angles(math.rad(110)+-math.sin(sine/14)/20,0,-7),0.25)
  1081. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.35,0.5+-math.sin(sine/14)/20,-0.1)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/20,0,0),0.25)
  1082. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/7)/2,-0.15+-math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/7)/2,0,0.05),0.25)
  1083. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/7)/2,-0.15+math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/7)/2,0,-0.05),0.25)
  1084. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),0,0),0.25)
  1085. w.C0=w.C0:lerp(CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/20,0,0),0.25)
  1086.  
  1087. elseif anim=="run" then
  1088. add=1
  1089. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/2)/3,0)*CFrame.Angles(math.rad(-37),0,0),0.05)
  1090. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/4)/2,-0.15+-math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/4)/2,0,0.05),0.25)
  1091. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/4)/2,-0.15+math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/4)/2,0,-0.05),0.25)
  1092. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,-6),0.25)
  1093. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,6),0.25)
  1094. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),0,0),0.25)
  1095. w.C0=w.C0:lerp(CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/14,0,0),0.25)
  1096.  
  1097. elseif anim=="jump" then
  1098. add=1
  1099. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,0),0.05)
  1100. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-0.7,-0.5)*CFrame.Angles(math.rad(10),0,0),0.25)
  1101. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.1)*CFrame.Angles(math.rad(-10),0,0),0.25)
  1102. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(50),0,90),0.25)
  1103. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),0,-90),0.25)
  1104. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-20),0,0),0.25)
  1105. w.C0=w.C0:lerp(CFrame.new(0,0,-0.5)*CFrame.Angles(math.rad(90),0,0),0.25)
  1106.  
  1107. end
  1108. end
  1109.  
  1110. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement