Advertisement
Fogdoggy

Untitled

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