CreeperReaper48

Deletus

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