Upscalefanatic3

[FE] Nuke Launcher GUI (Voidacity)

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