dadepro_2

Untitled

Mar 11th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 129.03 KB | None | 0 0
  1. local/
  2. if type(_G.qi) ~= "function" then
  3. wait(1.5)
  4. loadstring(game:service'Lighting'.Library.Value)()
  5. end
  6. wait()
  7. loadstring(_G[" rmdx "])()
  8. statname = "leaderstats" -- Stats orginally
  9.  
  10. --pcall(function() workspace.ss:Remove() end)
  11. --ermsm = qi{"Message",workspace,Name="ss"}
  12. erms = function(ta) end -- ermsm.Text=ta end
  13.  
  14. erms("1")
  15.  
  16.  
  17. Players = game:service'Players'
  18. Player = Players.LocalPlayer
  19. repeat wait() until Player:findFirstChild(statname) and Player.Character and Player.Character.Parent and Player.Character:findFirstChild("Torso")
  20. print'Loaded'
  21. ch = Player.Character
  22. to = ch.Torso
  23. he = ch.Head
  24. hu = ch.Humanoid
  25. bp = Player.Backpack
  26. pg = Player.PlayerGui
  27. cam = workspace.CurrentCamera pcall(function() cam.Stuff:Remove() end)
  28.  
  29. erms("2")
  30.  
  31.  
  32. c13 = function(ww,tc,ofs,ha,hb,hc,fff) q(function() c12(ww,tc,ofs,ha,hb,hc,fff) end) end
  33. c12 = function(ww,tc,ofs,ha,hb,hc,fff)
  34. local tcf = ww["C" ..tc]
  35. local x2,y2,z2 = tcf.x,tcf.y,tcf.z
  36. local ax2,ay2,az2 = tcf:toEulerAnglesXYZ()
  37. local ox2,oy2,oz2 = ofs:toEulerAnglesXYZ()
  38. for i=ha,hb,hc do
  39. if fff then fff(i) end
  40. ww["C" ..tc] = cn(x2-(((x2-ofs.x)/1)*i),y2-(((y2-ofs.y)/1)*i),z2-(((z2-ofs.z)/1)*i))*ca(ax2-(((ax2-ox2)/1)*i),ay2-(((ay2-oy2)/1)*i),az2-(((az2-oz2)/1)*i))
  41. wait()
  42. end
  43. local i = 1
  44. if fff then fff(i) end
  45. ww["C" ..tc] = cn(x2-(((x2-ofs.x)/1)*i),y2-(((y2-ofs.y)/1)*i),z2-(((z2-ofs.z)/1)*i))*ca(ax2-(((ax2-ox2)/1)*i),ay2-(((ay2-oy2)/1)*i),az2-(((az2-oz2)/1)*i))
  46. end
  47.  
  48.  
  49. stw = function(we,ta,ha) local ha2 = ha==0 and "C0" or "C1" local tcf = cn(0,0,0) for i=1,#ta do tcf=tcf*ta[i] end we[ha2] = tcf end
  50.  
  51. twn = function(gu,nud,spd) gu:TweenPosition(nud,nil,nil,spd) end
  52.  
  53. dis = function(p1,p2)
  54. pcall(function() p1 = p1.CFrame end) pcall(function() p2 = p2.CFrame end)
  55. pcall(function() p1 = p1.p end) pcall(function() p2 = p2.p end)
  56. return (p1-p2).magnitude
  57. end
  58.  
  59. addscroll = function(par,scroname,tomove,framebase,siz,pos,maxx,lists,haxx)
  60. local logbb = qi({"Frame",par,Size=siz,Position=pos,[bsp]=0,[bc3]=bc("Black").Color,[bgt]=0.5})
  61. getfenv()[scroname] = qi({"ImageButton",logbb,ZIndex=2,AutoButtonColor=false,[bgt]=0,Size=siz,Position=ud(0,0,0,0),[bc3]=bc("White").Color,[bsp]=0})
  62. local scr = getfenv()[scroname]
  63. local scrf = tomove
  64. scrf.Position=ud(0,0,0,0) scr.Visible = true scr.Position=ud(0,0,0,0) scr.Size = ud(1,0,0,((maxx)/(lists))*scr.Parent.Size.Y.Offset)
  65. scr.MouseButton1Down:connect(function(x,y) so(ds.clicksound,workspace.CurrentCamera,1,1)
  66. local startPos = scr.Position bigscr.Parent = fr
  67. local conn = bigscr.MouseMoved:connect(function(X,Y) scr.Position = startPos + ud(0,0,0,Y-y)
  68. if scr.Position.Y.Offset <= 0 then scr.Position = ud(0,0,0,0) end if scr.Position.Y.Offset >= (scr.Parent.Size.Y.Offset-scr.Size.Y.Offset) then scr.Position = ud(0,0,0,(scr.Parent.Size.Y.Offset-scr.Size.Y.Offset)) end
  69. local form = (((1/(scr.Parent.Size.Y.Offset-scr.Size.Y.Offset))*scr.Position.Y.Offset)) scrf.Position=haxx+ud(0,0,0,-form*(scrf.Size.Y.Offset-framebase)) end)
  70. q(function() bigscr.MouseLeave:wait() bigscr.Parent = nil conn:disconnect() end)
  71. bigscr.MouseButton1Up:wait() bigscr.Parent = nil
  72. conn:disconnect()
  73. end)
  74. return scr
  75. end
  76.  
  77. erms("lal")
  78.  
  79. Mod = workspace.Mod erms("lal2")
  80. GameStats = Mod.GameStats erms("lal3")
  81. Lobby = Mod.Lobby erms("lal4")
  82. LoS = Lobby.LobbyStructure erms("lal5")
  83. Props = Mod.Props erms("lal6")
  84. Props2 = Mod.Map.Props erms("lal7")
  85. WeaponArea = Mod.Map.WeaponArea erms("lal8")
  86. m2 = qi{"Model",cam,Name="Stuff"} erms("lal9")
  87.  
  88. erms("yat")
  89.  
  90. for i,v in pairs(Props:children()) do if v.Name == "handle" ..Player.Name then v:Remove() end end
  91.  
  92. st = newproxy(true)
  93. ValType = {["number"]="Number",["string"]="String",["boolean"]="Bool"}
  94.  
  95. getmetatable(st).__newindex = function(self,elem,val)
  96. if not GameStats:findFirstChild(elem) then qi{ValType[type(val)] .. "Value",GameStats,Name=elem} end
  97. GameStats[elem].Value=val
  98. end
  99. getmetatable(st).__index = function(self,elem)
  100. return GameStats[elem].Value
  101. end
  102.  
  103. erms("3")
  104.  
  105.  
  106. --local sbrick1 = pa(s,"","Block",0,0,0,false,false,0,0,armcol)
  107. Sounz = {}
  108. so = function(id,par,vol,pit)
  109. if Sounz[id] then
  110. Sounz[id].Volume = vol or 1
  111. Sounz[id].Pitch = pit or 1
  112. Sounz[id]:play()
  113. else
  114. sou = it'Sound'
  115. sou.SoundId = id
  116. sou.Parent = par or workspace
  117. sou.Volume = vol or 1
  118. sou.Pitch = pit or 1
  119. sou:play()
  120. Sounz[id] = sou
  121. end
  122. return Sounz[id]
  123. end
  124.  
  125. pms = {}
  126. pm = newproxy(true)
  127. getmetatable(pm).__index = function(self,namex)
  128. if not Players:findFirstChild(namex) then return end local vp = Players[namex]
  129. if pms[Players[namex] ] then return pms[vp][1] end
  130. local ne = newproxy(true)
  131. getmetatable(ne).__newindex = function(self,elem,val)
  132. if not vp[statname]:findFirstChild(elem) then qi{ValType[type(val)] .. "Value",vp[statname],Name=elem} end
  133. vp[statname][elem].Value=val
  134. end
  135. getmetatable(ne).__index = function(self,elem)
  136. if elem:lower() == "tele" then return pms[vp].tele
  137. elseif elem:lower() == "inv" then -- Inventory
  138. return pms[vp].inv
  139. end
  140. return vp[statname][elem].Value
  141. end
  142. pms[vp] = {ne;
  143. ["tele"]=function(self,newpos) if vp.Character and vp.Character then if vp.Character:findFirstChild("Torso") then vp.Character.Torso.CFrame=newpos else pnt(vp.Name .. " has no torso") end else pnt(vp.Name .. " has no Character") end end ;
  144. inv = newproxy(true);
  145. }
  146. getmetatable(pms[vp].inv).__newindex = function(self,elem,val)
  147. if not vp[statname].inv:findFirstChild(elem) then qi{ValType[type(val)] .. "Value",vp[statname].inv,Name=elem} end
  148. vp[statname].inv[elem].Value=val
  149. end
  150. getmetatable(pms[vp].inv).__index = function(self,elem)
  151. return vp[statname].inv[elem].Value
  152. end
  153. return ne
  154. end
  155.  
  156. local p2 = pm[Player.Name]
  157.  
  158.  
  159. --pm["xdhunta1774"]:tele(cn(50,100,0))
  160. for i,v in pairs(pg:children()) do v:remove() end --if string.find(v.Name:lower(),"health") or v.Name=="gui" then v:Remove() end end
  161. for i,v in pairs(bp:children()) do if v~=script then v:Remove() end end
  162. g = qi{"ScreenGui",pg,Name="gui"}
  163. fr = qi{"Frame",g,Size=ud(1,0,1,0),Name="fr",[bgt]=1}
  164. MouseFree = qi{"TextButton",fr,Size=ud(0,0,0,0),Name="modal",Modal=true,AutoButtonColor=false,Text="",Active=true,[bc3]=bc("Black").Color,[bgt]=0.5}
  165. bigscr = qi{"ImageButton",nil,[bgt]=1,ZIndex=9,Size=ud(1,0,1,0)}
  166.  
  167. firstenter=false
  168. if not _G.MouseOn then
  169. local mos = 0
  170. firstenter = true
  171. mouser = qi{"TextButton",fr,ZIndex=9,Size=ud(1,0,1,0),[bgt]=1,Font="ArialBold",FontSize="Size48",TextColor3=bc("White").Color,Text="MOUSE ON SCREEN TO PLAY/ PRESS N FOR GUIDE"}
  172. mouser.MouseMoved:connect(function() mos=mos+1 if mos>15 then mouser:Remove() _G.MouseOn=true end end)
  173. end
  174. repeat wait(0.1) until _G.MouseOn
  175.  
  176. erms("4")
  177.  
  178.  
  179. hgui = qi{"Frame",fr,Size=ud(0,50,0,50),Position=ud(0,60,1,-55),Name="hgui",[bgt]=1}
  180. hg1v = qi{"Frame",hgui,Size=ud(0.33,0,0.33,0),Position=ud(0.33,0,0,0),Name="",[bgt]=0.2,[bc3]=bc("Lime green").Color,[bsp]=0,ZIndex=3}
  181. hg2v = qi{"Frame",hgui,Size=ud(0.33,0,0.33,0),Position=ud(0.33,0,0.66,0),Name="",[bgt]=0.2,[bc3]=bc("Lime green").Color,[bsp]=0,ZIndex=3}
  182. hg3v = qi{"Frame",hgui,Size=ud(1,0,0.33,0),Position=ud(0,0,0.33,0),Name="",[bgt]=0.2,[bc3]=bc("Lime green").Color,[bsp]=0,ZIndex=3}
  183. hpt = qi{"TextLabel",hgui,Text=100,[tst]=0.4,[tsc]=bc("Black").Color,[bgt]=1,FontSize="Size36",Font="ArialBold",TextTransparency=0.2,TextColor3=bc("Lime green").Color,[txa]="Left",[tya]="Bottom",Position=ud(1,0,1,0),ZIndex=3}
  184.  
  185. timl = qi{"ImageLabel",fr,Size=ud(0,70,0,30),Position=ud(0.5,-70,1,-28),[bgt]=1,Image="rbxasset://textures//ui//BottomRightControl.png",ZIndex=3}
  186. timr = qi{"ImageLabel",fr,Size=ud(0,70,0,30),Position=ud(0.5,0,1,-28),[bgt]=1,Image="rbxasset://textures//ui//bottomLeftControl.png",ZIndex=3}
  187. timm = qi{"TextLabel",fr,Size=ud(0,0,0,0),Position=ud(0.5,0,1,-14),[bgt]=1,TextColor3=bc("Institutional white").Color,Font="ArialBold",FontSize="Size24",ZIndex=4}
  188.  
  189. infov = qi{"Frame",fr,Position=ud(0.5,-250,0.05,0),Size=ud(0,600,0,600),Visible=firstenter,[bsp]=0,[bgt]=0.1,[bc3]=bc("Really black").Color,ZIndex=8}
  190. local nv1 = qi{"TextLabel",infov,Position=ud(0,0,0,0),Text="Guide (Press N to Toggle Instructions)",Font="ArialBold",FontSize="Size24",[tya]="Top",TextColor3=bc("White").Color,ZIndex=8,[txa]="Left"}
  191. infocd = qi{"Frame",infov,Position=ud(1,-385,0,25),Size=ud(0,380,0,570),[bsp]=0,[bgt]=0,[bc3]=bc("Dark stone grey").Color,ZIndex=8,ClipsDescendants=true}
  192. infoslide = qi{"Frame",infocd,Size=ud(1,0,1,0),[bgt]=1,ZIndex=8}
  193. infos = {}
  194. local infosiz = 0
  195. local infobsiz = 40
  196. local infosel = 0
  197. local infodb = false
  198.  
  199. newinfo = function(ls,title,tex)
  200. title = (#infos+1).. ". " ..title
  201. local ysiz = 30+(ls*14)
  202. local ypos = infosiz+(10*#infos)+5
  203. local ybpos = infobsiz+(10*#infos)+5
  204. infosiz=infosiz+ysiz
  205. infobsiz=infobsiz+20
  206. local i2 = #infos
  207. local i = i2+1
  208. infos[i]={qi{"Frame",infoslide,Position=ud(0,5,0,ypos),Size=ud(1,-10,0,ysiz),[bsp]=0,[bgt]=0,[bc3]=bc("Black").Color,ZIndex=8},ypos,ClipsDescendants=true}
  209. local nv1 = qi{"TextLabel",infos[i][1],Position=ud(0,0,0,0),Text=title,Font="ArialBold",FontSize="Size24",[tya]="Top",TextColor3=bc("White").Color,ZIndex=8,[txa]="Left"}
  210. local nv1 = qi{"TextLabel",infos[i][1],Position=ud(0,0,0,28),Text=tex,Font="ArialBold",FontSize="Size14",TextWrap=true,[tya]="Top",TextColor3=bc("White").Color,ZIndex=8,Size=ud(1,-10,1,0),[bgt]=1,[txa]="Left"}
  211. local nv1 = qi{"TextButton",infov,Position=ud(0,5,0,ybpos),Text=title,Font="ArialBold",FontSize="Size18",Size=ud(0,200,0,20),[txa]="Left",TextColor3=bc("White").Color,[bsp]=0,[bc3]=bc("Black").Color,ZIndex=8}
  212. guieffect1(nv1,1)
  213. nv1.MouseButton1Up:connect(function()
  214. if infodb or infosel==i then return end infodb = true
  215. local adj = infosel < i and -30 or 30
  216. infosel=i
  217. infoslide:TweenPosition(ud(0,0,0,-ypos+adj),nil,nil,0.5) wait(0.5)
  218. infoslide:TweenPosition(ud(0,0,0,-ypos+10),nil,nil,0.2) wait(0.2)
  219. infodb = false
  220. end)
  221. return infos[i][1]
  222. end
  223.  
  224. newinfo(7,"Game Status",[[
  225. Game Name:
  226. MaxPlayers: 8 (cuz roblox network is nub)
  227. Created by : RMDX (MB8ER/xdhunta1774/StereoBan)
  228. Co-Creator: DoogleFox
  229. Game Genre: Shooting
  230. Game Created: March 15 2012
  231. Description: I like quality games
  232. ]])
  233. local nv1=newinfo(18,"Creator's Note",[[
  234. Creator is called RMDX
  235. All Maps are created with 100% scripting
  236. so dont be impatient waiting for new maps :>
  237. IF I GET DELETED AGAIN ILL STOP UPDATING
  238. ]])
  239. local jgui = qi{"Frame",nv1,Size=ud(0,200,0,200),Position=ud(1,-200,1,-200),[bgt]=1,ZIndex=8}
  240. local nv1 = qi{"ImageLabel",jgui,[bgt]=1,Size=ud(0.25,0,1,0),Image=asset.."76100272",ZIndex=8}
  241. local nv1 = qi{"ImageLabel",jgui,[bgt]=1,Size=ud(0.25,0,1,0),Image=asset.."76100280",ZIndex=8,Position=ud(0.25,0,0,0)}
  242. local nv1 = qi{"ImageLabel",jgui,[bgt]=1,Size=ud(0.5,0,1,0),Image=asset.."76099906",ZIndex=8,Position=ud(0.5,0,0,0)}
  243. newinfo(3,"How do I Reload?",[[
  244. If you are not Holding a Melee Weapon,
  245. And if you have clips left,
  246. You can Press "R" to Reload!
  247. ]])
  248. local nv1=newinfo(8,"How do I Reclip?",[[
  249. If you are not Holding a Melee Weapon,
  250. Especially if you have no Ammos or Clips left,
  251. You must find this Wooden Box.
  252. Then Open The Box.
  253. You can Press "F" to Reclip.
  254. ]])
  255. local jgui = qi{"ImageLabel",nv1,Size=ud(0,120,0,120),Position=ud(1,-120,1,-120),Image=ThumbnailUrl .. "76377013",[bgt]=1,ZIndex=8}
  256. newinfo(2,"How do I Crouch?",[[
  257. Press "C" to crouch.
  258. But if you jump. You lose crouching.
  259. ]])
  260. newinfo(1,"Scoreboard",[[
  261. Hold Shift to See the PlayerList / Score Board.
  262. ]])
  263. newinfo(1,"Weapon Palette",[[
  264. Hold "V" to Show the Weapon Palette Slot.
  265. ]])
  266. newinfo(2,"Swapping Weapons",[[
  267. You may Press 1 , 2 ,3 , 4 or 5 to Swap
  268. or You can also Press "Q" or "E" to Swap
  269. ]])
  270. newinfo(2,"Changing Weapons",[[
  271. You must find the Weapon Box (Wooden Box) then
  272. Open the Box and Press "B" to Open the Inventory
  273. ]])
  274. newinfo(3,"Buying Weapons",[[
  275. You must find the Weapon Box (Wooden Box) then
  276. Open the Box and Press "B" to Open the Shop
  277. You can Click the Weapon Name and Buy it.
  278. ]])
  279. newinfo(3,"Leveling System",[[
  280. You must kill Enemies in-round game to Aquire Exp
  281. You can also Aquire Exp by winning rounds by getting
  282. twice the points as Exp.
  283. ]])
  284. newinfo(12,"Ranking System",[[
  285. 0:Banned
  286. ^> People who are caught exploiting
  287. 1:Free
  288. ^> Free Player
  289. 2:Member
  290. ^> People who have bought the Member Shirt
  291. 3:Donor
  292. ^> People who have Donated/Sponsored to the Creator
  293. 4:Admin
  294. ^> The Admins of the Game.
  295. 5:Creator
  296. ^> The Creator of the Game.
  297. ]])
  298. newinfo(10,"Member Benefits",[[
  299. Link: roblox.com/Member-item?id=75306437
  300. Costs: 123 Robux or 1230 Tickets.
  301. 1. Get Other Chat Colors
  302. > Say "chatcol/ColorName" to change ChatColor
  303. 2. Buy Weapons of Half Price
  304. 3. Weapons Last trice as longer
  305. 4. Buy Locked Weapons
  306. 5. Twice as Faster Exp Aquiring
  307. Why is it so expensive?
  308. Because if it wasn't,Everybody would become a Member.
  309. ]])
  310. local cpis = {}
  311. for i,v in pairs(cpi) do table.insert(cpis,i) end
  312. newinfo(9,"Chat System/CMDS",[[
  313. > reset - resets your character
  314. > chatcol/color - recolors your chatcolor (members only)
  315. > spray/decalid - changes your spray image (T)
  316. Say "word /imageId/ word" in a sentence to make Images
  317. Default Images: ]] ..table.concat(cpis,","))
  318.  
  319.  
  320.  
  321. multi = p2.Rank>1 and 2 or 1
  322. multi2 = p2.Rank>1 and 3 or 1
  323. local Cost = {}
  324. for i,v in pairs(Cost2) do
  325. Cost[i] = {}
  326. Cost[i][1] = math.floor(Cost2[i][1]/multi)
  327. Cost[i][2] = Cost2[i][2]
  328. Cost[i][3] = Cost2[i][3]
  329. Cost[i][4] = Cost2[i][4]
  330. end
  331.  
  332.  
  333. inv = qi{"Frame",fr,Position=ud(0.5,-350,0.05,0),Size=ud(0,700,0,500),Visible=false,Active=false,[bsp]=0,[bgt]=0.25,[bc3]=bc("Black").Color,ZIndex=8}
  334. local nv1 = qi{"TextLabel",inv,Text="Inventory/Shop",TextColor3=bc("White").Color,Position=ud(0,5,0,10),Font="ArialBold",FontSize="Size24",[tst]=0,ZIndex=8,[tsc]=bc("Really black").Color,[txa]="Left"}
  335. local nv1 = qi{"TextLabel",inv,Text="Press B to Exit This Window",TextColor3=bc("White").Color,Position=ud(0,5,1,-18),Font="ArialBold",FontSize="Size14",[tst]=0,ZIndex=8,[txa]="Left",[tya]="Top"}
  336. invv = qi{"Frame",inv,Position=ud(0,5,0,40),Size=ud(0,220,0,450),Active=false,[bsp]=0,[bgt]=1,ZIndex=8}
  337. invab = qi{"Frame",inv,Position=ud(0,230+110,0,450),Visible=false,Active=false,[bsp]=0,[bgt]=1,ZIndex=8}
  338. invabb=qi{"TextButton",invab,Text="Buy Ammos",[bc3]=bc("Black").Color,TextColor3=bc("White").Color,Position=ud(0,0,0,0),Size=ud(0,130,0,20),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0}
  339. invabt=qi{"TextBox",invab,Text="1",[bc3]=bc("Black").Color,TextColor3=bc("White").Color,Position=ud(0,-110,0,0),Size=ud(0,100,0,20),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0}
  340.  
  341. invpoi=qi{"TextButton",inv,Text="Points:",[bgt]=1,TextColor3=bc("White").Color,Position=ud(0,230,0,20),Size=ud(0,80,0,30),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0,[txa]="Left"}
  342. invtim=qi{"TextButton",inv,Text="Time Left:",[bgt]=1,Visible=false,TextColor3=bc("White").Color,Position=ud(0,230,0,270),Size=ud(0,80,0,30),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0,[txa]="Left"}
  343. invsel=qi{"TextButton",inv,Text="Selected:",[bgt]=1,TextColor3=bc("White").Color,Position=ud(0,230,0,300),Size=ud(0,80,0,30),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0,[txa]="Left"}
  344. invcos=qi{"TextButton",inv,Text="Costs:",[bgt]=1,TextColor3=bc("White").Color,Position=ud(0,230,0,330),Size=ud(0,80,0,30),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0,[txa]="Left"}
  345. invcos2=qi{"TextButton",inv,Text="Cost per bullet:",[bgt]=1,TextColor3=bc("White").Color,Position=ud(0,230,0,360),Size=ud(0,80,0,30),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0,[txa]="Left"}
  346. invcos3=qi{"TextButton",inv,Text="Total Cost:",[bgt]=1,TextColor3=bc("White").Color,Position=ud(0,230,0,470),Size=ud(0,80,0,30),Font="ArialBold",FontSize="Size12",ZIndex=8,[bsp]=0,[txa]="Left"}
  347.  
  348.  
  349. invb=qi{"TextButton",inv,Visible=false,Text="Buy",[bc3]=bc("Black").Color,TextColor3=bc("White").Color,Position=ud(0,310,0,400),Size=ud(0,80,0,30),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0}
  350. inve=qi{"TextButton",inv,Visible=false,Text="Equip",[bc3]=bc("Black").Color,TextColor3=bc("White").Color,Position=ud(0,230,0,400),Size=ud(0,80,0,30),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0}
  351.  
  352. invamount=0
  353. invabt.Changed:connect(function(prop) if prop == "Text" then invamount = tonumber(invabt.Text) or 1 invamount=math.floor(invamount) if invamount<1 then invamount=1 SMsg("I c wut u did dar","Really red") end invabt.Text=invamount invcos3.Text = "Total Cost: " ..Cost[invs][2]*invamount end end)
  354. invabb.MouseButton1Up:connect(function()
  355. if not Cost[invs] then return end
  356. local tot = Cost[invs][2]*invamount
  357. if tot > p2.Points then SMsg("You need more " ..(tot-p2.Points).. " Points.","Really red") return end
  358. p2.Points=p2.Points-tot
  359. p2.inv[invs]=p2.inv[invs]+invamount
  360. SMsg("-" ..tot.. " Points (" ..p2.Points.. ")","Olive")
  361. SMsg("+" ..invamount.. " " ..invs.. " Ammos (" ..p2.inv[invs].. ")","Olive")
  362. updateinv(lastinvupdate)
  363. invload(invi)
  364. end)
  365.  
  366.  
  367. invb.MouseButton1Up:connect(function()
  368. if not Cost[invs] then return end
  369. if Cost[invs][1] > p2.Points then SMsg("You need more " ..(Cost[invs][1]-p2.Points).. " Points.","Really red") return end
  370. local wiprank = Cost[invs][3]
  371. if wiprank and p2.Rank==1 then SMsg("This weapon is " ..therankname[wiprank].. " Only!","Really red") return end
  372. p2.Points=math.floor((p2.Points-Cost[invs][1])*1000)/1000
  373. p2.inv["x" ..invs]=mf(st.tick+(weptime*multi2))
  374. SMsg("-" ..Cost[invs][1].. " Points (" ..p2.Points.. ")","Olive")
  375. SMsg(invs.. " Succesfully bought","Olive")
  376. updateinv(lastinvupdate)
  377. invload(invi)
  378. end)
  379.  
  380. Switch = function()
  381. if St.Swapping then return end
  382. --return ammos
  383. local ogn = awep[invi]
  384. if wep[invi][ogn] and wep[invi][ogn].Reclip then p2.inv[ogn]=p2.inv[ogn]+(amz[invi].a+amz[invi].ma)
  385. SMsg("+" ..(amz[invi].a+amz[invi].ma).. " " ..ogn.. " Ammos. (" ..p2.inv[ogn].. ")","Olive")
  386. end
  387. --
  388. awep[invi] = invs
  389. if wep[invi][invs].Reclip then
  390. local maxes = wep[invi][invs].MaxAmmo*wep[invi][invs].MaxClip
  391. maxes = p2.inv[invs] >= maxes and maxes or p2.inv[invs]
  392. p2.inv[invs]=p2.inv[invs]-maxes
  393. SMsg("-" ..maxes.. " " ..invs.. " Ammos. (" ..p2.inv[invs].. ")","Olive")
  394. amz[invi].a = 0
  395. amz[invi].ma = maxes
  396. else
  397. amz[invi].a = 0
  398. amz[invi].ma = 0
  399. end
  400. updateinv(lastinvupdate)
  401. invload(invi)
  402. Swap(invi)
  403. _G.cs = awep
  404. end
  405. inve.MouseButton1Up:connect(function()
  406. Switch()
  407. end)
  408.  
  409. lastinvupdate = 1
  410. updateinv = function(i)
  411. lastinvupdate=i
  412. if invl[i][1] == "" then return end
  413. invs = invl[i][1]
  414. invsel.Text = "Selected: " ..invs
  415. invcos.Text = "Costs: " ..(Cost[invs][1] or "--")
  416. invcos2.Text = "Costs per bullet/use: " ..(Cost[invs][2] or "--")
  417. invcos3.Text = "Total Cost: " ..Cost[invs][2]*invamount
  418. invab.Visible=wep[invi][invs].Reclip and true or false -- < , doesnt, > ,does
  419. invb.Visible=p2.inv["x" ..invs]<st.tick and true or false
  420. invtim.Visible=p2.inv["x" ..invs]>st.tick and true or false
  421. inve.Visible=p2.inv["x" ..invs]>st.tick and true or false
  422. end
  423. invl = {} -- list
  424. for i=1,20 do
  425. local nv1=qi{"TextButton",invv,[bc3]=bc("Really black").Color,TextColor3=bc("White").Color,Position=ud(0,0,0,(i-1)*15),Size=ud(0,220,0,15),Font="ArialBold",FontSize="Size14",[bgt]=0.4,ZIndex=8,[bsp]=0,[txa]="Left"}
  426. local nv2=qi{"TextLabel",invv,TextColor3=bc("White").Color,Position=ud(0,0,0,(i-1)*15),Size=ud(0,220,0,15),Font="ArialBold",FontSize="Size14",[bgt]=1,ZIndex=8,[bsp]=0,[txa]="Right"}
  427. invl[i] = {"",nv1,nv2}
  428. nv1.MouseButton1Up:connect(function()
  429. updateinv(i)
  430. end)
  431. nv1.MouseButton2Up:connect(function()
  432. updateinv(i)
  433. if p2.inv["x" ..invs]<st.tick then return end
  434. Switch()
  435. end)
  436. end
  437. invi = nil -- i select
  438. invs = "" -- wpn select
  439. for i=1,5 do
  440. if i==5 then
  441. local nv1 = qi{"TextButton",inv,[bc3]=bc("Dark stone grey").Color,Text="?",TextColor3=bc("White").Color,Position=ud(0,5+((220/5)*(i-1)),0,20),Size=ud(0,220/5,0,20),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0}
  442. nv1.MouseButton1Up:connect(function() invload(tonumber(nv1.Text)) end)
  443. local co=0
  444. --stuff
  445. for i=20,co+1,-1 do
  446. invl[i][1]=""
  447. invl[i][2].Visible=false
  448. invl[i][3].Visible=false
  449. end
  450. else
  451. local nv1 = qi{"TextButton",inv,[bc3]=bc("Dark stone grey").Color,Text=i,TextColor3=bc("White").Color,Position=ud(0,5+((220/5)*(i-1)),0,20),Size=ud(0,220/5,0,20),Font="ArialBold",FontSize="Size24",ZIndex=8,[bsp]=0}
  452. nv1.MouseButton1Up:connect(function() invload(tonumber(nv1.Text)) end)
  453. end
  454. invload = function(xi)
  455. invi = xi
  456. local co = 0
  457. for i,v in pairs(wep[invi]) do
  458. co = co +1
  459. invl[co][1]=i
  460. invl[co][2].Text=i
  461. invl[co][2].TextColor3= bc(p2.inv["x" ..i]>st.tick and "White" or "Dark stone grey").Color
  462. invl[co][3].Text=wep[xi][i].Reclip and "x " ..p2.inv[i] or "---"
  463. invl[co][3].TextColor3= invl[co][2].TextColor3
  464. invl[co][2].Visible=true
  465. invl[co][3].Visible=true
  466. end
  467. for i=20,co+1,-1 do
  468. invl[i][1]=""
  469. invl[i][2].Visible=false
  470. invl[i][3].Visible=false
  471. end
  472. end
  473. end
  474.  
  475. hurt1 = qi{"Frame",fr,Size=ud(1,0,1,0),Active=false,[bgt]=1,[bc3]=bc("Really red").Color,ZIndex=4}
  476. hurt2 = qi{"ImageLabel",fr,Size=ud(5,0,5,0),Position=ud(-2.5,0,-2.5,0),Active=false,[bgt]=1,Image=asset.."34854607",ZIndex=5}
  477.  
  478. oldhealth=1/0
  479. hu.HealthChanged:connect(function()
  480. if oldhealth>hu.Health then
  481. hurt1.Transparency=0.5
  482. local ad = 0.25
  483. hurt2.Size=ud(1+ad,0,1+ad,0)
  484. hurt2.Position=ud(-ad/2,0,-ad/2,0)
  485. end
  486. end)
  487.  
  488. gmed = qi{"ImageLabel",fr,Position=ud(0.5,-400,0.75,0),Size=ud(0,800,0,40),Visible=false,Active=false,[bsp]=0,[bgt]=0,[bc3]=bc("Dark stone grey").Color,Image=asset.."48965808"}
  489. gmedbar = qi{"ImageLabel",gmed,Position=ud(0,2,0,2),Size=ud(1,-4,1,-4),[bsp]=0,[bgt]=0,[bc3]=bc("Bright red").Color,Image=asset.."48965808"}
  490. gmedperc = qi{"TextLabel",gmed,Size=ud(1,0,1,0),[bgt]=1,Font="ArialBold",FontSize="Size36",TextColor3=bc("White").Color}
  491. gmedt = qi{"TextLabel",gmed,Size=ud(1,0,1,0),Position=ud(0,0,-1,0),[bgt]=1,Font="ArialBold",FontSize="Size36",TextColor3=bc("White").Color}
  492.  
  493.  
  494. local specting = 0
  495. spectate = qi{"TextButton",fr,Visible=false,Position=ud(0.5,-50,0.48,0),Size=ud(0,100,0,40),Text="Spectate",[bc3]=bc("Black").Color,Font="ArialBold",FontSize="Size24",TextColor3=bc("White").Color}
  496. guieffect1(spectate,1)
  497. spectate.MouseButton1Up:connect(function()
  498. local ii=-1
  499. for i,v in pairs(game:service'Players':GetPlayers()) do
  500. if v:findFirstChild("leaderstats") and v.Character and v.Character:findFirstChild("Humanoid") and v.Character.Humanoid.Health>0 then
  501. ii=ii+1
  502. local nv1 = qi{"TextButton",spectate,Position=ud(1,0,0,ii*26),Size=ud(0,200,0,26),Text=v.Name,[bc3]=bc("Black").Color,Font="ArialBold",FontSize="Size18",TextColor3=bc("White").Color}
  503. guieffect1(nv1,1)
  504. nv1.MouseButton1Down:connect(function()
  505. if v:findFirstChild("leaderstats") and v.Character and v.Character:findFirstChild("Humanoid") and v.Character.Humanoid.Health>0 then
  506. local kiv = v.Character.Head
  507. specting=specting+1
  508. cam.CameraSubject = v.Character.Humanoid
  509. else
  510. nv1:Remove()
  511. end
  512. end)
  513. end
  514. end
  515. end)
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522. lboard = qi{"Frame",fr,Position=ud(0.5,-500,0.05,0),Size=ud(0,1000,0,400),Visible=false,Active=false,BorderColor3=bc("Lime green").Color,[bgt]=0.5,[bc3]=bc("Black").Color,ZIndex=4}
  523. local tepos = ud(0,5,0,10)
  524. local n1v1 = qi{"TextLabel",lboard,Text="Name",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  525. tepos = tepos+ud(0,135,0,0)
  526. local n2v1 = qi{"TextLabel",lboard,Text="Rank",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  527. tepos = tepos+ud(0,90,0,0)
  528. local n3v1 = qi{"TextLabel",lboard,Text="Level",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  529. tepos = tepos+ud(0,90,0,0)
  530. local n4v1 = qi{"TextLabel",lboard,Text="Points",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  531. tepos = tepos+ud(0,135,0,0)
  532. local n5v1 = qi{"TextLabel",lboard,Text="Team",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  533. tepos = tepos+ud(0,60,0,0)
  534. local n6v1 = qi{"TextLabel",lboard,Text="Kills",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  535. tepos = tepos+ud(0,90,0,0)
  536. local n7v1 = qi{"TextLabel",lboard,Text="Deaths",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  537. tepos = tepos+ud(0,90,0,0)
  538. local n8v1 = qi{"TextLabel",lboard,Text="Round Kills",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  539. tepos = tepos+ud(0,90,0,0)
  540. local n9v1 = qi{"TextLabel",lboard,Text="Spray",TextColor3=bc("White").Color,Position=tepos,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  541.  
  542.  
  543. maxp = 8
  544. for i=1,maxp do
  545. local nv1=qi{"Frame",lboard,Name=i,[bgt]=1,Size=ud(1,0,1,0),Visible=false}
  546. qi{"TextLabel",nv1,Name="name",TextColor3=bc("White").Color,Position=n1v1.Position+ud(0,0,0,20*i),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  547. qi{"TextLabel",nv1,Name="Rank",TextColor3=bc("White").Color,Position=n2v1.Position+ud(0,0,0,20*i),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  548. qi{"TextLabel",nv1,Name="Level",TextColor3=bc("White").Color,Position=n3v1.Position+ud(0,0,0,20*i),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  549. qi{"TextLabel",nv1,Name="Points",TextColor3=bc("White").Color,Position=n4v1.Position+ud(0,0,0,20*i),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  550. qi{"TextLabel",nv1,Name="Team",TextColor3=bc("White").Color,Position=n5v1.Position+ud(0,0,0,20*i),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  551. qi{"TextLabel",nv1,Name="Kills",TextColor3=bc("White").Color,Position=n6v1.Position+ud(0,0,0,20*i),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  552. qi{"TextLabel",nv1,Name="Deaths",TextColor3=bc("White").Color,Position=n7v1.Position+ud(0,0,0,20*i),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  553. qi{"TextLabel",nv1,Name="Kills2",TextColor3=bc("White").Color,Position=n8v1.Position+ud(0,0,0,20*i),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",ZIndex=4}
  554. local spra=qi{"ImageLabel",nv1,Name="Spray",Position=n9v1.Position+ud(0,0,0,20*i-10),[bgt]=0.8,Size=ud(0,20,0,20),ZIndex=4}
  555. guieffect1(spra,5)
  556. end
  557.  
  558. servertime = qi{"TextLabel",lboard,Text="",TextColor3=bc("White").Color,Position=ud(0,125,1,-54),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",[tya]="Top",ZIndex=4}
  559. roundt = qi{"TextLabel",lboard,Text="",TextColor3=bc("White").Color,Position=ud(0,5,1,-54),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",[tya]="Top",ZIndex=4}
  560. mapname = qi{"TextLabel",lboard,Text="",TextColor3=bc("White").Color,Position=ud(0,5,1,-36),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",[tya]="Top",ZIndex=4}
  561. modename = qi{"TextLabel",lboard,Text="",TextColor3=bc("White").Color,Position=ud(0,5,1,-18),Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color,[txa]="Left",[tya]="Top",ZIndex=4}
  562.  
  563.  
  564. modegui = qi{"Frame",fr,[bgt]=1,Size=ud(1,0,1,0)}
  565. for i=1,10 do
  566. local new = qi{"Frame",modegui,[bgt]=1,Size=ud(1,0,1,0),Visible=false,Active=false,Name=i}
  567. end
  568. local nv1 = qi{"TextLabel",modegui[1],Name="t1",TextColor3=bc(teamcol[1]).Color,Position=ud(0.5,-160-60,1,-30),Size=ud(0,120,0,30),Font="ArialBold",FontSize="Size14",TextWrap=true,[tya]="Top",ZIndex=3,[bgt]=1,[tst]=0,[tsc]=bc("Black").Color}
  569. local nv1 = qi{"TextLabel",modegui[1],Name="t2",TextColor3=bc(teamcol[2]).Color,Position=ud(0.5,160-60,1,-30),Size=ud(0,120,0,30),Font="ArialBold",FontSize="Size14",TextWrap=true,[tya]="Top",ZIndex=3,[bgt]=1,[tst]=0,[tsc]=bc("Black").Color}
  570. local nv1 = qi{"TextLabel",modegui[2],Name="t1",TextColor3=bc(teamcol[1]).Color,Position=ud(0.5,-160-60,1,-30),Size=ud(0,120,0,30),Font="ArialBold",FontSize="Size14",TextWrap=true,[tya]="Top",ZIndex=3,[bgt]=1,[tst]=0,[tsc]=bc("Black").Color}
  571. local nv1 = qi{"TextLabel",modegui[2],Name="t2",TextColor3=bc(teamcol[2]).Color,Position=ud(0.5,160-60,1,-30),Size=ud(0,120,0,30),Font="ArialBold",FontSize="Size14",TextWrap=true,[tya]="Top",ZIndex=3,[bgt]=1,[tst]=0,[tsc]=bc("Black").Color}
  572. local nv1 = qi{"TextLabel",modegui[3],Name="t1",TextColor3=bc(teamcol[1]).Color,Position=ud(0.5,-160-60,1,-30),Size=ud(0,120,0,30),Font="ArialBold",FontSize="Size14",TextWrap=true,[tya]="Top",ZIndex=3,[bgt]=1,[tst]=0,[tsc]=bc("Black").Color}
  573. local nv1 = qi{"TextLabel",modegui[3],Name="t2",TextColor3=bc(teamcol[2]).Color,Position=ud(0.5,160-60,1,-30),Size=ud(0,120,0,30),Font="ArialBold",FontSize="Size14",TextWrap=true,[tya]="Top",ZIndex=3,[bgt]=1,[tst]=0,[tsc]=bc("Black").Color}
  574.  
  575. local nv2 = qi{"ImageLabel",modegui[4],Name="j4",Position=ud(0.5,-400,0.1,0),Size=ud(0,800,0,40),Active=false,[bsp]=0,[bgt]=0,[bc3]=bc("Dark stone grey").Color,Image=asset.."48965808"}
  576. local nv1 = qi{"ImageLabel",nv2,Name="bar",Position=ud(0,2,0,2),Size=ud(1,-4,1,-4),[bsp]=0,[bgt]=0,[bc3]=bc("Bright red").Color,Image=asset.."48965808"}
  577. local nv1 = qi{"TextLabel",nv2,Name="health",Size=ud(1,0,1,0),[bgt]=1,Font="ArialBold",FontSize="Size36",TextColor3=bc("White").Color}
  578. local nv1 = qi{"TextLabel",nv2,Name="juger",Size=ud(1,0,1,0),Position=ud(0,0,-1,0),[bgt]=1,Font="ArialBold",FontSize="Size36",TextColor3=bc("White").Color}
  579.  
  580.  
  581. cfm = 5
  582. cft = 20
  583. cf = qi{"Frame",fr,Size=ud(0,800,0,cfm*cft),Position=ud(0,10,0,15),Name="cf",ClipsDescendants=true,[bgt]=1}
  584. Chatf = qi({"Frame",cf,ClipsDescendants=true,Size=ud(1,20,0,0),Position=ud(0,10,0,0),[bgt]=1,Active=false,[bc3]=bc("Black").Color,[bsp]=0})
  585. addscroll(cf,"Chats",Chatf,cfm*cft,ud(0,10,0,cfm*cft),ud(1,-800,0,0),cfm,1,ud(0,10,0,0))
  586.  
  587.  
  588. mfm = 10
  589. mft = 14
  590. mf2 = qi{"Frame",fr,Size=ud(0,450,0,mfm*mft),Position=ud(0,10,1,-230+10),Name="mf2",ClipsDescendants=true,[bgt]=1}
  591. Msgf = qi({"Frame",mf2,ClipsDescendants=true,Size=ud(1,20,0,0),Position=ud(0,10,0,0),[bgt]=1,Active=false,[bc3]=bc("Black").Color,[bsp]=0})
  592. addscroll(mf2,"Msgs",Msgf,mfm*mft,ud(0,10,0,mfm*mft),ud(1,-450,0,0),mfm,1,ud(0,10,0,0))
  593.  
  594. wait(0.5)
  595. absx,absy = g.AbsoluteSize.X,g.AbsoluteSize.Y
  596. local vv1 = 680 local vv2 = vv1/2
  597. scope = qi{"Frame",fr,Size=ud(1,0,1,0),Visible=false,Active=false,[bgt]=1}
  598. local ww = qi{"Frame",scope,Size=ud(0,absx,0,(absy-vv1)/2),[bc3]=bc("Really black").Color,[bsp]=0}
  599. local ww = qi{"Frame",scope,Size=ud(0,absx,0,(absy-vv1)/2),Position=ud(0,0,0,absy-((absy-vv1)/2)),[bc3]=bc("Really black").Color,[bsp]=0}
  600. local ww = qi{"Frame",scope,Size=ud(0,(absx/2)-vv2,0,absy),ZIndex=2,[bc3]=bc("Really black").Color,[bsp]=0}
  601. local ww = qi{"Frame",scope,Size=ud(0,(absx/2)-vv2,0,absy),Position=ud(0,absx-((absx/2)-vv2),0,0),[bc3]=bc("Really black").Color,[bsp]=0}
  602. local ww = qi{"ImageLabel",scope,Size=ud(0,vv1+4,0,vv1+4),Position=ud(0,(absx/2)-vv2-4,0,(absy-vv1)/2-4),[bc3]=bc("White").Color,[bgt]=0.85,Image=asset .. "74406638",[bsp]=0}
  603. local ww = qi{"Frame",scope,Size=ud(0,absx/2,0,4),Position=ud(0,-30,0.5,-2),[bc3]=bc("Really black").Color,[bsp]=0}
  604. local ww = qi{"Frame",scope,Size=ud(0,absx/2,0,4),Position=ud(0.5,30,0.5,-2),[bc3]=bc("Really black").Color,[bsp]=0}
  605. local ww = qi{"Frame",scope,Size=ud(0,4,0,absy/2),Position=ud(0.5,-2,0,-30),[bc3]=bc("Really black").Color,[bsp]=0}
  606. local ww = qi{"Frame",scope,Size=ud(0,4,0,absy/2),Position=ud(0.5,-2,0.5,30),[bc3]=bc("Really black").Color,[bsp]=0}
  607.  
  608.  
  609.  
  610. csize = 22
  611. cran = 2
  612. chran ={}
  613. chran[1] = 0 -- velocity accuracy
  614.  
  615. croco = "White"
  616. x1 = qi{"Frame",fr,Size=ud(0,csize,0,4),Name="ch",[bsp]=0,[bc3]=bc(croco).Color,ZIndex=10}
  617. x2 = qi{"Frame",fr,Size=ud(0,csize,0,4),Name="ch",[bsp]=0,[bc3]=bc(croco).Color,ZIndex=10}
  618. y1 = qi{"Frame",fr,Size=ud(0,4,0,csize),Name="ch",[bsp]=0,[bc3]=bc(croco).Color,ZIndex=10}
  619. y2 = qi{"Frame",fr,Size=ud(0,4,0,csize),Name="ch",[bsp]=0,[bc3]=bc(croco).Color,ZIndex=10}
  620. for i,v in pairs({x1,x2,y1,y2}) do
  621. qi{"Frame",v,Size=ud(1,8,1,8),Position=ud(0,-4,0,-4),Name="hitmsg",[bsp]=0,[bc3]=bc("Really red").Color,Transparency=1}
  622. end
  623.  
  624. gum = qi{"TextLabel",fr,Text="36",FontSize="Size36",Font="ArialBold",[txa]="Left",Position=ud(1,-60,1,-70),TextColor3=bc("Black").Color,ZIndex=3}
  625. gua = qi{"TextLabel",fr,Text="36",FontSize="Size24",Font="ArialBold",[txa]="Right",Position=ud(1,-55,1,-50),TextColor3=bc("Black").Color,ZIndex=3}
  626. gun = qi{"TextLabel",fr,Text="36",FontSize="Size24",Font="ArialBold",[txa]="Right",Position=ud(1,-55,1,-50+20),TextColor3=bc("Black").Color,ZIndex=3}
  627. gud = qi{"Frame",fr,Position=ud(-1,0,-1,0),ZIndex=3,[bgt]=0.3,[bsp]=0}
  628.  
  629.  
  630. wtabg = qi{"TextLabel",fr,Visible=false,Size=ud(0.6,0,0,70),Position=ud(0.2,0,0,-2),[bgt]=1,Text=""}
  631. wtab = {}
  632. for i=1,5 do
  633. wtab[i]= qi{"TextLabel",wtabg,Font="ArialBold",FontSize="Size18",Text="c:",Size=ud(0.2,-2,1,-2),Position=ud((0.2)*(i-1),1,0,1),[bgt]=0.5,TextWrap=true,[bc3]=bc("Lime green").Color,[bsp]=0}
  634. end
  635.  
  636. hitmsg = qi{"TextLabel",fr,TextTransparency=1,Text="Hit!",FontSize="Size18",Position=ud(0.5,0,0.5,-85),TextColor3=bc("Really black").Color}
  637.  
  638.  
  639.  
  640. desc1 = qi{"TextLabel",nil,Font="ArialBold",FontSize="Size12",[bsp]=0,[tya]="Top",[txa]="Left",TextColor3=bc("White").Color,[bc3]=bc("Black").Color,[bgt]=0.8}
  641. desc2 = qi{"TextLabel",nil,[bsp]=0,[tya]="Top",[txa]="Left",TextColor3=bc("White").Color,[bc3]=bc("Black").Color,[bgt]=0.8}
  642.  
  643. bbg = qi{"BillboardGui",nil,Size=ud(0,20,0,20),Active=true} --StudsOffset = Vector3.new(0,5,0)
  644. bbgt = qi{"TextLabel",bbg,Text="36",FontSize="Size18",Font="ArialBold",TextColor3=bc("White").Color,[tst]=0,[tsc]=bc("Black").Color}
  645.  
  646.  
  647. g321g = qi{"Frame",fr,Size=ud(0,340,0,340),Position=ud(0.5,-170,0.5,-170),ClipsDescendants=true,Transparency=1,Visible=false}
  648. gg321 = qi{"Frame",g321g,Size=ud(1,0,1,0),Position=ud(0,0,0,0),Transparency=1}
  649. g321 = {}
  650. for i=0,3 do
  651. g321[i] = qi{"ImageLabel",gg321,Size=ud(1,0,1,0),Position=ud(0,0,0,(340*i)),Image=(i~=0 and ds["UT" ..i] or ds.UTgo),Transparency=1}
  652. end
  653.  
  654. gtmw = qi{"Frame",fr,Size=ud(0,800,0,200),Position=ud(0.5,-800/2,0.325,-100),ClipsDescendants=true,Transparency=1,Visible=false}
  655. ggtmw = qi{"ImageLabel",gtmw,Size=ud(1,0,1,0),Position=ud(0,0,0,-300),Transparency=1,Image=ds.UT1w}
  656.  
  657. gsw = qi{"Frame",fr,Size=ud(0,700,0,200),Position=ud(0.5,-700/2,0.60,-100),ClipsDescendants=true,Transparency=1,Visible=false}
  658. ggsw = qi{"ImageLabel",gsw,Size=ud(1,0,1,0),Position=ud(0,0,0,300),Transparency=1,Image=ds.UTyw}
  659.  
  660. gmmw = qi{"Frame",fr,Size=ud(0,700,0,200),Position=ud(0.5,-350,0.2,0),ClipsDescendants=true,Transparency=1,Visible=false}
  661. gmw = qi{"TextLabel",gmmw,Size=ud(1,0,1,0),Position=ud(0,0,0,300),[bgt]=1,Font="ArialBold",FontSize="Size48",TextColor3=bc("Institutional white").Color,TextWrap=true}
  662.  
  663.  
  664. Spray = function()
  665. local ima = asset .. p2.Spray
  666. local bhit,bpos=ray(he.Position,mous.hit.p - (cn(he.Position,mous.hit.p)*cn(0,0,-1)).p,Props2)
  667. if (bhit and bhit.Parent~=ch and bhit.Parent.Parent~=ch) and bpos and bhit.Anchored and (bpos - he.Position).magnitude < 15 and bhit.Parent:findFirstChild("Humanoid") == nil and bhit.Parent.Parent:findFirstChild("Humanoid")==nil then
  668. BulletHole(bpos,bhit,5,ima,Props2)
  669. else
  670. SMsg("Spray Failed!","Really red")
  671. end
  672. end
  673.  
  674. guiwin = function(win)
  675. ggsw.Image = (p2.Team==tonumber(win)) and ds.UTyw or ds.UTyl
  676. ggtmw.Image = ds["UT" ..win.. "w"]
  677. ggsw:TweenPosition(ud(0,0,0,-20),nil,nil,0.5)
  678. ggtmw:TweenPosition(ud(0,0,0,20),nil,nil,0.5) wait(0.5)
  679. ggsw:TweenPosition(ud(0,0,0,0),nil,nil,0.3)
  680. ggtmw:TweenPosition(ud(0,0,0,0),nil,nil,0.3) wait(0.3)
  681. wait(7)
  682. ggsw:TweenPosition(ud(0,0,0,-20),nil,nil,0.5)
  683. ggtmw:TweenPosition(ud(0,0,0,20),nil,nil,0.5) wait(0.5)
  684. ggsw:TweenPosition(ud(0,0,0,300),nil,nil,0.3)
  685. ggtmw:TweenPosition(ud(0,0,0,-300),nil,nil,0.3) wait(0.3)
  686. end
  687.  
  688. --c/t=workspace.Mod.GameStats.Map t.Value=0 wait() t.Value=1
  689. Mod.GameStats.Map.Changed:connect(function(pr)
  690. local ma = Mod.GameStats.Map.Value if ma==0 then return end
  691. local mo = Mod.GameStats.Mode.Value
  692. gmmw.Visible=true
  693. gmw.Text = "Map: " ..Maps[ma][1].. [[
  694. Mode: ]] ..Modes[mo][1]
  695. gmw:TweenPosition(ud(0,0,0,-20),nil,nil,0.5) wait(0.5)
  696. gmw:TweenPosition(ud(0,0,0,0),nil,nil,0.3) wait(0.3)
  697. wait(3)
  698. gmw.Text = ModeDesc[mo]
  699. wait(7)
  700. gmw:TweenPosition(ud(0,0,0,-20),nil,nil,0.5) wait(0.5)
  701. gmw:TweenPosition(ud(0,0,0,300),nil,nil,0.3) wait(0.3)
  702. gmmw.Visible=false
  703. end)
  704.  
  705. --c/t=workspace.Mod.GameStats.win t.Value="" wait() t.Value = "1"
  706. Mod.GameStats.win.Changed:connect(function(pr)
  707. local win = Mod.GameStats.win.Value
  708. gtmw.Visible=true
  709. gsw.Visible=true
  710. if win == "1" then
  711. guiwin(win)
  712. elseif win == "2" then
  713. guiwin(win)
  714. elseif win == "n" then
  715. ggsw.Image = ds.UTnw
  716. ggsw:TweenPosition(ud(0,0,0,-20),nil,nil,0.5) wait(0.5)
  717. ggsw:TweenPosition(ud(0,0,0,0),nil,nil,0.3) wait(0.3)
  718. wait(7)
  719. ggsw:TweenPosition(ud(0,0,0,-20),nil,nil,0.5) wait(0.5)
  720. ggsw:TweenPosition(ud(0,0,0,300),nil,nil,0.3) wait(0.3)
  721. elseif win ~= "" then
  722. ggsw.Image = string.find(win,Player.Name) and ds.UTyw or ds.UTyl
  723. ggsw:TweenPosition(ud(0,0,0,-20),nil,nil,0.5) wait(0.5)
  724. ggsw:TweenPosition(ud(0,0,0,0),nil,nil,0.3) wait(0.3)
  725. wait(7)
  726. ggsw:TweenPosition(ud(0,0,0,-20),nil,nil,0.5) wait(0.5)
  727. ggsw:TweenPosition(ud(0,0,0,300),nil,nil,0.3) wait(0.3)
  728. end
  729. gtmw.Visible=false
  730. gsw.Visible=false
  731. end)
  732.  
  733. --c/t=workspace.Mod.GameStats.Time t.Value = 4 wait() t.Value=10
  734. Mod.GameStats.Time.Changed:connect(function(pr)
  735. local tim = Mod.GameStats.Time.Value
  736. if tim == 3 and not st.Fire and st.Condition=="Playing" then
  737. g321g.Visible=true
  738. gg321.Position = ud(0,0,0,-340*4)
  739. for i=3,0,-1 do
  740. gg321:TweenPosition(ud(0,0,0,(-340*(i))+25),nil,nil,0.4) wait(0.4) so(asset..("15666462"),m2,1,i==0 and 1.5 or 1)
  741. gg321:TweenPosition(ud(0,0,0,(-340*(i))),nil,nil,0.2) wait(0.2)
  742. wait(0.4)
  743. end
  744. gg321:TweenPosition(ud(0,0,0,(-340*(-1))),nil,nil,0.4) wait(0.4)
  745. g321g.Visible=false
  746. elseif tim == 10 and st.Condition == "Playing" and st.Fire then
  747. for i=10,1,-1 do
  748. if st.Time < 1 then break end
  749. so(asset..("15666462"),m2,0.3,1.5)
  750. timm.TextColor3=bc(i%2==0 and "White" or "Bright red").Color
  751. wait(1)
  752. end
  753. timm.TextColor3=bc("White").Color
  754. end
  755. end)
  756.  
  757. HitMsg = function(headz)
  758. hitmsg.TextTransparency = 0.2
  759. hitmsg.Text = headz==1 and "Head Shot!" or "Hit!"
  760. for i,v in pairs({x1,x2,y1,y2}) do
  761. v.hitmsg[bgt] = 0.1
  762. end
  763. end
  764.  
  765. SButtons = qi{"Model",m2,Name="SButtons"}
  766. MArms = qi{"Model",m2,Name="Arms"}
  767. Sbox = qi{"Model",g,Name="Sbox"}
  768. sbox1 = qi{"SelectionBox",Sbox,Color=bc("White")}
  769. SLid = qi{"Model",m2,Name="SLid"}
  770.  
  771. AddLid = function(wp)
  772. local m22 = qi{"Model",SLid,Name=wp.Parent.Name}
  773. local base = wp.BoxBase
  774. local lid = wp.BoxSide:Clone() lid.Parent = m22 lid.Name="Lid"
  775. lid.Size = v3(10,0.1,5) lid.CFrame=base.CFrame*cn(0,1.3,0)
  776. local tt = pa(m22,"weparea", "Block", 10.2,3.5,5.2, false,true,1,0,"") tt.CFrame = base.CFrame
  777. local lidval=qi{"NumberValue",tt,Name="Stat",Value=0}
  778. lidval.Changed:connect(function(prop) if lidval.Value==1 then for i=0,60,3 do lid.CFrame=base.CFrame*cn(0,1.3,2.5)*ca(rd(i),0,0)*cn(0,0,-2.5) wait() end lidval.Value=2 end end)
  779. wp.Changed:connect(function(pro) wait(0.1) if not wp or not wp.Parent then tt:Remove() lid:Remove() end end)
  780. end
  781.  
  782.  
  783.  
  784. AddLid(LoS.WeaponBox)
  785. for i,v in pairs(Mod.Map.WeaponArea:children()) do
  786. if v.Name=="WeaponBox" then
  787. AddLid(v)
  788. end
  789. end
  790. Mod.Map.WeaponArea.ChildAdded:connect(function(v) wait(0.5)
  791. if v.Name=="WeaponBox" then
  792. AddLid(v)
  793. end
  794. end)
  795.  
  796. Reload = function(wee,nw)
  797. St.a="Reload"
  798. if amz[cwep].a == wee.MaxAmmo then
  799. SMsg("You are fully reloaded already!","Bright red") wait(0.3)
  800. elseif amz[cwep].ma == 0 then
  801. SMsg("You have no clips left!","Bright red") wait(0.3)
  802. else
  803. local use = wee.Stats
  804. St.ArmAiming = false
  805. lw.C0=use[1] lw.C1=use[2] rw.C0=use[3] rw.C1=use[4]
  806. wee:Reload(cwep,wee.MaxAmmo,nw)
  807. St.ArmAiming = true
  808. end
  809. St.a="None"
  810. end
  811.  
  812. nwb = nil -- nearest weapon box (inventory/shop)
  813.  
  814. bin = qi{"Tool",nil,Name=""} qi{"Part",bin,Name="Handle",Size=v3(0,0,0)}
  815. w = {}
  816. Button = false
  817. bin.Equipped:connect(function(mouse)
  818. mous = mouse
  819. mouse.Icon = asset .. "58334502" -- remove icon, crosshair is made out of 4 guis
  820. bin:Remove() -- Activate :3
  821. mouse.Button1Down:connect(function()
  822. Button = true
  823. local mt = mouse.Target
  824. local nw = awep[cwep]
  825. local wee = wep[cwep][nw]
  826. local use = wee.Stats
  827. --weapon box lid opener
  828. if mt and mt.Name == "weparea" and dis(to,mt) < 10 and mt.Stat.Value==0 then
  829. mt.Stat.Value=1
  830. end
  831. if mt and mt.Name=="bomb" and mt.Parent.Name=="Bomb" and mt.Parent.User.Value=="" and dis(to,mt)<12 and St.a=="None" then
  832. St.a="Bomb"
  833. BombFunc(mt.Parent) wait(0.5)
  834. St.a="None" return
  835. end
  836. if mt and mt.Name:sub(1,4) == "flag" and dis(to,mt)<10 and St.a=="None" then
  837. St.a="Flag"
  838. FlagFunc(mt) wait(0.5)
  839. St.a="None" return
  840. end
  841. if mt and (mt.Name == "weparea" or string.find(mt.Name:lower(),"sponsor")) and dis(to,mt) < 16 then return end
  842. --Melee anim -meanim
  843. if p2.ongame and st.Fire and st.Condition == "Playing" and St.a=="None" and amz[cwep].db<tick() and not wep[cwep][nw].Reload then
  844. St.a="Fire"
  845. St.ArmAiming = false
  846. --lw.C0=use[1] lw.C1=use[2] rw.C0=use[3] rw.C1=use[4]
  847. wep[cwep][nw].func()
  848. St.ArmAiming = true
  849. St.a="None"
  850. --if St.a=="Delay" or St.a=="Fire" or St.a=="Fire2" then St.a = "None" end
  851. end
  852. --Gun anim
  853. if p2.ongame and st.Fire and St.a=="None" and wep[cwep][nw].Reload and amz[cwep].a==0 then Reload(wee,nw) return end
  854. if p2.ongame and st.Fire and st.Condition == "Playing" and St.a=="None" and amz[cwep].db<tick() and wep[cwep][nw].Reload and amz[cwep].a>0 then St.a="Fire" wep[cwep][nw].func(cwep,nw) if St.a=="Delay" or St.a=="Fire" then St.a = "None" end return end
  855. -- Sponsor
  856. if mt and mt.Name=="SponsorButton" and mt:findFirstChild("id") and SButtons[mt.id.Value].Friction==0 then SButtons[mt.id.Value].Friction=1 end
  857.  
  858.  
  859. end) ---
  860.  
  861. mouse.Button1Up:connect(function() Button=false end)
  862.  
  863. mouse.KeyDown:connect(function(k) w[k:lower()] = false
  864. local acwep = awep[cwep]
  865. local mt = mouse.Target
  866. local nw = awep[cwep] local wee = wep[cwep][nw]
  867. for i=1,5 do
  868. if k == tostring(i) then
  869. wtab[i].Size=ud(0.2,-2,1.3,-2)
  870. end
  871. end
  872. if k == "m" then
  873. if St.MouseFree then St.MouseFree=false else St.MouseFree=true end
  874. elseif k == "n" then
  875. if infov.Visible then St.MouseFree=false infov.Visible = false else St.MouseFree=true infov.Visible = true end
  876. elseif k =="t" and St.a=="None" then St.a="Spray" Spray() wait(1) St.a="None"
  877. elseif k =="b" then
  878. if St.a=="None" and (mt and mt.Name=="weparea" and mt.Stat.Value==2 and dis(to,mt) < 8) then
  879. St.a="Inventory" St.MouseFree=true
  880. inv.Visible = true nwb = mt Spd[1]=0
  881. elseif inv.Visible then St.a="None"
  882. inv.Visible = false Spd[1]=1 St.MouseFree=false
  883. end
  884. elseif k == "e" then
  885. local uwep for i=cwep,cwep+4,1 do local ii = i%5==0 and 5 or i%5 if awep[ii]~="" and ii~=cwep then uwep=ii break end end if not uwep then return end if St.a=="None" or St.a=="Delay" then Swap(uwep) end
  886. elseif k == "q" then
  887. local uwep for i=cwep,cwep-4,-1 do local ii = i%5==0 and 5 or i%5 if awep[ii]~="" and ii~=cwep then uwep=ii break end end if not uwep then return end if St.a=="None" or St.a=="Delay" then Swap(uwep) end
  888. elseif k == "0" then
  889. lboard.Visible = true
  890. elseif k == "v" then
  891. wtabg.Visible = true
  892. elseif k == "z" and ZoomWeapon[acwep] and St.a=="None" then
  893. Scope(true)
  894. elseif k == "c" and not hu.Jump and not St.Crouch then
  895. Crouch(true)
  896. if awep[cwep] == "Mortar" then
  897. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Dark stone grey") table.insert(stands,ww)
  898. qi{"Weld",ww,Part0=to,Part1=ww,C0=cn(1.75,-1.7,0.35)*ca(rd(0),rd(10),0)} qi{"SpecialMesh",ww,MeshId=asset .. "6547801",Scale=v3(1.6,3.25,1.6)*0.05}
  899. end
  900. to["Neck"].C0 = to["Neck"].C0*cn(0,-1.25,0)
  901. tw2.C0=cn(0,-1.25,0)
  902. lh.C0 = cn(-1,0.25,-1)*ca(0,rd(-90),0)
  903. rh.C0 = cn(1,-1.25,-0.5)*ca(rd(-90),rd(90),0)
  904. elseif k == "r" and St.a=="None" and wee.Reload then
  905. Reload(wee,nw)
  906. elseif k == "f" and St.a=="None" and wee.Reclip and mt and ((mt.Name=="weparea" and mt.Stat.Value==2) or mt.Name=="ammopile") and dis(to,mt) < 8 then
  907. St.a="Reclip"
  908. if amz[cwep].ma+amz[cwep].a >= wee.MaxAmmo*wee.MaxClip then
  909. SMsg("You have Enough Ammos!","Bright red") wait(0.6)
  910. else
  911. local use = wee.Stats
  912. St.ArmAiming = false
  913. lw.C0=use[1] lw.C1=use[2] rw.C0=use[3] rw.C1=use[4]
  914. wee:Reclip(cwep,wee.MaxAmmo*wee.MaxClip,nw)
  915. St.ArmAiming = true
  916. end
  917. St.a="None"
  918.  
  919. end
  920. end)
  921. mouse.KeyUp:connect(function(k) w[k:lower()] = true
  922. local acwep = awep[cwep]
  923. for i=1,5 do
  924. if k == tostring(i) then
  925. wtab[i].Size=ud(0.2,-2,1,-2)
  926. if St.a=="None" or St.a=="Delay" then Swap(i) end
  927. end
  928. end
  929. if k == "v" then
  930. wtabg.Visible = false
  931. elseif k == "0" then
  932. lboard.Visible = false
  933. elseif k == "c" and St.Crouch then
  934. Crouch(false)
  935. elseif k == "z" and ZoomWeapon[acwep] then
  936. Scope(false)
  937. end
  938. end)
  939.  
  940.  
  941. mouse.Move:connect(function()
  942. local mt = mouse.Target
  943.  
  944.  
  945.  
  946. end)
  947.  
  948. end)
  949. -----Stat Variables
  950. pcall(function() ch.Suit:Remove() end) pcall(function() ch.Head2:Remove() end)
  951. pcall(function() to.lh2:Remove() end) pcall(function() to.rh2:Remove() end)
  952. suit = qi{"Model",ch,Name="Suit"}
  953. clearclass(ch,"Hat")
  954. local he2 = he:Clone() he2.Name = "Head2" he2.Parent = ch he2.face.Face="Front" he.face.Face="Bottom"
  955. sneck = qi{"Weld",he2,Part0=to,Part1=he2,C0=cn(0,1.5,0)}
  956. he.Transparency=1 he2.Transparency=0
  957.  
  958.  
  959. tbgc = {} -- mouse facing table
  960. Spd = {} -- walkspeed table
  961. Def = {} -- def table
  962.  
  963. St = {}
  964. St.Crosshair = true
  965. St.Swapping=false
  966. St.MouseFree=firstenter
  967. St.a = "None"
  968. St.Crouch = false
  969. St.Scoping = false
  970. St.ArmAiming = true
  971. St.Accuracy=0
  972. St.CamShakes = 0
  973. St.Shake=1/0
  974. St.Goo=0
  975. St.Tornado = nil
  976. pcall(function() to.bod:Remove() end)
  977. St.Body = qi{"BodyPosition",to,Name="bod",maxForce=v3(0,0,0)}
  978. u = 0.1
  979.  
  980. p2.def=1
  981. p2.ShowStat=true
  982.  
  983. FirePower=nil
  984. cam.CameraSubject = hu
  985.  
  986.  
  987. hu.Died:connect(function() wait()
  988. St.a = "Dead"
  989. inv.Visible=false
  990. p2.Deaths=p2.Deaths+1
  991. _G.as = amz
  992. if ongamez[st.Mode] then p2.ongame=false end
  993. pcall(function() flag.Transparency = 1 end) -- anti ctf glitch?...
  994. end)
  995.  
  996. -- c/pa(workspace,"","Block",3,3,3,true,true,0,0,"Black").CFrame=cn(0,3,0)
  997. -- c/v=qi{"ObjectValue",nil,Name="Killer",Value=workspace.DoogleFox.Humanoid} v.Parent=workspace.xdhunta1774
  998. ch.ChildAdded:connect(function(ki)
  999. if ki:IsA("ObjectValue") and ki.Name == "Killer" then
  1000. local kiv = ki.Value.Parent.Head
  1001. Player.CameraMode=0
  1002. cam.CameraSubject=kiv
  1003. hepos = he.Position
  1004. for i=0,0.75,0.025 do
  1005. cam.CoordinateFrame = cn(hepos:Lerp(kiv.Position+v3(0,3,0),i))
  1006. cam.Focus = kiv.CFrame
  1007. wait()
  1008. end
  1009. for i=0.75,1,0.01 do
  1010. cam.CoordinateFrame = cn(hepos:Lerp(kiv.Position+v3(0,3,0),i))
  1011. cam.Focus = kiv.CFrame
  1012. wait()
  1013. end
  1014. cam.CameraSubject = ki.Value
  1015. elseif ki.Name=="CamShake" then
  1016. local css = ki.Value ki:Remove()
  1017. so(asset.."3087031",m2,1,0.8)
  1018. for i=1,35 do
  1019. if i%5==0 then so(ds.Explode1,bb,1,rn(80,130)/100) end
  1020. cam.CoordinateFrame=cam.CoordinateFrame*cn(rn(-1,1)/(css),rn(-1,1)/(css),0)
  1021. wait(0.04)
  1022. end
  1023. end
  1024. end)
  1025.  
  1026. lh,rh = to["Left Hip"],to["Right Hip"]
  1027.  
  1028. pcall(function() newt=ch.Torso2 end)
  1029. to2 = qi{"Part",ch,Name="Torso2",formFactor="Custom",Size=v3(2,2,1)}
  1030. tw2 = qi{"Weld",to2,Name="tweld",Part0=to,Part1=to2}
  1031. to.Transparency=1
  1032.  
  1033. lh.Part0=to2 rh.Part0=to2
  1034.  
  1035. pcall(function() newt:Remove() end)
  1036.  
  1037. --twep = table list of weapon type names
  1038. --awep table of list of weapon names equipped
  1039. --cwep int number of current weapon type equipped
  1040. --wep = information
  1041.  
  1042.  
  1043. stands = {}
  1044.  
  1045.  
  1046. twep = {"Primary","Secondary","Triary","Misc","Mode"}
  1047. aawep = {}
  1048. aawep[1] = "Pistol"
  1049. aawep[2] = "Shotgun"
  1050. aawep[3] = ""
  1051. aawep[4] = ""
  1052. aawep[5] = ""
  1053. awep = _G.cs or aawep -- the weapons slotted in
  1054. _G.cs = awep
  1055.  
  1056. cwep = 1 -- current equipped weapon or else other if there is nothing equipped on 1
  1057.  
  1058. wep = {} -- this contains the 6 types of weapon tables
  1059. aamz = {}
  1060. --how it works:
  1061. --wep[type].WeaponName.Property=property
  1062. -- propertys: Damage, db(debounce/reload)
  1063. for i=1,5 do wep[i]={} aamz[i] = {} aamz[i].a = 0 aamz[i].ma = 0 aamz[i].db=tick() aamz[i].coo=0 end
  1064. aamz[1].ma = 48
  1065. aamz[2].ma = 40
  1066. amz = _G.as or aamz
  1067. _G.as = amz
  1068.  
  1069. pcall(function() to.lw:Remove() end)
  1070. pcall(function() to.rw:Remove() end)
  1071.  
  1072. handles = {} -- pieces of weapon meshes currently equipped / to be used on weapon swap
  1073.  
  1074. la0 = {cn(-1.5,0.5,0)}
  1075. ra0 = {cn(1.5,0.5,0)}
  1076. la1 = {cn(0,0.5,0)}
  1077. ra1 = {cn(0,0.5,0)}
  1078.  
  1079. la = ch["Left Arm"]
  1080. ra = ch["Right Arm"]
  1081. lw = qi{"Weld",to,Name="lw",Part0=to2,Part1=la}
  1082. rw = qi{"Weld",to,Name="rw",Part0=to2,Part1=ra}
  1083.  
  1084. local armcol = "Pastel brown"
  1085. local fla= pa(MArms,"","Block",0,0,0,false,false,0,0,armcol)
  1086. qi{"Weld",fla,Part0=la,Part1=fla,C0=cn(0,0,0.08)} qi{"SpecialMesh",fla,MeshId=ds.LeftArm}
  1087. local fra= pa(MArms,"","Block",0,0,0,false,false,0,0,armcol)
  1088. qi{"Weld",fra,Part0=ra,Part1=fra,C0=cn(0,0,0.08)} qi{"SpecialMesh",fra,MeshId=ds.RightArm}
  1089.  
  1090. pcall(function() ch.Health:Remove() end)
  1091. pcall(function() ch.clipper:Remove() end)
  1092. local clipper= pa(ch,"clipper","Block",0.5,1,0.75,false,false,0,0,"Black")
  1093. qi{"Weld",clipper,Part0=ch["Left Leg"],Part1=clipper,C0=cn(-0.75,0.5,0)}
  1094.  
  1095.  
  1096. for i,z in pairs(Props:children()) do if z.Name == Player.Name .. "prop" or z.Name == "ammo" .. Player.Name then z:Remove() end end
  1097.  
  1098. --lastdb = 0.1
  1099. gdb = function(waitz)
  1100. St.a = "Delay"
  1101. amz[cwep].db = tick()+(waitz/1)
  1102. amz[cwep].coo=(waitz/1) --lastdb = waitz/1
  1103. end
  1104.  
  1105. St.ScopeLimit = 3
  1106. cam.FieldOfView=70
  1107. Scope = function(onof)
  1108. if onof then
  1109. local bhit,bpos=ray(he.Position,mous.hit.p - (cn(he.Position,mous.hit.p)*cn(0,0,-1)).p,Props2)
  1110. local lim = (bpos-he.Position).magnitude
  1111. St.ScopeLimit= lim<4 and lim or 3
  1112. St.Scoping = onof
  1113. Spd[6] = 0.25
  1114. cam.FieldOfView=20
  1115. else
  1116. St.Scoping = onof
  1117. Spd[6] = 1
  1118. cam.FieldOfView=70
  1119. end
  1120. end
  1121.  
  1122. Crouch = function(doc)
  1123. if lh and rh then
  1124. if doc then
  1125. St.Crouch=true Spd[4]=awep[cwep]~="Mortar" and 0.4 or 0.1
  1126. else
  1127. St.Crouch=false Spd[4]=1
  1128. for i,v in pairs(stands) do v:Remove() stands[i]=nil end
  1129. lh.C0 = cn(-1,-1,0)*ca(0,rd(-90),0)
  1130. rh.C0 = cn(1,-1,0)*ca(0,rd(90),0)
  1131. to["Neck"].C0 = to["Neck"].C0*cn(0,1.25,0)
  1132. tw2.C0=cn(0,0,0)
  1133. end
  1134. end
  1135. end
  1136.  
  1137. novels = {}
  1138. novel = function(ob)
  1139. table.insert(novels,ob)
  1140. end
  1141.  
  1142.  
  1143. dlays = {}
  1144. dlayid = -5000
  1145. dlay = function(ta,fu,tiem,lt1)
  1146. local lt = lt1 or 1
  1147. dlays[dlayid] = {tick(),ta,fu,tiem,lt,0}
  1148. dlayid=dlayid+1
  1149. end
  1150.  
  1151. DmgRange = function(pos,rr2,dmg,velo,uses,ownerz)
  1152. local rr = rr2/2
  1153. local bpb = pos
  1154. pcall(function() bpb=bpb.Position end)
  1155. pcall(function() bpb=bpb.p end) --name,dmg,hit,uses,ownerz
  1156. GetRegion(bpb-v3(rr,rr,rr),bpb+v3(rr,rr,rr),function(v) Dmg(v.Name,dmg,nil,uses,ownerz) if velo then v.Torso.Velocity=v3(0,0,0) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(bpb,v.Torso.Position+v3(0,2,0)).lookVector*velo}) de(bpp,0.13) end end,
  1157. function(hit)
  1158. SpecialHit(hit,dmg)
  1159. if hit.Name == "Barrel" or hit.Name == "Crate" then hit.Anchored = false
  1160. hit.Velocity = cn(pos,hit.Position).lookVector*45
  1161. end
  1162. end,true)
  1163. end
  1164.  
  1165. exm = function(sti,par,coll,cfaa,siz)
  1166. local sc = siz or 1
  1167. local par = par or sti
  1168. local cfa = cfaa or sti.CFrame
  1169. for i=1,3 do
  1170. GlowMesh(false,"Sphere",par,v3(rn(10,20)*sc,rn(10,20)*sc,rn(10,20)*sc),coll or 'New Yeller',cfa*cn(rn(-3,3)*sc,rn(-3,3)*sc,rn(-3,3)*sc)*ca(rd(rn(-360,360)),rd(rn(-360,360)),rd(rn(-360,360))),0.1,1,0.1)
  1171. end
  1172. end
  1173.  
  1174. pcall(function()ch.flag:Remove() end)
  1175. local flag = pa(ch,"flag","Block",0,0,0,false,false,1,0,"")
  1176. local flagw = qi{"Weld",flag,Part0=to,Part1=flag,C0=cn(0,0,1)*ca(0,0,rd(45))}
  1177. local flagt=qi{"SpecialMesh",flag,MeshId=ds.Flag}
  1178.  
  1179.  
  1180.  
  1181. FlagFunc = function(mt)
  1182. local ti = tonumber(mt.Parent.Name:sub(5))
  1183. local yti = p2.Team
  1184. local flt = flag.Transparency
  1185. local mtt = mt.Transparency
  1186. local perc = 0
  1187. local spi = 1 -- speed
  1188. --u hav no flag,enem has flag,not ur team
  1189. if flt==1 and mtt==0 and yti~=ti then -- take flag
  1190. SMsg("Taking Enemy Flag!..","Olive")
  1191. gmed.Visible=true
  1192. Spd[7]=0
  1193. gmedt.Text = "Taking Enemy Flag..."
  1194. while Button and perc<100 and hu.Health>0 do
  1195. perc=perc+spi
  1196. gmedperc.Text = perc .. "%"
  1197. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1198. wait()
  1199. end
  1200. Spd[7]=1
  1201. gmed.Visible=false
  1202. local scc = (perc>=100 and mt.Transparency==0) and 1 or 0 -- to check if someone was first to take
  1203. if scc==1 then
  1204. mt.Take.Value=hu
  1205. flag.Transparency=0
  1206. SMsg("You have taken The Enemy Flag!","Olive")
  1207. SMsg("Return the Flag to your Base!!","Olive")
  1208. else
  1209. SMsg("Flag Take Failed!","Really red")
  1210. end
  1211. --you have flag,your team flag visible,your team check
  1212. elseif flt==0 and mtt==0 and yti==ti then -- take flag
  1213. SMsg("Capturing Enemy Flag!..","Olive")
  1214. gmed.Visible=true
  1215. Spd[7]=0
  1216. gmedt.Text = "Capturing Enemy Flag..."
  1217. while Button and perc<100 and hu.Health>0 do
  1218. perc=perc+spi
  1219. gmedperc.Text = perc .. "%"
  1220. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1221. wait()
  1222. end
  1223. Spd[7]=1
  1224. gmed.Visible=false
  1225. local scc = (perc>=100 and mt.Transparency==0) and 1 or 0 -- cant capture if your flag is taken too
  1226. if scc==1 then
  1227. mt.Capture.Value=hu
  1228. flag.Transparency=1
  1229. SMsg("You have Captured the Enemy's Flag!","Olive")
  1230. else
  1231. SMsg("Flag Capture Failed!","Really red")
  1232. end
  1233. else
  1234. SMsg("Flag Capture/Take Failed!","Really red")
  1235. end
  1236. end
  1237.  
  1238. BombFunc = function(Bomb)
  1239. local bomb = Bomb.bomb
  1240. local user = Bomb.User
  1241. local status = Bomb.Status
  1242. if user.Value~="" then SMsg("Bomb function Fail!","Really red") end
  1243. local perc = 0
  1244. --FUSE
  1245. if p2.Team==1 and status.Value=="calm" then
  1246. user.Value = Player.Name
  1247. Spd[7]=0
  1248. gmed.Visible=true
  1249. gmedt.Text = "Activating Bomb Fuse!!"
  1250. while Button and perc<100 and hu.Health>0 do
  1251. perc=perc+0.3
  1252. gmedperc.Text = math.floor(perc) .. "%"
  1253. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1254. wait()
  1255. end
  1256. gmed.Visible=false
  1257. local scc = perc>=100 and 1 or 0
  1258. if scc==1 then
  1259. bomb.Transparency=0
  1260. status.Value = "fused"
  1261. SMsg("You have Activate The Bomb Fuse!","Olive")
  1262. else
  1263. SMsg("Fuse Activation Failed!","Really red")
  1264. end
  1265. Spd[7]=1
  1266. user.Value=""
  1267. end
  1268. --DEFUSE
  1269. if p2.Team==2 and status.Value=="fused" then
  1270. user.Value = Player.Name
  1271. Spd[7]=0
  1272. gmed.Visible=true
  1273. gmedt.Text = "Deactivating Bomb Fuse!!"
  1274. while Button and perc<100 and hu.Health>0 do
  1275. perc=perc+0.3
  1276. gmedperc.Text = math.floor(perc) .. "%"
  1277. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1278. wait()
  1279. end
  1280. gmed.Visible=false
  1281. local scc = perc>=100 and 1 or 0
  1282. if scc==1 then
  1283. status.Value = "defused"
  1284. SMsg("You have Deactivated The Bomb Fuse!","Olive")
  1285. else
  1286. SMsg("Fuse Deactivation Failed!","Really red")
  1287. end
  1288. Spd[7]=1
  1289. user.Value=""
  1290. end
  1291. end
  1292.  
  1293. C4Boom = function(dro)
  1294. if dro.Transparency==1 then return end
  1295. so(ds.Explode1,dro,0.9,1)
  1296. local gpos,ghit = FindGround(dro.CFrame)
  1297. if gpos and ghit then BulletHole(gpos.p,ghit,20,ds.Gradient1,Props2) end
  1298. exm(dro,Props2)
  1299. dro.Transparency=1 de(dro,2)
  1300. DmgRange(dro,20,45,60,"C4",Player.Name) -- who hits the c4 owns the c4 :p
  1301. end
  1302. MineBoom = function(dro)
  1303. if dro.Transparency==1 then return end
  1304. so(ds.Explode1,dro,0.9,1)
  1305. exm(dro,Props2)
  1306. local gpos,ghit = FindGround(dro.CFrame)
  1307. if gpos and ghit then BulletHole(gpos.p,ghit,16,ds.Gradient1,Props2) end
  1308. dro.Transparency=1 de(dro,2)
  1309. DmgRange(dro,16,60,60,"Mine",dro.Name:sub(5))
  1310. end
  1311. GasolineBoom = function(dro)
  1312. local dropos = dro.Position
  1313. local ra = 24
  1314. local ownzor = dro.Parent.Name:sub(9)
  1315. dro.Parent.Name="fGasoline"
  1316. so(ds.Explode1,dro,0.9,1)
  1317. DmgRange(dro,ra/1.4,5,40,"Gasoline",ownzor)
  1318. local gpos,ghit = FindGround(dro.CFrame)
  1319. if gpos and ghit then BulletHole(gpos.p,ghit,ra,ds.Gradient1,Props2) end
  1320. dro.Anchored = true dro.Transparency=1
  1321. for i,v in pairs(dro.Parent:children()) do if v~=dro then v:Remove() end end
  1322. dlay({dro,ra,4,nil,"Gasoline",ownzor},DmgRange,0.5,22)
  1323. for x=-1,1,2 do
  1324. for z=-1,1,2 do
  1325. local bb = dro:Clone() bb.Parent = dro.Parent bb.Transparency=1 bb.Anchored=true bb.Size=v3(0,0,0) bb.CFrame = cn(dropos)*cn(ra/4*x,0,ra/4*z)
  1326. local fia = qi{"Sound",bb,SoundId=ds.Flame,Looped=true,Pitch=1.15} fia:play() qi{"Fire",bb,Size=ra}
  1327. end
  1328. end
  1329.  
  1330. de(dro.Parent,13)
  1331. end
  1332.  
  1333. DropGasoline = function()
  1334. local mm = qi{"Model",Props,Name="Gasoline" ..Player.Name}
  1335. local h1 = handles[1]:Clone() h1.Size=h1.Mesh.Scale/5 h1.Mesh.Scale=v3(1,1,1) h1.CanCollide=true h1.Parent=mm h1.CFrame=handles[1].CFrame h1.Name="pGasoline"
  1336. local h2 = handles[2]:Clone() h2.Size=h2.Mesh.Scale/5 h2.Mesh.Scale=v3(1,1,1) h2.CanCollide=true h2.Parent=mm h2.CFrame=handles[2].CFrame h2.Name="pGasoline"
  1337. local h3 = handles[3]:Clone() h3.Size=h3.Mesh.Scale/5 h3.Mesh.Scale=v3(1,1,1) h3.CanCollide=true h3.Parent=mm h3.CFrame=handles[3].CFrame h3.Name="pGasoline"
  1338. local h4 = handles[4]:Clone() h4.Size=h4.Mesh.Scale/5 h4.Mesh.Scale=v3(1,1,1) h4.CanCollide=true h4.Parent=mm h4.CFrame=handles[4].CFrame h4.Name="pGasoline"
  1339. qi{"Weld",h2,Part0=h1,Part1=h2,C0=cn(0.5,1.5,0)*ca(0,rd(-90),0)}
  1340. qi{"Weld",h3,Part0=h1,Part1=h3,C0=cn(-0.5,1.5,0)}
  1341. qi{"Weld",h4,Part0=h1,Part1=h4,C0=cn(-0.5,2.1,0)}
  1342. end
  1343. DropMine = function(sta)
  1344. local dro = sta:Clone()
  1345. dro.Name = "Mine" ..Player.Name
  1346. dro.Parent = Props
  1347. dro.Size=v3(3.2,1,3.2)
  1348. dro.CFrame = sta.CFrame*cn(0,-0.1,-1.2)
  1349. dro.Friction=2
  1350. dro.Elasticity=2
  1351. dro.CanCollide=true
  1352. dro.Velocity=dro.CFrame.lookVector*12
  1353. novel(dro)
  1354. dro.Touched:connect(function(hit)
  1355. if dro.Transparency~=1 and Players:findFirstChild(hit.Parent.Name) and Players[hit.Parent.Name]:findFirstChild("leaderstats") then
  1356. MineBoom(dro)
  1357. end
  1358. end)
  1359. end
  1360.  
  1361. DropExplosive = function(sta)
  1362. local dro = sta:Clone()
  1363. dro.Name = "Explosive" ..Player.Name
  1364. dro.Parent = Props
  1365. dro.Size=v3(2,5,2)
  1366. dro.CFrame = sta.CFrame
  1367. dro.Friction=2
  1368. dro.Elasticity=2
  1369. dro.CanCollide=true
  1370. novel(dro)
  1371. end
  1372.  
  1373. AddCover = function()
  1374. local perc = 0
  1375. gmed.Visible=true
  1376. Spd[7]=0
  1377. gmedt.Text = "Assembling Crate Cover..."
  1378. local thebox = pa(Props,"Cover2","Block",4.5,0.1,4.5,false,true,0,0,"Brown")
  1379. for i,v in pairs({"Top","Bottom","Left","Right","Back","Front"}) do qi{"Decal",thebox,Name=v,Texture=asset .. "2062752",Face=v} end
  1380. qi{"BlockMesh",thebox,Bevel=0.42}
  1381. local theboxc = to.CFrame*cn(0,-2.7,-4)
  1382. thebox.CFrame = theboxc
  1383. while Button and perc<100 do
  1384. perc=perc+3
  1385. gmedperc.Text = perc .. "%"
  1386. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1387. thebox.Size=v3(4.5,(4.5/100)*perc,4.5)
  1388. thebox.CFrame=theboxc*cn(0,(4.5/200)*perc,0)
  1389. wait()
  1390. end
  1391. Spd[7]=1
  1392. gmed.Visible=false
  1393. local scc = perc>=100 and true or false
  1394. if scc then
  1395. thebox.Name="Cover"
  1396. SMsg("Cover Assembled!","Olive")
  1397. else
  1398. thebox:Destroy()
  1399. SMsg("Cover Assembling Fail!","Really red")
  1400. end
  1401. return scc
  1402. end
  1403. MedkitFunc = function()
  1404. if hu.Health==hu.MaxHealth then SMsg("Fully healed Already!","Really red") return end
  1405. local perc = 0
  1406. gmed.Visible=true
  1407. Spd[7]=0
  1408. gmedt.Text = "Healing..."
  1409. while Button and perc<100 do
  1410. perc=perc+2
  1411. gmedperc.Text = perc .. "%"
  1412. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1413. wait()
  1414. end
  1415. Spd[7]=1
  1416. gmed.Visible=false
  1417. local scc = perc>=100 and true or false
  1418. if scc then
  1419. hu.Health=hu.Health+80
  1420. SMsg("+80 Heal!","Olive")
  1421. else
  1422. SMsg("Heal Failed!","Really red")
  1423. end
  1424. return scc
  1425. end
  1426.  
  1427. GetTarget = function(bb)
  1428. local Dist = 20
  1429. local found = {nil,Dist}
  1430. local ta
  1431. for i,v in pairs(game:service'Players':GetPlayers()) do
  1432. if v~=Player and v.Character and v.Character:findFirstChild("Head") and v.Character:findFirstChild("Humanoid") and v.Character.Humanoid.Health>0 then
  1433. ta=v.Character.Head
  1434. local bhit,bpos=ray(bb.Position,ta.Position - (cn(bb.Position,ta.Position)*cn(0,0,-1)).p,Props2)
  1435. local fro=cn(bb.Position,bb.CFrame*cn(0,1,0).p):toObjectSpace(ta.CFrame) if not fro or fro.z>10 or math.abs(fro.x)>15 then ta=false end
  1436. if (v.Character.Head.Position-bb.Position).magnitude<found[2] and ta and (bpos-ta.Position).magnitude<8 then
  1437. found={v.Character.Head,(bb.Position-v.Character.Head.Position).magnitude}
  1438. end
  1439. end
  1440. end
  1441. return found[1]
  1442. end
  1443. ---
  1444.  
  1445.  
  1446. -- bullet cleaner
  1447. for i,v in pairs(Props2:children()) do
  1448. if v.Name == "bullet" .. Player.Name then v:Remove() end
  1449. end
  1450.  
  1451. --- falldown,smokesize,range
  1452. rpgs = {} rpgs["rpg"]=1 rpgs["rpg2"]=1 rpgs["rpg3"]=1 rpgs["rpg4"]=1 rpgs["rpg5"]=1 rpgs["mortar"]=1
  1453. exwep = {["goo"]={0.3},["rpg3"]={0.75,nil,5},["rpg4"]={0.3,5,12},["rpg2"]={0,25,14},["rpg5"]={0.3,nil,60},["rpg"]={0.18,25,12},["mortar"]={0.1,15,22},["molotov"]={0.7,nil,18},["grenade3"]={0.7,nil,23},["grenade"]={0.65,nil,16},["grenade2"]={0.7},["tele"]={0.55},["tornade"]={0.7}}
  1454. bulletid = -5000
  1455. bullets = {}
  1456. FireBullet = function(spa,dmg,spd,ran,bty,siz,rang2,tmm)
  1457. local rang = rang2 or 1
  1458. local sc = siz or 1
  1459. local bb= pa(Props2,"ammo" .. Player.Name,"Block",0.5,0.5,0.5,true,true,0,0,p2.Team~=0 and teamcol[p2.Team] or (p2.Color == "White" and "Black" or p2.Color))
  1460. if tmm then bbm=tmm:Clone() bbm.Parent=bb elseif bty~="bullet" then bbm= qi{"SpecialMesh",bb,MeshType="Sphere",Scale=v3(0.6,1.2,0.6)*2*sc} end
  1461. if bty == "bullet" then bb.Name = "bullet" ..Player.Name bbm=qi{"CylinderMesh",bb,Scale=v3(0.2,2,0.2)*2*sc}
  1462. elseif exwep[bty] and rpgs[bty] then if exwep[bty][2] then qi{"Smoke",bb,RiseVelocity=-exwep[bty][2],Size=6,Opacity=0.8,Color=bc("Dark stone grey").Color} end
  1463. elseif exwep[bty] and not rpgs[bty] then
  1464. if bty=="goo" then bb.BrickColor=bc("Lime green") bb.Transparency=0.2 end
  1465. end
  1466. --St.Accuracy = 0.1
  1467. local shak = ca(rd(rn(-St.Accuracy,St.Accuracy)/42)*rang,0,rd(rn(-St.Accuracy,St.Accuracy)/42)*rang)
  1468. bb.CFrame=spa*shak*cn(0,2,0)*ca(rd(bty=="rpg5" and 180 or 0),0,0)
  1469. local nb = {}
  1470. nb.spa = spa nb.dmg = dmg nb.spd = spd nb.ran = ran nb.bty = bty nb.sc = sc nb.bb = bb nb.rang = rang
  1471. nb.bhit = nil nb.bpos = v3(0,-500,0) nb.reach=false nb.loop = 0 nb.bbm = bbm nb.invert=bty=="rpg5" and -1 or 1
  1472. bullets[tostring(bulletid)] = nb
  1473. bulletid=bulletid+1
  1474. end
  1475.  
  1476.  
  1477. amm = function(i)
  1478. amz[cwep].a=amz[cwep].a-i
  1479. end
  1480.  
  1481. calcreload = function(i,ma,lal)
  1482. local need = ma-amz[i].a
  1483. if need < 1 or amz[i].ma < 1 then return end
  1484. if amz[i].ma >= (lal or need) then
  1485. amz[i].ma=amz[i].ma-(lal or need)
  1486. amz[i].a=amz[i].a+(lal or need)
  1487. elseif amz[i].ma < need and not lal then
  1488. amz[i].a = amz[i].a+amz[i].ma
  1489. amz[i].ma = 0
  1490. else
  1491. print"::"
  1492. end
  1493. end
  1494.  
  1495. calcreclip = function(i,ma,wn)
  1496. local tots = amz[i].ma+amz[i].a
  1497. if tots >= ma then
  1498. SMsg("You have Enough Ammos!","Bright red")
  1499. elseif p2.inv[wn] < 1 then SMsg("Not enough Ammos in Inventory!","Bright red")
  1500. else
  1501. local need = (ma-tots)
  1502. if need > p2.inv[wn] then need = p2.inv[wn] end
  1503. amz[i].ma = amz[i].ma+need
  1504. p2.inv[wn] = p2.inv[wn]-need
  1505. SMsg("-" ..need.. " " ..wn.. " Ammos. (" ..p2.inv[wn].. ")","Olive")
  1506. end
  1507. invload(invi)
  1508. end
  1509.  
  1510. local clip = pa(nil,Player.Name .. "prop","Block",0.2,0.8,0.35,false,false,0,0,teamcol[p2.Team])
  1511. mdb = {}
  1512.  
  1513. --
  1514.  
  1515. SpecialHit = function(hit,dmg)
  1516. if hit.Name:sub(1,9) == "Explosive" and hit.Transparency~=1 then
  1517. dlay({hit},C4Boom,0.35)
  1518. elseif hit.Name:sub(1,4) == "Mine" and hit.Transparency~=1 then
  1519. dlay({hit},MineBoom,0.35)
  1520. elseif hit and hit.Parent.Name:sub(1,8) == "Gasoline" then dlay({hit},GasolineBoom,0.8)
  1521. elseif hit.Name == "core" and hit.Parent.Name == "BaseCore" and hit.Parent.own.Value~=p2.Team then
  1522. local bcore = hit.Parent
  1523. bcore.Health.Value=bcore.Health.Value-dmg
  1524. if bcore.Health.Value<0 then bcore.Health.Value=0 end
  1525. bcore.g.t.Text ="Team " ..bcore.own.Value.. [[
  1526. Health: ]] ..bcore.Health.Value .. "/" ..bcore.MaxHealth.Value
  1527. elseif hit.Name == "crystal" and hit.Parent.Name=="CrystalPoint" and hit.Parent.own.Value~=p2.Team then
  1528. local bcc = hit.Parent
  1529. bcc.Health.Value=bcc.Health.Value-dmg
  1530. if bcc.Health.Value<0 then bcc.Health.Value=0 end
  1531. if bcc.Health.Value==0 then bcc.own.Value=p2.Team bcc.Health.Value=bcc.MaxHealth.Value hit.BrickColor=bc(teamcol[p2.Team]) end
  1532. bcc.g.t.TextColor3 = bcc.own.Value==0 and bc("White").Color or bc(teamcol[bcc.own.Value]).Color
  1533. local hakk ="Team " ..bcc.own.Value
  1534. if bcc.own.Value==0 then hakk="Free!" end
  1535. bcc.g.t.Text =hakk.. [[
  1536. Health: ]] ..bcc.Health.Value .. "/" ..bcc.MaxHealth.Value
  1537. end
  1538. end
  1539.  
  1540. local fallkill = true
  1541.  
  1542. Dmg = function(name,dmg,hit,uses,ownerz)
  1543. local headz = (hit and hit.Name:sub(1,4)=="Head") and 1 or 0
  1544. local ownz = ownerz or Player.Name
  1545. pcall(function()
  1546. if game:service'Players'[name].Character:findFirstChild("wgff") then return end -- anti spawn kill
  1547. if to.Position.y<-100 and name==Player.Name then -- fall kill
  1548. local ndmg = script.dmg:Clone()
  1549. ndmg.Target.Value = name
  1550. ndmg.Owner.Value = name
  1551. ndmg.Use.Value = "Falling"
  1552. ndmg.Dmg.Value = 100000
  1553. ndmg.Parent = Props2
  1554. else
  1555. --real kill
  1556. if name==Player.Name or Ntkill[st.Mode] or (Nkill[st.Mode] and pm[Player.Name].Team ~= pm[name].Team) then
  1557. HitMsg(headz)
  1558. local dmg = headz==1 and dmg*1.3 or dmg
  1559. if ownz==name then dmg = math.floor(dmg/3.333333) end
  1560. dmg = dmg/pm[name].def
  1561. SMsg(name .. " -" ..(dmg).. " DMG!","White")
  1562. local ndmg = script.dmg:Clone()
  1563. ndmg.Target.Value = name
  1564. ndmg.Owner.Value = ownz
  1565. ndmg.Use.Value = uses or awep[cwep]
  1566. ndmg.Dmg.Value = dmg
  1567. ndmg.Parent = Props2
  1568. end
  1569. end -- if suicide
  1570. end)
  1571. end
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578. wepp = Props
  1579. wepn = "handle" ..Player.Name
  1580.  
  1581. j = 1
  1582. np = "Pistol"
  1583. wep[j][np] = {}
  1584. wep[j][np].MaxClip = 4
  1585. wep[j][np].MaxAmmo = 12
  1586. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] so(ds.Fire,to,0.7,1) FireBullet(cn(handles[1].CFrame*cn(0,0.5,0).p,mous.hit.p)*ca(rd(-90),0,0),15,18,25,"bullet",1) FirePower.Transparency=0.2 amm(1) gdb(0.35) end
  1587. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-25),0)*cn(0.3,0,0.6),{1,1},25,{4,210},1.1}
  1588. wep[j][np].Swap = function(self,i)
  1589. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"") handles[1] = ww
  1590. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-0.1,-1.25,-0.2)*ca(rd(180),0,rd(-22))} qi{"SpecialMesh",ww,MeshId=asset .. "72012879",TextureId=asset .. "72012859",Scale=v3(1,1,1)*2}
  1591. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1592. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(0,1.25,0.4)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.2,1,0.2)}
  1593. end
  1594. wep[j][np].Reload = function(self,i,ma,na,mis,rel)
  1595. c12(lw,1,la1[1],0.1,1,u)
  1596. wait(.1)
  1597. mis2 = nil
  1598. clip.Parent = Props
  1599. clip.Anchored = false
  1600. local wel = qi{"Weld",clip,Part0=la,Part1=clip,C0=cn(0.2,-1.4,0)}
  1601. if mis then mis2=mis:Clone() mis2.Parent=clip end
  1602. wait(.1)
  1603. c12(lw,1,la1[1]*ca(rd(-110),rd(48),0)*cn(-0.65,0,0.6),0.1,1,u)
  1604. if not rel then so(ds.Reload,to,1,1) end
  1605. calcreload(i,ma)
  1606. clip.Parent = nil clip.Anchored = true
  1607. wel:Remove()
  1608. if mis then mis2:Remove() end
  1609. mis2 = nil
  1610. end
  1611. wep[j][np].Reclip = function(self,i,ma,wn) Spd[3]=0
  1612. c12(lw,1,la1[1]*ca(rd(-40),rd(-10),0)*cn(0,0,1),0.1,1,u)
  1613. clip.Parent = Props clip.Anchored = false local wel = qi{"Weld",clip,Part0=la,Part1=clip,C0=cn(0.2,-1.4,0)}
  1614. c12(lw,1,la1[1],0.1,1,u)
  1615. calcreclip(i,ma,wn)
  1616. clip.Parent = nil clip.Anchored = true wel:Remove() wait(.15) Spd[3]=1
  1617. c12(lw,1,la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),0.1,1,u)
  1618. end
  1619. np = "Dual"
  1620. wep[j][np] = {}
  1621. wep[j][np].MaxClip = 5
  1622. wep[j][np].MaxAmmo = 24
  1623. wep[j][np].func = function(i,wn) local x = FirePower.Weld.Part0==handles[1] and 2 or 1 FirePower.Weld.Part0=handles[x] St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] so(ds.Fire,to,0.7,1) FireBullet(cn(handles[x].CFrame*cn(0,0.5,0).p,mous.hit.p)*ca(rd(-90),0,0),13,18,25,"bullet",1) FirePower.Transparency=0.2 amm(1) gdb(FirePower.Weld.Part0==handles[1] and 0.31 or 0.09) end
  1624. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(8),0)*cn(-0.1,0,0),ra0[1],ra1[1]*ca(rd(-90),rd(-8),0)*cn(0.1,0,0),{1,1},30,{4,180},0.95}
  1625. wep[j][np].Swap = function(self,i) local x = 0
  1626. for i,v in pairs({la,ra}) do x=x+1
  1627. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"") handles[x] = ww
  1628. qi{"Weld",ww,Part0=v,Part1=ww,C0=cn(0,-1.25,-0.12)*ca(rd(180),0,0)} qi{"SpecialMesh",ww,MeshId=asset .. "72012879",TextureId=asset .. "72012859",Scale=v3(1,1,1)*2}
  1629. end
  1630. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1631. qi{"Weld",FirePower,Part0=handles[1],Part1=FirePower,C0=cn(0,1.25,0.4)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.2,1,0.2)}
  1632. end
  1633. wep[j][np].Reload = wep[1].Pistol.Reload
  1634. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1635. np = "GooGun"
  1636. wep[j][np] = {}
  1637. wep[j][np].MaxClip = 5
  1638. wep[j][np].MaxAmmo = 8
  1639. wep[j][np].func = function(i,wn) so(asset.."16211041",to,1,1) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] FireBullet(cn(handles[1].CFrame*cn(0,0.5,0).p,mous.hit.p)*ca(rd(-90),0,0),12,5,80,"goo",1.4) amm(1) gdb(1) end
  1640. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-25),0)*cn(0.3,0,0.6),{1,1},120,{4,150},1.1}
  1641. wep[j][np].Swap = function(self,i)
  1642. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"") handles[1] = ww
  1643. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-0.1,-1.5,-0.2)*ca(rd(180),0,rd(-22))}
  1644. qi{"SpecialMesh",ww,MeshId=asset .. "18265627",TextureId=asset .. "76698655",Scale=v3(1.4,1,1.4)}
  1645. end
  1646. wep[j][np].Reload = wep[1].Pistol.Reload
  1647. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1648. np = "Uzi"
  1649. wep[j][np] = {}
  1650. wep[j][np].MaxClip = 4
  1651. wep[j][np].MaxAmmo = 32
  1652. wep[j][np].func = function(i,wn) while Button and amz[i].a>0 do local x = FirePower.Weld.Part0==handles[1] and 2 or 1 FirePower.Weld.Part0=handles[x] St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] so(ds.Fire,to,0.7,1.4) FireBullet(cn(handles[x].CFrame*cn(0,0.5,0.5).p,mous.hit.p)*ca(rd(-90),0,0),8,18,25,"bullet",1) FirePower.Transparency=0.2 amm(1) wait(0.135) end gdb(0.5) end
  1653. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(8),0)*cn(-0.1,0,0),ra0[1],ra1[1]*ca(rd(-90),rd(-8),0)*cn(0.1,0,0),{1,1},30,{4,180},0.95}
  1654. wep[j][np].Swap = function(self,i) local x = 0
  1655. for i,v in pairs({la,ra}) do x=x+1
  1656. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"") handles[x] = ww
  1657. qi{"Weld",ww,Part0=v,Part1=ww,C0=cn(0,-1.25,-0.2)*ca(rd(180),rd(i==1 and 80 or -80),0)} qi{"SpecialMesh",ww,MeshId=asset .. "72012794",TextureId=asset .. "72012761",Scale=v3(1,1,1)*0.6}
  1658. end
  1659. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1660. qi{"Weld",FirePower,Part0=handles[1],Part1=FirePower,C0=cn(0,1.25,0.5)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.2,1,0.2)}
  1661. end
  1662. wep[j][np].Reload = wep[1].Pistol.Reload
  1663. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1664. np = "Knife"
  1665. wep[j][np] = {}
  1666. wep[j][np].func = function(i,wn)
  1667. q(function() c12(rw,0,ra0[1]*ca(0,rd(-70),0),0.1,1,u*1.2) end) -- ready slash
  1668. c12(rw,1,ra1[1]*ca(rd(-90),rd(-10),rd(90)),0.1,1,u*1.2,function(i) tbgc[1] = ca(0,rd(-70*i),0) end) wait()
  1669. so(ds.Slash,to,1,1) St.a="Slash"
  1670. c12(rw,0,cn(0.5,0.5,-1)*ca(0,rd(80),0),0.1,1,u*1.2,function(i) tbgc[1] = ca(0,rd(-70+(140*i)),0) end) wait() -- slash
  1671. q(function() c12(rw,0,ra0[1],0.1,1,u*1.5) end) --return
  1672. c12(rw,1,ra1[1]*ca(rd(-90),rd(14),rd(20)),0.1,1,u*1.5,function(i) tbgc[1] = ca(0,rd(70+(-70*i)),0) end)
  1673. gdb(0.6)
  1674. end
  1675. wep[j][np].Stats={la0[1],la1[1]*ca(rd(35),rd(22),0)*cn(-0.1,0,0),ra0[1],ra1[1]*ca(rd(-90),rd(14),rd(20)),{1,1},30,{4,180},1.1}
  1676. wep[j][np].Swap = function(self,i)
  1677. local ww= pa(wepp,wepn,"Block",0.7,0.7,3,false,false,0,0.125,"") handles[1] = ww
  1678. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.7,-0.8)*ca(rd(135),0,rd(-90))} qi{"SpecialMesh",ww,MeshId=asset .. "10469496",TextureId=asset .. "10469599",Scale=v3(1,1.5,1)*1.25}
  1679. ww.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") == nil or St.a~="Slash" or (mdb[hit.Parent.Name] and tick()-mdb[hit.Parent.Name] < 0.5) then SpecialHit(hit,28) return end
  1680. mdb[hit.Parent.Name] = tick()
  1681. Dmg(hit.Parent.Name,28)
  1682. end)
  1683. end
  1684. np = "Katana"
  1685. wep[j][np] = {}
  1686. wep[j][np].func = function(i,wn)
  1687. q(function() c12(rw,0,ra0[1]*ca(0,rd(-70),0),0.1,1,u*1.2) end) -- ready slash
  1688. c12(rw,1,ra1[1]*ca(rd(-90),rd(-10),rd(90)),0.1,1,u*1.2,function(i) tbgc[1] = ca(0,rd(-70*i),0) end) wait()
  1689. so(ds.Slash,to,1,1) St.a="Slash"
  1690. c12(rw,0,cn(0.5,0.5,-1)*ca(0,rd(80),0),0.1,1,u*1.2,function(i) tbgc[1] = ca(0,rd(-70+(140*i)),0) end) wait() -- slash
  1691. q(function() c12(rw,0,ra0[1],0.1,1,u*1.5) end) --return
  1692. c12(rw,1,ra1[1]*ca(rd(-90),rd(14),rd(20)),0.1,1,u*1.5,function(i) tbgc[1] = ca(0,rd(70+(-70*i)),0) end)
  1693. gdb(0.32)
  1694. end
  1695. wep[j][np].Stats={la0[1],la1[1]*ca(rd(35),rd(22),0)*cn(-0.1,0,0),ra0[1],ra1[1]*ca(rd(-90),rd(14),rd(20)),{1,1},30,{4,180},1.1}
  1696. wep[j][np].Swap = function(self,i)
  1697. local ww= pa(wepp,wepn,"Block",0.7,0.7,5,false,false,0,0.125,"") handles[1] = ww
  1698. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.9,-1.25)*ca(rd(150),0,rd(-90))} qi{"SpecialMesh",ww,MeshId=asset .. "11442510",TextureId=asset .. "11442524",Scale=v3(1,1,1)*1.5}
  1699. ww.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") == nil or St.a~="Slash" or (mdb[hit.Parent.Name] and tick()-mdb[hit.Parent.Name] < 0.5) then SpecialHit(hit,36) return end
  1700. mdb[hit.Parent.Name] = tick()
  1701. Dmg(hit.Parent.Name,36)
  1702. end)
  1703. end
  1704. np = "Shield"
  1705. wep[j][np] = {}
  1706. wep[j][np].func = function(i,wn)
  1707. q(function() c12(rw,0,ra0[1]*cn(-0.8,0,-1),0.1,1,u*1) end) -- ready slash
  1708. c12(rw,1,ra1[1]*ca(0,rd(-90),rd(90)),0.1,1,u*1) wait()
  1709. St.a="Shield"
  1710. local hc = 1
  1711. Def[4]=10
  1712. while hc>0 and Button do hc=hc-0.018 wait() end
  1713. gdb(3)
  1714. Def[4]=1
  1715. St.a="Deshield"
  1716. q(function() c12(rw,0,ra0[1],0.1,1,u*1) end) --return
  1717. c12(rw,1,ra1[1]*ca(0,0,rd(-25)),0.1,1,u*1)
  1718. end
  1719. wep[j][np].Stats={la0[1],la1[1]*ca(rd(35),rd(22),0)*cn(-0.1,0,0),ra0[1],ra1[1]*ca(0,0,rd(-25)),{1,1},30,{4,180},1.1}
  1720. wep[j][np].Swap = function(self,i)
  1721. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,"") handles[1] = ww
  1722. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.6,-0.4,0)*ca(0,rd(90),0)} qi{"SpecialMesh",ww,Scale=v3(1,1,1)*2.6,MeshId=asset.."75521015",TextureId=asset.."75521030"}
  1723. end
  1724. j = 2 ------------------
  1725. np = "Shotgun"
  1726. wep[j][np] = {}
  1727. wep[j][np].MaxClip = 5
  1728. wep[j][np].MaxAmmo = 8
  1729. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] so(asset .. "2697294",to,0.7,1) for i=1,5 do FireBullet(cn(handles[1].CFrame*cn(0,0.5,0).p,mous.hit.p)*ca(rd(-90),0,0),9,12,7,"bullet",1,2.25) FirePower.Transparency=0.2 end amm(1) gdb(0.72) end
  1730. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-25),0)*cn(0.3,0,0.6),{1,1},40,{3,180},0.85}
  1731. wep[j][np].Swap = function(self,i)
  1732. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Dark stone grey") handles[1] = ww
  1733. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.2,-1.8,-0.25)*ca(rd(180),0,rd(-22))} qi{"SpecialMesh",ww,MeshId=asset.."71947462",TextureId=asset.."71947415",Scale=v3(1,1,1)*1.3}
  1734. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1735. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(0,2.5,0.4)*ca(rd(0),0,0)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.2,1,0.2)}
  1736. end
  1737. wep[j][np].Reload = function(self,i,ma,na,spii)
  1738. local spi = spii or 1
  1739. while not w.r and amz[i].ma > 0 and amz[i].a < ma do
  1740. c12(lw,1,la1[1],0.1,1,u*1.8*spi)
  1741. clip.Parent = Props clip.Anchored = false local wel = qi{"Weld",clip,Part0=la,Part1=clip,C0=cn(0.2,-1.4,0)}
  1742. c12(lw,1,la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),0.1,1,u*1.8*spi)
  1743. so(asset .. "2697295",to,0.7,1) calcreload(i,ma,1)
  1744. clip.Parent = nil clip.Anchored = true wel:Remove() wait()
  1745. local wn = awep[cwep]
  1746. c12(lw,1,wep[cwep][wn].Stats[2],0.1,1,u*8*spi)
  1747. end
  1748. end
  1749. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1750. np = "Assault"
  1751. wep[j][np] = {}
  1752. wep[j][np].MaxClip = 5
  1753. wep[j][np].MaxAmmo = 42
  1754. wep[j][np].func = function(i,wn) while amz[i].a > 0 and Button do St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] so(asset .. "2691586",to,0.3,1.4) FireBullet(cn(handles[1].CFrame.p,mous.hit.p)*ca(rd(-90),0,0),8,15,25,"bullet",1) FirePower.Transparency=0.2 amm(1) wait(0.125) end gdb(0.7) end
  1755. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-25),0)*cn(0.3,0,0.6),{1,1},20,{2,200},0.8}
  1756. wep[j][np].Swap = function(self,i)
  1757. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1758. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.15,-1.7,-0.2)*ca(rd(180),0,rd(-25))} qi{"SpecialMesh",ww,MeshId=asset .. "72012671",TextureId=asset .. "72012605",Scale=v3(1,1,1)*1.4}
  1759. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1760. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(0,2.95,0.2)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.2,1,0.2)}
  1761. end
  1762. wep[j][np].Reload = wep[1].Pistol.Reload
  1763. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1764. np = "Sniper"
  1765. wep[j][np] = {}
  1766. wep[j][np].MaxClip = 8
  1767. wep[j][np].MaxAmmo = 2
  1768. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] so(asset .. "10209875",to,1,0.7) FireBullet(cn(handles[1].CFrame*cn(0,0,0).p,mous.hit.p)*ca(rd(-90),0,0),52,25,25,"bullet",1) FirePower.Transparency=0.1 amm(1) gdb(2.5) end
  1769. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-25),0)*cn(0.3,0,0.6),{1,1},6,{5,25},0.8}
  1770. wep[j][np].Swap = function(self,i)
  1771. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1772. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.45,-0.5)*ca(rd(180),0,rd(-22))} qi{"SpecialMesh",ww,MeshId=asset .. "72012972",TextureId=asset .. "72012935",Scale=v3(2,2,2)*0.6}
  1773. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1774. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(0,2.5,0.25)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.2,1,0.2)}
  1775. end
  1776. wep[j][np].Reload = function(self,i,ma,na) wep[2].Shotgun:Reload(i,ma,na,0.5) end
  1777. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1778. np = "VIPSniper"
  1779. wep[j][np] = {}
  1780. wep[j][np].MaxClip = 4
  1781. wep[j][np].MaxAmmo = 5
  1782. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] so(asset .. "10209875",to,1,0.7) FireBullet(cn(handles[1].CFrame*cn(0,0,0).p,mous.hit.p)*ca(rd(-90),0,0),80,40,30,"bullet",1) FirePower.Transparency=0.1 amm(1) gdb(1.8) end
  1783. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(58),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-15),0)*cn(0.3,0,0.6),{1,1},6,{4,50},1}
  1784. wep[j][np].Swap = function(self,i)
  1785. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1786. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.15,-1.8,-0.5)*ca(rd(180),0,rd(-10))} qi{"SpecialMesh",ww,MeshId=asset .. "72012972",TextureId=asset .. "72012935",Scale=v3(2,2,2.15)*0.9}
  1787. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1788. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(0,3,0.25)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.2,1,0.2)}
  1789. end
  1790. wep[j][np].Reload = function(self,i,ma,na) wep[2].Shotgun:Reload(i,ma,na,0.5) end
  1791. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1792. np = "GrenadeLauncher"
  1793. wep[j][np] = {}
  1794. wep[j][np].MaxClip = 8
  1795. wep[j][np].MaxAmmo = 3
  1796. wep[j][np].func = function(i,wn) so(asset.."16211041",to,1,0.81) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] FireBullet(cn(he.CFrame*cn(0,0,-4).p,mous.hit.p)*ca(rd(-90),0,0),32,2.5,100,"rpg3",1) FirePower.Transparency=0.2 amm(1) gdb(1.2) end
  1797. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(50),0)*cn(-0.7,0,0.8),ra0[1],ra1[1]*ca(rd(-90),rd(-10),0)*cn(0.3,0,0.6),{1,1},120,{20,250},0.7}
  1798. wep[j][np].Swap = function(self,i)
  1799. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1800. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-2.1,-1)*ca(rd(-90),rd(0),0)*ca(rd(0),0,0)} qi{"SpecialMesh",ww,MeshId=asset.."34249026", TextureId=asset.."34249993",Scale=v3(1.6,1.6,1.2)}
  1801. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(-3,0.2,0)*ca(0,0,rd(90))} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.5,2.5,0.5)}
  1802. end
  1803. wep[j][np].Reload = function(self,i,ma,na) wep[2].Shotgun:Reload(i,ma,na,0.5) end
  1804. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1805. np = "GammaBeam"
  1806. wep[j][np] = {}
  1807. wep[j][np].MaxClip = 5
  1808. wep[j][np].MaxAmmo = 6
  1809. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] so(asset .. "48579482",to,1,1)
  1810. local bhit,bpos
  1811. local hits = {}
  1812. local dir2 = cn(la.CFrame*cn(-1,-3,-1).p,mous.hit.p)
  1813. local dir = dir2
  1814. local stop=0
  1815. for i=1,15 do
  1816. if stop==1 then break end
  1817. for x=-1,1,1 do
  1818. for y=-1,1,1 do
  1819. bhit2,bpos2=ray(dir.p,dir.p - (dir *cn(0,0,1)).p,Props2)
  1820. if x==0 and y==0 then bhit,bpos=bhit2,bpos2 dir=dir*cn(0,0,-(dir.p-bpos).magnitude-1.5) end
  1821. if x==0 and y==0 and bhit2 and bhit2.Anchored then stop=1 break end
  1822. if bhit2 and bhit2.Parent:findFirstChild("Humanoid") then hits[bhit2.Parent.Name]=true end
  1823. end
  1824. end
  1825. end
  1826. for i,v in pairs(hits) do Dmg(i,30) end
  1827. local magg = (dir2.p-bpos).magnitude
  1828. local lazor =pa(wepp,wepn,"Block",1,1,1,true,true,0.1,0.3,p2.Team~=0 and teamcol[p2.Team] or p2.Color) lazorm = qi{"SpecialMesh",lazor,Scale=v3(3,magg,3)}
  1829. lazor.CFrame=cn(dir2.p,bpos)*cn(0,0,-magg/2)*ca(rd(-90),0,0)
  1830. de(lazor,3) dlay({},function() lazor.Transparency=lazor.Transparency+(0.7/15) lazorm.Scale=lazorm.Scale-v3(3/15,0,3/15) end,0,15)
  1831. amm(1) gdb(0.7) end
  1832. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(58),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-15),0)*cn(0.3,0,0.1),{1,1},40,{3,180},0.85}
  1833. wep[j][np].Swap = function(self,i)
  1834. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Dark stone grey") handles[1] = ww
  1835. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.3,-1.5,-0.6)*ca(rd(180),0,rd(-12))*ca(0,rd(-90),0)} qi{"SpecialMesh",ww,MeshId=asset.."60262041",TextureId=asset.."60262165",Scale=v3(1.5,1.4,1.5)}
  1836. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1837. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(0,2.5,0.4)*ca(rd(0),0,0)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.2,1,0.2)}
  1838. end
  1839. wep[j][np].Reload = function(self,i,ma,na) wep[2].Shotgun:Reload(i,ma,na,0.75) end
  1840. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1841. j = 3 ------------------
  1842. np = "Flamethrower"
  1843. wep[j][np] = {}
  1844. wep[j][np].MaxClip = 4
  1845. wep[j][np].MaxAmmo = 35
  1846. fthrower = qi{"Sound",to,Name="flamethrower",SoundId=ds.Flame,Volume=1}
  1847. wep[j][np].func = function(i,wn) handles[2].Fire.Enabled=true handles[2].sm.Enabled=true fthrower.Looped=true fthrower:play() while Button and amz[i].a>0 do DmgRange(handles[2].CFrame*cn(0,-6.5,0),12,5.5,nil) amm(1) wait(0.11) end gdb(0.5) handles[2].Fire.Enabled=false handles[2].sm.Enabled=false fthrower.Looped=false fthrower:Stop() end
  1848. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(58),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-15),0)*cn(0.3,0,0.6),{1,1},30,{99,99},1}
  1849. wep[j][np].Swap = function(self,i)
  1850. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1851. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.15,-2,-0.1)*ca(rd(270),rd(-10),rd(0))}
  1852. qi{"SpecialMesh",ww,MeshId=asset .. "33798955",TextureId=asset .. "34678136",Scale=v3(1,1,1)*1.5}
  1853. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,1,0,"Black") handles[2] = ww
  1854. qi{"Fire",ww,Heat=-25,Size=14,Enabled=false}
  1855. qi{"Smoke",ww,RiseVelocity=-25,Size=6,Color=bc("Black").Color,Opacity=0.25,Enabled=false,Name="sm"}
  1856. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-5,0)}
  1857. end
  1858. wep[j][np].Reload = wep[1].Pistol.Reload
  1859. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1860. np = "Minigun"
  1861. wep[j][np] = {}
  1862. wep[j][np].MaxClip = 4
  1863. wep[j][np].MaxAmmo = 60
  1864. stmini1 = qi{"Sound",to,Name="minigun",SoundId=asset.."10209780",Volume=0.4}
  1865. stmini2 = qi{"Sound",to,Name="minigun",SoundId=asset.."10209776",Volume=0.4}
  1866. wep[j][np].func = function(i,wn) so(asset .. "10209788",to,0.7,1) wait(0.6) stmini1.Looped=true stmini2.Looped=true stmini1:play() stmini2:play() while amz[i].a > 0 and Button do St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] FireBullet(cn(handles[1].CFrame*cn(rn(-2,2)/4,rn(-3,1)/4,-3).p,mous.hit.p)*ca(rd(-90),0,0),5,15,25,"bullet",1) FirePower.Transparency=0.2 amm(1) wait(0.06) end stmini1.Looped=false stmini2.Looped=false stmini2:Stop() so(asset .. "10209786",to,0.8,1) gdb(1.75) end
  1867. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),ra0[1],ra1[1]*ca(rd(-90),rd(-25),0)*cn(0.3,0,0.6),{1,1},40,{2,120},0.7}
  1868. wep[j][np].Swap = function(self,i)
  1869. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1870. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.15,-2.4,0.2)*ca(rd(-90),rd(-22),0)} qi{"SpecialMesh",ww,MeshId=asset .. "2806162",Scale=v3(1,1,1)}
  1871. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1872. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(0,-0.5,-4.35)*ca(rd(-90),0,0)} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.5,2.5,0.5)}
  1873. end
  1874. wep[j][np].Reload = wep[1].Pistol.Reload
  1875. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1876. np = "BabyNuke"
  1877. wep[j][np] = {}
  1878. wep[j][np].MaxClip = 1
  1879. wep[j][np].MaxAmmo = 1
  1880. local nukemesh=qi{"SpecialMesh",nil,Scale=v3(1,1,1)*2,MeshId=asset.."31601976",TextureId=asset.."34020027"}
  1881. wep[j][np].func = function(i,wn)
  1882. local scc=0
  1883. local perc=0
  1884. gmed.Visible=true
  1885. Spd[10]=0.1
  1886. so(asset.."2101137",to,1,0.4)
  1887. gmedt.Text = "!!!!!!!NUCLEAR CHARGE!!!!!!"
  1888. while Button and perc<100 and hu.Health>0 do
  1889. perc=perc+1
  1890. gmedperc.Text = perc .. "%"
  1891. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1892. wait()
  1893. end
  1894. Spd[10]=1
  1895. gmed.Visible=false
  1896. local scc = perc>=100 and 1 or 0
  1897. if scc==0 then
  1898. so(ds.Imbue,to,0.9,1)
  1899. else
  1900. so(asset.."16211041",to,1,0.81) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] FireBullet(cn(handles[1].CFrame.p,mous.hit.p)*ca(rd(-90),0,0)*cn(0,2,0),40,3,300,"rpg5",1,1,nukemesh) amm(1) end gdb(30) end
  1901. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(60),0)*cn(-0.7,0,0.8),ra0[1],ra1[1]*ca(rd(-90),rd(0),0)*cn(0.3,0,0.6),{1,1},40,{20,250},0.7}
  1902. wep[j][np].Swap = function(self,i)
  1903. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1904. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.3,-1.5,-1.1)*ca(rd(180),0,0)*ca(0,rd(-45),0)} qi{"SpecialMesh",ww,MeshId=asset .. "74320147",TextureId=asset .. "74320150",Scale=v3(3,1.4,3)}
  1905. end
  1906. wep[j][np].Reload = wep[1].Pistol.Reload
  1907. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1908. np = "Rpg"
  1909. wep[j][np] = {}
  1910. wep[j][np].MaxClip = 15
  1911. wep[j][np].MaxAmmo = 1
  1912. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] RocketWoosh=so(asset .. "12222132 ",to,1,1) FireBullet(cn(he.CFrame*cn(0,0,-4).p,mous.hit.p)*ca(rd(-90),0,0),64,3.32,80,"rpg",1) FirePower.Transparency=0.2 amm(1) gdb(3) end
  1913. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(60),0)*cn(-0.7,0,0.8),ra0[1],ra1[1]*ca(rd(-90),rd(0),0)*cn(0.3,0,0.6),{1,1},40,{20,250},0.7}
  1914. wep[j][np].Swap = function(self,i)
  1915. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1916. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-0.25,-1,-0.5)*ca(rd(-90),rd(-90),0)} qi{"SpecialMesh",ww,MeshId=asset .. "1030777",TextureId=asset .. "1030776",Scale=v3(1,1,1)}
  1917. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(-3,0.2,0)*ca(0,0,rd(90))} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.5,2.5,0.5)}
  1918. end
  1919. wep[j][np].Reload = wep[1].Pistol.Reload
  1920. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1921. np = "HeatSeeker"
  1922. wep[j][np] = {}
  1923. wep[j][np].MaxClip = 15
  1924. wep[j][np].MaxAmmo = 1
  1925. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] RocketWoosh=so(asset .. "12222132 ",to,1,1) FireBullet(cn(he.CFrame*cn(0,0,-4).p,mous.hit.p)*ca(rd(-90),0,0),60,0.95,200,"rpg4",1) FirePower.Transparency=0.2 amm(1) gdb(3) end
  1926. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(60),0)*cn(-0.7,0,0.8),ra0[1],ra1[1]*ca(rd(-90),rd(0),0)*cn(0.3,0,0.6),{1,1},40,{20,250},0.7}
  1927. wep[j][np].Swap = function(self,i)
  1928. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1929. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-0.25,-1,-0.5)*ca(rd(-90),rd(-90),0)} qi{"SpecialMesh",ww,MeshId=asset .. "1030777",TextureId=asset .. "1030776",Scale=v3(1,1,1)}
  1930. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(-3,0.2,0)*ca(0,0,rd(90))} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.5,2.5,0.5)}
  1931. end
  1932. wep[j][np].Reload = wep[1].Pistol.Reload
  1933. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1934. np = "Tri-Rpg"
  1935. wep[j][np] = {}
  1936. wep[j][np].MaxClip = 15
  1937. wep[j][np].MaxAmmo = 1
  1938. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] RocketWoosh=so(asset .. "12222132 ",to,1,1) for i=-1,1 do delay(i==-1 and 0 or (i==0 and 0.15 or 0.3),function() FireBullet(cn(he.CFrame*cn(0,0,-4).p,mous.hit.p)*ca(rd(-90+(i==0 and 2 or -2)),rd(-i*3),0)*cn(i*0.4,0,i==0 and 0.4 or -0.4),35,3.55,100,"rpg",1) end) end FirePower.Transparency=0.2 amm(1) gdb(5) end
  1939. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(60),0)*cn(-0.7,0,0.8),ra0[1],ra1[1]*ca(rd(-90),rd(0),0)*cn(0.3,0,0.6),{1,1},35,{20,250},0.7}
  1940. wep[j][np].Swap = function(self,i)
  1941. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1942. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-0.25,-1,-0.5)*ca(rd(-90),rd(-90),0)} qi{"SpecialMesh",ww,MeshId=asset .. "1030777",TextureId=asset .. "1030776",Scale=v3(1,1,1)}
  1943. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[2] = ww
  1944. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.25,-1,-0.5)*ca(rd(-90),rd(-90),0)} qi{"SpecialMesh",ww,MeshId=asset .. "1030777",TextureId=asset .. "1030776",Scale=v3(1,1,1)}
  1945. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[3] = ww
  1946. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1,-1)*ca(rd(-90),rd(-90),0)} qi{"SpecialMesh",ww,MeshId=asset .. "1030777",TextureId=asset .. "1030776",Scale=v3(1,1,1)}
  1947. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1948. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(-3,0.2,0)*ca(0,0,rd(90))} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.5,2.5,0.5)}
  1949. end
  1950. wep[j][np].Reload = wep[1].Pistol.Reload
  1951. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1952. np = "AG-Rpg"
  1953. wep[j][np] = {}
  1954. wep[j][np].MaxClip = 15
  1955. wep[j][np].MaxAmmo = 1
  1956. wep[j][np].func = function(i,wn) St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] RocketWoosh=so(asset .. "12222132 ",to,1,1) FireBullet(cn(he.CFrame*cn(0,0,-4).p,mous.hit.p)*ca(rd(-90),0,0),68,4,80,"rpg2",1) FirePower.Transparency=0.2 amm(1) gdb(3) end
  1957. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(60),0)*cn(-0.7,0,0.8),ra0[1],ra1[1]*ca(rd(-90),rd(0),0)*cn(0.3,0,0.6),{1,1},35,{20,250},0.7}
  1958. wep[j][np].Swap = function(self,i)
  1959. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1960. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-0.25,-1,-0.5)*ca(rd(-90),rd(-90),0)} qi{"SpecialMesh",ww,MeshId=asset .. "1030777",TextureId=asset .. "1030776",Scale=v3(1,1,1)}
  1961. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1962. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(-3,0.2,0)*ca(0,0,rd(90))} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.5,2.5,0.5)}
  1963. end
  1964. wep[j][np].Reload = wep[1].Pistol.Reload
  1965. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1966. np = "Mortar"
  1967. wep[j][np] = {}
  1968. wep[j][np].MaxClip = 12
  1969. wep[j][np].MaxAmmo = 1
  1970. wep[j][np].func = function(i,wn) if not St.Crouch then SMsg("You must be crouched to fire!","Really red") wait(0.4) return end St.CamShakes=wep[i][wn].Stats[7][1] St.Shake=wep[i][wn].Stats[7][2] RocketWoosh=so(asset .. "12222132 ",to,1,1) FireBullet(cn(he.CFrame*cn(0,0,-5).p,mous.hit.p)*ca(rd(-90),0,0),76,6,100,"mortar",1) FirePower.Transparency=0.2 amm(1) gdb(2.8) end
  1971. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(70),0)*cn(-1,0,0.8),ra0[1],ra1[1]*ca(rd(-90),rd(10),0)*cn(0.3,0,0.6),{1,1},40,{20,100},0.65}
  1972. wep[j][np].Swap = function(self,i)
  1973. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1974. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.45,0.25,-0.5)*ca(rd(-90),rd(-70),0)} qi{"SpecialMesh",ww,MeshId="rbxasset://fonts/rocketlauncher.mesh", TextureId="rbxasset://textures/rocketlaunchertex.png",Scale=v3(0.8,1,1)}
  1975. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1976. qi{"Weld",FirePower,Part0=ww,Part1=FirePower,C0=cn(-6,0,0)*ca(0,0,rd(90))} qi{"SpecialMesh",FirePower,MeshId=ds.Crown,Scale=v3(0.75,4,0.75)}
  1977. end
  1978. wep[j][np].Reload = wep[1].Pistol.Reload
  1979. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1980. j = 4 ------------------------
  1981. np = "Gasoline"
  1982. wep[j][np] = {}
  1983. wep[j][np].MaxClip = 10
  1984. wep[j][np].MaxAmmo = 1
  1985. wep[j][np].Stats={la0[1],la1[1]*ca(rd(30),rd(0),0),ra0[1],ra1[1]*ca(rd(-90),rd(-10),0),{1,1},10,{0,0},1.1}
  1986. wep[j][np].Swap = function(self,i)
  1987. local cc = "Bright red"
  1988. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,cc) handles[1] = ww qi{"BlockMesh",ww,Scale=v3(2,2,1)*5}
  1989. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.25,0)*ca(rd(-90),0,0)}
  1990. local ww2= pa(wepp,wepn,"Wedge",0,0,0,false,false,0,0,cc) handles[2] = ww2 qi{"SpecialMesh",ww2,MeshType="Wedge",Scale=v3(1,1,1)*5}
  1991. qi{"Weld",ww2,Part0=ww,Part1=ww2,C0=cn(0.5,1.5,0)*ca(0,rd(-90),0)}
  1992. local ww3= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,cc) handles[3] = ww3 qi{"BlockMesh",ww3,Scale=v3(1,1,1)*5}
  1993. qi{"Weld",ww3,Part0=ww,Part1=ww3,C0=cn(-0.5,1.5,0)}
  1994. local ww4= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,"Black") handles[4] = ww4 qi{"CylinderMesh",ww4,Scale=v3(0.8,0.2,0.8)*5}
  1995. qi{"Weld",ww4,Part0=ww,Part1=ww4,C0=cn(-0.5,2.1,0)}
  1996. for h=1,4 do handles[h].Transparency=amz[cwep].a>0 and 0 or 1 end
  1997. end
  1998. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,nil,1) for h=1,4 do handles[h].Transparency=amz[cwep].a>0 and 0 or 1 end end
  1999. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2000. wep[j][np].func = function(i,wn)
  2001. amm(1) DropGasoline() so(ds.Slash,to,1,1) for h=1,4 do handles[h].Transparency=1 end
  2002. end
  2003. np = "Adrenaline"
  2004. wep[j][np] = {}
  2005. wep[j][np].MaxClip = 3
  2006. wep[j][np].MaxAmmo = 1
  2007. wep[j][np].Stats={la0[1],la1[1]*ca(rd(30),rd(0),0),ra0[1],ra1[1]*ca(rd(-90),rd(-10),0),{1,1},10,{0,0},1.1}
  2008. wep[j][np].Swap = function(self,i)
  2009. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"White") handles[1] = ww
  2010. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.25,0)*ca(rd(-90),0,0)} qi{"SpecialMesh",ww,MeshId=ds.Spike,Scale=v3(0.25,3,0.25)}
  2011. end
  2012. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2013. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2014. wep[j][np].func = function(i,wn)
  2015. if Spd[8]==1.5 then SMsg("Already on Adrenaline Mode!","Really red") return end
  2016. St.ArmAiming=false
  2017. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  2018. c12(rw,1,ra1[1]*ca(rd(-170),rd(0),rd(-90)),0.1,1,u*0.65) wait(0.22)
  2019. amm(1) handles[1].Transparency=1
  2020. SMsg("Adrenaline Rush for 20 seconds!","Olive")
  2021. Spd[8]=1.5
  2022. dlay({},function() Spd[8]=1 end,20)
  2023. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  2024. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  2025. St.ArmAiming=true
  2026. end
  2027. np = "ZBomb"
  2028. wep[j][np] = {}
  2029. wep[j][np].MaxClip = 15
  2030. wep[j][np].MaxAmmo = 1
  2031. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-77),rd(18),0),ra0[1],ra1[1]*ca(rd(-77),rd(-18),0),{1,1},100,{0,0},1.1}
  2032. wep[j][np].Swap = function(self,i)
  2033. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  2034. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-0.88,-1.6,0)*ca(rd(180),0,0)} qi{"SpecialMesh",ww,MeshId="rbxasset://fonts/timebomb.mesh", TextureId="rbxasset://textures/bombtex.png",Scale=v3(1,1,1)}
  2035. end
  2036. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2037. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2038. wep[j][np].func = function(i,wn)
  2039. St.ArmAiming=false
  2040. q(function() c12(lw,0,wep[i][wn].Stats[1],0.1,1,u) end)
  2041. q(function() c12(lw,1,wep[i][wn].Stats[2]*ca(rd(-90),0,0),0.1,1,u) end)
  2042. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end)
  2043. c12(rw,1,wep[i][wn].Stats[4]*ca(rd(-90),0,0),0.1,1,u) wait(0.2)
  2044. amm(1) FireBullet(cn(he.CFrame*cn(0,0,-5).p,mous.hit.p)*ca(rd(-90),0,0),15,5,100,"grenade3",1,nil,handles[1].Mesh) so(ds.Slash,to,1,1)
  2045. q(function() c12(lw,0,wep[i][wn].Stats[1],0.1,1,u) end) -- back
  2046. q(function() c12(lw,1,wep[i][wn].Stats[2],0.1,1,u) end)
  2047. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  2048. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  2049. St.ArmAiming=true gdb(2)
  2050. end
  2051. np = "Translocator"
  2052. wep[j][np] = {}
  2053. wep[j][np].MaxClip = 6
  2054. wep[j][np].MaxAmmo = 1
  2055. wep[j][np].Stats={la0[1],la1[1]*ca(rd(30),rd(0),0),ra0[1],ra1[1]*ca(rd(-90),rd(-10),0),{1,1},100,{0,0},1.1}
  2056. wep[j][np].Swap = function(self,i)
  2057. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  2058. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.25,0)*ca(rd(180),0,0)} qi{"SpecialMesh",ww,MeshId=asset.."34795798", TextureId=asset.."34914385",Scale=v3(1,1,1)}
  2059. end
  2060. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2061. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2062. wep[j][np].func = function(i,wn)
  2063. St.ArmAiming=false
  2064. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  2065. c12(rw,1,ra1[1]*ca(rd(-160),rd(0),rd(-70)),0.1,1,u*0.65) wait(0.22)
  2066. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  2067. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  2068. amm(1) FireBullet(cn(he.CFrame*cn(0,0,-5).p,mous.hit.p)*ca(rd(-90),0,0),80,5,100,"tele",1,nil,handles[1].Mesh) so(ds.Slash,to,1,1)
  2069. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  2070. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  2071. St.ArmAiming=true gdb(12)
  2072. end
  2073. np = "Tornade"
  2074. wep[j][np] = {}
  2075. wep[j][np].MaxClip = 12
  2076. wep[j][np].MaxAmmo = 1
  2077. wep[j][np].Stats={la0[1],la1[1]*ca(rd(30),rd(0),0),ra0[1],ra1[1]*ca(rd(-90),rd(-10),0),{1,1},100,{0,0},1.1}
  2078. wep[j][np].Swap = function(self,i)
  2079. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  2080. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.25,0)*ca(rd(180),0,0)} qi{"SpecialMesh",ww,MeshId=asset.."47679879", TextureId=asset.."47707898",Scale=v3(1.3,1.3,1.6)}
  2081. end
  2082. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2083. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2084. wep[j][np].func = function(i,wn)
  2085. St.ArmAiming=false
  2086. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  2087. c12(rw,1,ra1[1]*ca(rd(-160),rd(0),rd(-70)),0.1,1,u*0.65) wait(0.22)
  2088. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  2089. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  2090. amm(1) FireBullet(cn(he.CFrame*cn(0,0,-5).p,mous.hit.p)*ca(rd(-90),0,0),10,5,100,"tornade",1,nil,handles[1].Mesh) so(ds.Slash,to,1,1)
  2091. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  2092. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  2093. St.ArmAiming=true gdb(8)
  2094. end
  2095. np = "Grenade"
  2096. wep[j][np] = {}
  2097. wep[j][np].MaxClip = 20
  2098. wep[j][np].MaxAmmo = 1
  2099. wep[j][np].Stats={la0[1],la1[1]*ca(rd(30),rd(0),0),ra0[1],ra1[1]*ca(rd(-90),rd(-10),0),{1,1},100,{0,0},1.1}
  2100. wep[j][np].Swap = function(self,i)
  2101. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  2102. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.25,0)*ca(rd(180),0,0)} qi{"SpecialMesh",ww,MeshId=asset.."73838973", TextureId=asset.."73838990",Scale=v3(1.3,1.3,1.6)}
  2103. end
  2104. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2105. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2106. wep[j][np].func = function(i,wn)
  2107. St.ArmAiming=false
  2108. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  2109. c12(rw,1,ra1[1]*ca(rd(-160),rd(0),rd(-70)),0.1,1,u*0.65) wait(0.22)
  2110. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  2111. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  2112. amm(1) FireBullet(cn(he.CFrame*cn(0,0,-5).p,mous.hit.p)*ca(rd(-90),0,0),80,5,100,"grenade",1,nil,handles[1].Mesh) so(ds.Slash,to,1,1)
  2113. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  2114. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  2115. St.ArmAiming=true gdb(2)
  2116. end
  2117. np = "SmokeBomb"
  2118. wep[j][np] = {}
  2119. wep[j][np].MaxClip = 20
  2120. wep[j][np].MaxAmmo = 1
  2121. wep[j][np].Stats={la0[1],la1[1]*ca(rd(30),rd(0),0),ra0[1],ra1[1]*ca(rd(-90),rd(-10),0),{1,1},100,{0,0},1.1}
  2122. wep[j][np].Swap = function(self,i)
  2123. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  2124. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.25,0)*ca(rd(180),0,0)} qi{"SpecialMesh",ww,MeshId=asset.."40825991", TextureId=asset.."40825717",Scale=v3(1.3,1.3,1.6)}
  2125. end
  2126. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1,handles[1].Mesh) end
  2127. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2128. wep[j][np].func = function(i,wn)
  2129. St.ArmAiming=false
  2130. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  2131. c12(rw,1,ra1[1]*ca(rd(-160),rd(0),rd(-70)),0.1,1,u*0.65) wait(0.22)
  2132. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  2133. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  2134. amm(1) FireBullet(cn(he.CFrame*cn(0,0,-5).p,mous.hit.p)*ca(rd(-90),0,0),0,5,100,"grenade2",1,nil,handles[1].Mesh) so(ds.Slash,to,1,1)
  2135. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  2136. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  2137. St.ArmAiming=true gdb(2)
  2138. end
  2139. np = "C4"
  2140. wep[j][np] = {}
  2141. wep[j][np].MaxClip = 15
  2142. wep[j][np].MaxAmmo = 1
  2143. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(-10),0),ra0[1],ra1[1]*ca(rd(-90),rd(30),0),{1,1},10,{1,1},1.1}
  2144. wep[j][np].Swap = function(self,i)
  2145. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,"Brown") handles[1] = ww qi{"SpecialMesh",ww,MeshId=asset.."74322628",TextureId=asset .. "74322630",Scale=v3(1,1.6,1)*2.5}
  2146. qi{"Weld",ww,Part0=ra,Part1=ww,C0=ca(0,0,rd(-30))*cn(-1.5,-1.8,0.3)*ca(rd(0),rd(180),rd(90))}
  2147. end
  2148. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2149. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2150. wep[j][np].func = function(i,wn)
  2151. DropExplosive(handles[1])
  2152. amm(1) so(ds.Slash,to,1,1)
  2153. end
  2154. np = "Molotov"
  2155. wep[j][np] = {}
  2156. wep[j][np].MaxClip = 10
  2157. wep[j][np].MaxAmmo = 1
  2158. wep[j][np].Stats={la0[1],la1[1]*ca(rd(30),rd(0),0),ra0[1],ra1[1]*ca(rd(-90),rd(-10),0),{1,1},100,{0,0},1.1}
  2159. wep[j][np].Swap = function(self,i)
  2160. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0.1,0,"Bright red") handles[1] = ww
  2161. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.25,0)*ca(rd(-90),0,0)} qi{"SpecialMesh",ww,MeshId=asset.."29690481",TextureId=asset .. "29690498",Scale=v3(1,1,1)*1.4}
  2162. end
  2163. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2164. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2165. wep[j][np].func = function(i,wn)
  2166. St.ArmAiming=false
  2167. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  2168. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  2169. amm(1) FireBullet(cn(he.CFrame*cn(0,0,-5).p,mous.hit.p)*ca(rd(-90),0,0),35,3.3,100,"molotov",1,nil,handles[1].Mesh) so(ds.Slash,to,1,1)
  2170. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  2171. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u) gdb(3.3)
  2172. St.ArmAiming=true
  2173. end
  2174. np = "Cover"
  2175. wep[j][np] = {}
  2176. wep[j][np].MaxClip = 4
  2177. wep[j][np].MaxAmmo = 1
  2178. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(15),0),ra0[1],ra1[1]*ca(rd(-90),rd(-15),0),{1,1},10,{1,1},1.1}
  2179. wep[j][np].Swap = function(self,i)
  2180. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,"Brown") handles[1] = ww qi{"BlockMesh",ww,Scale=v3(3,3,0.5)*5}
  2181. qi{"Weld",ww,Part0=ra,Part1=ww,C0=ca(0,0,rd(15))*cn(-1.4,-1.4,0.3)*ca(rd(-90),rd(0),rd(0))}
  2182. end
  2183. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,nil,1) end
  2184. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2185. wep[j][np].func = function(i,wn)
  2186. amm(1) local suc = AddCover() if not suc then amm(-1) end gdb(5)
  2187. end
  2188. np = "Mine"
  2189. wep[j][np] = {}
  2190. wep[j][np].MaxClip = 15
  2191. wep[j][np].MaxAmmo = 1
  2192. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(15),0),ra0[1],ra1[1]*ca(rd(-90),rd(-15),0),{1,1},10,{1,1},1.1}
  2193. wep[j][np].Swap = function(self,i)
  2194. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,"Brown") handles[1] = ww qi{"SpecialMesh",ww,MeshId=asset.."28511843",TextureId=asset .. "28512114",Scale=v3(3,3,3)}
  2195. qi{"Weld",ww,Part0=ra,Part1=ww,C0=ca(0,0,rd(15))*cn(-1.4,-1.65,-0.2)*ca(rd(-90),rd(0),rd(0))}
  2196. end
  2197. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2198. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2199. wep[j][np].func = function(i,wn)
  2200. DropMine(handles[1])
  2201. amm(1) so(ds.Slash,to,1,1)
  2202. end
  2203. np = "Medkit"
  2204. wep[j][np] = {}
  2205. wep[j][np].MaxClip = 1
  2206. wep[j][np].MaxAmmo = 1
  2207. wep[j][np].Stats={la0[1],la1[1]*ca(rd(-90),rd(5),0),ra0[1],ra1[1]*ca(rd(-90),rd(-5),0),{1,1},10,{1,1},1.1}
  2208. wep[j][np].Swap = function(self,i)
  2209. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,"Bright red") handles[1] = ww qi{"SpecialMesh",ww,Scale=v3(1,1,1)*1.35,MeshId=asset.."45021509",TextureId=asset.."45021236"}
  2210. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-1.2,-1.7,0.2)*ca(rd(-65),0,0)}
  2211. end
  2212. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1],1) end
  2213. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2214. wep[j][np].func = function(i,wn)
  2215. local success = MedkitFunc()
  2216. if success then amm(1) end
  2217. end
  2218.  
  2219.  
  2220. _G.c = function() Players.LocalPlayer.CameraMode=0 end
  2221.  
  2222. --for i=1,4 do local use = awep[i] if wep[i][use] and wep[i][use].MaxAmmo then amz[i].ma=wep[i][use].MaxAmmo*wep[i][use].MaxClip end end
  2223.  
  2224. packs = {}
  2225. for i=1,4 do
  2226. pcall(function() ch["pack" ..i]:Remove() end)
  2227. packs[i] = qi{"Model",ch,Name="pack" ..i}
  2228. end
  2229.  
  2230.  
  2231. ll = ch["Left Leg"]
  2232. rl = ch["Right Leg"]
  2233.  
  2234.  
  2235. bps = {}
  2236. --1
  2237. bps.Uzi = {rl,cn(0.6,0.5,0.15)*ca(rd(180),0,0)}
  2238. bps.Pistol = {rl,cn(0.6,0.5,0)*ca(rd(180),0,0)}
  2239. bps.Dual = bps.Pistol
  2240. bps.Knife = {rl,cn(0.5,0.5,0)*ca(rd(30),0,rd(90))}
  2241. bps.Katana = bps.Knife
  2242. --2
  2243. bps.Sniper = {to2,cn(0,0.4,0.52)*ca(0,0,rd(140))*ca(0,rd(90),0)}
  2244. bps.VIPSniper = bps.Sniper
  2245. bps.Shotgun = {to2,cn(0,0.4,0.52)*ca(0,0,rd(140))*ca(0,rd(90),0)}
  2246. bps.Assault = {to2,cn(0,0.4,0.52)*ca(0,0,rd(140))*ca(0,rd(90),0)}
  2247. bps["GrenadeLauncher"] = bps.Mortar
  2248. --3
  2249. bps.Mortar = {to2,cn(0,0.4,0.7)*ca(0,0,rd(140))}
  2250. bps.Rpg = bps.Mortar
  2251. bps["AG-Rpg"] = bps.Mortar
  2252. bps["Tri-Rpg"] = bps.Mortar
  2253. bps.Minigun = {to2,cn(-0.3,0.4,1.3)*ca(0,rd(90),0)*ca(rd(-140),0,0)}
  2254. bps.Flamethrower = {to2,cn(-0.3,0.4,0.9)*ca(0,rd(90),0)*ca(rd(-140),0,rd(180))}
  2255. --4
  2256. bps.Grenade = {ll,cn(0,0.2,0.75)*ca(rd(-90),0,0)}
  2257. bps.SmokeBomb = bps.Grenade
  2258. bps.Translocator = bps.Grenade
  2259. bps.Molotov = {ll,cn(0,0.45,0.7)*ca(0,0,0)}
  2260.  
  2261.  
  2262.  
  2263. Swap = function(i,ani)
  2264. if awep[i] == "" then return end
  2265. St.Swapping = true
  2266. ogn = awep[cwep]
  2267. ngn = awep[i]
  2268. Scope(false)
  2269. if SMsg then SMsg("Switching to " ..awep[i].. ".","Olive") end
  2270. St.a = "Swapping"
  2271. pcall(function() FirePower:Remove() end)
  2272. if not ani then
  2273. St.ArmAiming = false
  2274. --lw.C0=la0[1] lw.C1=la1[1]*ca(rd(-90),0,0)
  2275. --rw.C0=ra0[1] rw.C1=ra1[1]*ca(rd(-90),0,0)
  2276. c12(rw,1,ra1[1]*ca(rd(45),0,0),0.1,1,u*2)
  2277. end
  2278. xhandle = nil
  2279. for x,v in pairs(handles) do if bps[ogn] and x==1 and cwep < 5 and cwep~=i then xhandle=handles[x] else handles[x]:Destroy() end end handles = {}
  2280. --weapon backpack
  2281. if i<5 then for i,v in pairs(packs[i]:children()) do v:Remove() end end -- remove upcoming weapon's backpack
  2282. if xhandle then
  2283. xhandle.Transparency=0
  2284. xhandle.Parent = packs[cwep]
  2285. for i,v in pairs(xhandle:children()) do if v:IsA("Weld") then v:Remove() end end -- remove welds
  2286. qi{"Weld",xhandle,Part0=bps[ogn][1],Part1=xhandle,C0=bps[ogn][2]}
  2287. end
  2288. ---
  2289. cwep=i --- :O
  2290. local nw = awep[i] p2.Use = twep[i] p2.Equip = awep[i]
  2291. wep[i][nw]:Swap(i)
  2292. chran[2]=wep[i][nw].Stats[6]
  2293. Spd[5]=wep[i][nw].Stats[8]
  2294. if not ani then
  2295. q(function() c12(rw,1,wep[i][nw].Stats[4],0.1,1,u*2) end)
  2296. c12(rw,0,wep[i][nw].Stats[3],0.1,1,u*2)
  2297. St.ArmAiming = true
  2298. end
  2299. St.a="None"
  2300. St.Swapping=false
  2301. end
  2302.  
  2303. for i=5,1,-1 do
  2304. Swap(i,1)
  2305. end
  2306. invload(1) -- load for inventory
  2307.  
  2308.  
  2309.  
  2310.  
  2311. for i,v in pairs(Mod.SponsorButtons:children()) do
  2312. local v1bb = pa(SButtons,v:findFirstChild("id") and v.id.Value or "NaN","Block",0,0,0,true,true,0,0,"Bright red") v1bb.CFrame=v.CFrame qi{"CylinderMesh",v1bb,Scale=v3(2,0.7,2)*5}
  2313. v1bb.Friction=0 v1bb.Changed:connect(function(prop) if prop == "Friction" and v1bb.Friction==1 then for r=-1,1,2 do for h=1,5 do v1bb.CFrame=v1bb.CFrame*cn(0,-0.085*r,0) wait() end wait() end v1bb.Friction=0 end end)
  2314. end
  2315.  
  2316.  
  2317. hgui.MouseEnter:connect(function() desc2.Parent = hgui desc2.Size = ud(0,140,0,10) desc2.Position = ud(1,0,0,0) desc2.Text = "Health " .. mf(hu.Health) .. "/" .. mf(hu.MaxHealth) end)
  2318. hgui.MouseLeave:connect(function() if desc2.Parent==hgui then desc2.Parent=nil end end)
  2319.  
  2320. if not _G.cha then _G.cha = {} end
  2321.  
  2322. Chatf.Position=ud(0,10,0,0)
  2323.  
  2324. if not _G.con then _G.con = {} _G.conid=0 end
  2325. for i,v in pairs(_G.con) do v:disconnect() _G.con[i]=nil end
  2326. newcon = function(con)
  2327. _G.con[_G.conid]=con
  2328. _G.conid=_G.conid+0.02
  2329. end
  2330.  
  2331.  
  2332. Msgf.Position=ud(0,10,0,0)
  2333.  
  2334. Chats.Visible = false
  2335. Msgs.Visible = false
  2336. MSC = GameStats.Msg
  2337. GSC = GameStats.Chats
  2338. GSCF=function(thev,col,hax) so(ds.clicksound,m2,0.25,1)
  2339. local msg = thev
  2340. if type(msg)~="string" then msg = msg.Value end
  2341. if #msg > 100 then msg = msg:sub(1,100) end
  2342. if not col then table.insert(_G.cha,{msg,thev.Color.Value.Name}) end
  2343. msg = se("/",msg)
  2344. ----- CHATS
  2345. for i,v in pairs(Chatf:children()) do v.Position=v.Position+ud(0,0,0,cft) end
  2346. local newtext=qi{"Frame",Chatf,Name=#Chatf:children()+1,ZIndex=3,Size=ud(1,0,0,cft),Position=ud(0,0,0,0),[bgt]=1}
  2347. local binds = 0
  2348. for i=1,#msg,1 do
  2349. local msgi = msg[i]
  2350. if cpi[msgi:lower()] or type(tonumber(msgi)) == "number" then
  2351. local nv1=qi{"ImageButton",newtext,ZIndex=3,Size=ud(0,26,0,26),Position=ud(0,binds+1,0,-3),[bgt]=1,Image=cpi[msgi:lower()] or (asset .. msgi)}
  2352. guieffect1(nv1,4)
  2353. binds=binds+26
  2354. else
  2355. local nv1=qi{"TextLabel",newtext,ZIndex=3,Size=ud(0,0,0,cft),Position=ud(0,binds,0,0),Font="ArialBold",[tst]=0,[tsc]=bc("Really black").Color,FontSize="Size14",Text=msgi,TextColor3=col and bc(col).Color or thev.Color.Value.Color,[txa]="Left",[bgt]=1}
  2356. binds=binds+(nv1.TextBounds.x*1.02)
  2357. end
  2358. end
  2359. Chatf.Size=Chatf.Size+ud(0,0,0,cft)
  2360. local thetick = tick()
  2361. newtext.MouseEnter:connect(function() desc2.Parent = newtext desc2.Size = ud(0,120,0,cft) desc2.Position = ud(1,-120,0,0) desc2.Text = mf(tick()-thetick) .. " seconds ago" end)
  2362. newtext.MouseLeave:connect(function() if desc2.Parent==newtext then desc2.Parent=nil end end)
  2363. if cfm >= #Chatf:children() then Chats.Visible = false else
  2364. Chats.Visible = true Chats.Position=ud(0,0,0,0) Chats.Size = ud(0,10,0,((cfm)/(#Chatf:children()))*(cfm*cft)) end
  2365.  
  2366. Chatf.Position=Chatf.Position-ud(0,0,0,cft) for i=1,4 do if not hax then wait() end Chatf.Position=Chatf.Position+ud(0,0,0,5) end
  2367. end
  2368. newcon(GSC.Changed:connect(function() GSCF(GSC) end))
  2369. Player[statname].Chat.Changed:connect(function() GSCF(Player[statname].Chat) end)
  2370. MSCF = function(thev)
  2371. ----MSGS
  2372. for i,v in pairs(Msgf:children()) do v.Position=v.Position+ud(0,0,0,mft) end
  2373. local newtext=qi{"TextLabel",Msgf,ZIndex=3,FontSize="Size14",Font="ArialBold",Size=ud(1,0,0,mft),Position=ud(0,0,0,0),Text=thev.Value,TextColor3=thev.Color.Value.Color,[txa]="Left",[tst]=0,[tsc]=bc("Really black").Color,[bgt]=1}
  2374. Msgf.Size=Msgf.Size+ud(0,0,0,mft)
  2375. local thetick = tick()
  2376. newtext.MouseEnter:connect(function() desc2.Parent = newtext desc2.Size = ud(0,120,0,mft) desc2.Position = ud(1,-120,0,0) desc2.Text = mf(tick()-thetick) .. " seconds ago" end)
  2377. newtext.MouseLeave:connect(function() if desc2.Parent==newtext then desc2.Parent=nil end end)
  2378. if mfm >= #Msgf:children() then Msgs.Visible = false else
  2379. Msgs.Visible = true Msgs.Position=ud(0,0,0,0) Msgs.Size = ud(0,10,0,((mfm)/(#Msgf:children()))*(mfm*mft)) end
  2380.  
  2381. Msgf.Position=Msgf.Position-ud(0,0,0,mft) for i=1,4 do wait() Msgf.Position=Msgf.Position+ud(0,0,0,i~=4 and 4 or 2) end
  2382. end
  2383. MSC.Changed:connect(function() MSCF(MSC) end)
  2384. Player[statname].Msg.Changed:connect(function() MSCF(Player[statname].Msg) end)
  2385.  
  2386. for i=#_G.cha-12,#_G.cha,1 do
  2387. if type(_G.cha[i])=="table" then
  2388. GSCF(_G.cha[i][1],_G.cha[i][2],true)
  2389. end
  2390. end
  2391.  
  2392. Player.CameraMode=0
  2393. Player.CameraMode=1
  2394.  
  2395. SMsg = function(so,co)
  2396. local coo = co or "Black" Player[statname].Msg.Color.Value = bc(coo) Player[statname].Msg.Value = so .. string.rep(" ",rn(1,5))
  2397.  
  2398. end
  2399.  
  2400. for i=1,25 do Def[i]=1 Spd[i]=1 tbgc[i]=ca(0,0,0) if not chran[i] then chran[i]=0 end end
  2401.  
  2402. Overstat = {}
  2403. CreateStat = function()
  2404. local newstat = qi{"BillboardGui",m2,Active=true,Size=ud(0,20,0,20),StudsOffset=v3(0,3,0)}
  2405. local tex = qi{"TextLabel",newstat,ZIndex=10,[tya]="Bottom",[txa]="Center",Name="tx",[bgt]=1,Size=ud(0,300,0,0),Position=ud(0,-150,0,0),TextWrap=true,Font="ArialBold",FontSize="Size14",[tst]=0,[tsc]=bc("Black").Color}
  2406. return newstat
  2407. end
  2408.  
  2409. zneck = 0
  2410. yneck = 1.25
  2411.  
  2412. minut3 = function(tim)
  2413. local sec = tostring(tim%60)
  2414. local minu = tostring(math.floor((tim%3600)/60))
  2415. local hour = tostring(math.floor(tim/3600)) --math.floor((tim%86400)/3600))
  2416. if #sec == 1 then sec = "0" ..sec end
  2417. if #minu == 1 then minu = "0" ..minu end
  2418. if #hour == 1 then hour = "0" ..hour end
  2419. return hour.. ":" ..minu.. ":" ..sec
  2420. end
  2421.  
  2422. minut2 = function(tim)
  2423. local sec = tostring(tim%60)
  2424. local minu = tostring(math.floor((tim%3600)/60))
  2425. local hour = tostring(math.floor((tim%86400)/3600))
  2426. local day = tostring(math.floor((tim%(86400*365))/86400))
  2427. if #sec == 1 then sec = "0" ..sec end
  2428. if #minu == 1 then minu = "0" ..minu end
  2429. if #hour == 1 then hour = "0" ..hour end
  2430. if #day == 1 then day = "0" ..day end
  2431. return day .. ":" ..hour.. ":" ..minu.. ":" ..sec
  2432. end
  2433.  
  2434. minut = function(tim)
  2435. local sec = tostring(math.floor(tim%60))
  2436. local minu = tostring(math.floor(tim/60))
  2437. if #sec == 1 then sec = "0" ..sec end
  2438. if #minu == 1 then minu = "0" ..minu end
  2439. return minu .. ":" ..sec
  2440. end
  2441.  
  2442. for i=1,5 do
  2443. if awep[i] ~= "" then
  2444. local nw = awep[i]
  2445. local wee = wep[i][nw]
  2446. if wee.Reclip then
  2447. calcreclip(i,wee.MaxAmmo*wee.MaxClip,nw)
  2448. end
  2449. end
  2450. end
  2451.  
  2452. for i=1,1 do
  2453. wss=0
  2454. wait(0.1)
  2455. bin.Parent = ch
  2456. p2.def=1
  2457. wait(0.6)
  2458. local u = 0
  2459. while true do
  2460. wait()
  2461. u = u + 1
  2462. chran[3] = St.Crouch and -12 or 0
  2463. if lh and rh then
  2464. lh.MaxVelocity = St.Crouch and 0.035 or 0.1
  2465. rh.MaxVelocity = St.Crouch and 0.035 or 0.1
  2466. end
  2467.  
  2468. erms("1")
  2469. local nw = awep[cwep]
  2470. if handles[1] then
  2471. handles[1].Transparency = (visihandle[nw] and amz[cwep].a < 1) and 1 or (nw=="Gasoline" and handles[1].Transparency or 0)
  2472. if handles[1]:findFirstChild("Decal") then
  2473. handles[1].Decal.Transparency = (visihandle[nw] and amz[cwep].a < 1) and 1 or 0
  2474. end
  2475. end
  2476.  
  2477. erms("2")
  2478.  
  2479. local theran = 0 for i=1,#chran do theran=theran+chran[i] end
  2480. theran = theran<1 and 1 or theran
  2481. St.Accuracy=theran
  2482.  
  2483. local nw = awep[cwep] local wee = wep[cwep][nw]
  2484.  
  2485. erms("3")
  2486.  
  2487. local defs = 1 for i=1,#Def do defs=defs*Def[i] end
  2488. p2.def=defs
  2489.  
  2490. local spid = p2.Speed*st.AllSpeed for i=1,#Spd do spid = spid*Spd[i] end hu.WalkSpeed = spid
  2491. p2.Use = twep[cwep]
  2492. p2.Use = awep[cwep]
  2493. p2.Anim = St.a
  2494. hpt.Text = mf(hu.Health)
  2495. gum.Text = wee.MaxClip and amz[cwep].ma or "--"
  2496. gua.Text = wee.MaxAmmo and amz[cwep].a or "--"
  2497. gun.Text = awep[cwep]
  2498. local ldb = amz[cwep].coo
  2499. local ggdb = amz[cwep].db-tick() if ggdb < 0 then ggdb = 0 end
  2500. gud.Size = ud(0,(160/ldb)*ggdb,0,14)
  2501. gud.Position = ud(1,-60-gud.Size.X.Offset,1,-16)
  2502. gud[bc3] = c3(1,1-((1/ldb)*ggdb),0)
  2503. if mf(to.Velocity.magnitude)-1 > wss then wss=wss+2.5 elseif mf(to.Velocity.magnitude) < wss then wss=wss-2.5 end
  2504. wss = wss < 20 and wss or 20 wss =wss
  2505. chran[1] = st.Condition=="Playing" and wss*2 or 0
  2506. if St.MouseFree then
  2507. MouseFree.Visible = true
  2508. else
  2509. MouseFree.Visible = false
  2510. end
  2511.  
  2512. erms("4")
  2513.  
  2514. if mous then
  2515. local mt = mous.Target
  2516.  
  2517. if to:findFirstChild("Neck") then
  2518. if St.CamShakes > 0 then
  2519. St.CamShakes = St.CamShakes-1
  2520. to["Neck"].C0 = cn(0,tw2.C0.y,St.Scoping and -St.ScopeLimit or 0)*cn(0,yneck,St.CamShakes/10+zneck)*ca(rd(90),rd(180),0)
  2521. cam.CoordinateFrame=cam.CoordinateFrame*cn(rn(-1,1)/(St.Shake*3),rn(-1,1)/(St.Shake*3),0)
  2522. else
  2523. to["Neck"].C0 = cn(0,tw2.C0.y,St.Scoping and -St.ScopeLimit or 0)*cn(0,yneck,zneck)*ca(rd(90),rd(180),0)
  2524. end
  2525. end -- neck
  2526.  
  2527. erms("5")
  2528. -- Mouse Hoverin
  2529. local lidvalstat = {[0]="Click to Open Weapon box","Opening Box...","Press F To Reclip and B to Open Inventory/Shop"}
  2530. if mt then
  2531. if mt.Name=="SponsorPic" and mt:findFirstChild("desc") and dis(to,mt) < 20 then
  2532. desc1.Parent = fr sbox1.Adornee=mt desc1.Size = ud(0,220,0,80) desc1.Position = ud(0,mous.X,0,mous.Y-80) desc1.Text = mt.desc.Value
  2533. elseif mt.Name=="SponsorButton" and mt:findFirstChild("id") and dis(to,mt) < 20 then
  2534. desc1.Parent = fr sbox1.Adornee=nil desc1.Size = ud(0,160,0,15) desc1.Position = ud(0,mous.X-80,0,mous.Y+60) desc1.Text = "Teleport to this place"
  2535. elseif mt.Name == "weparea" and dis(to,mt) <40 then
  2536. desc1.Parent = nil sbox1.Adornee = nil bbg.Parent = mt bbg.StudsOffset=v3(0,2,0) bbg.Adornee=mt bbgt.Text=lidvalstat[mt.Stat.Value]
  2537. elseif mt.Name:sub(1,4) == "flag" and dis(to,mt) <10 then
  2538. desc1.Parent = nil sbox1.Adornee = nil bbg.Parent = m2 bbg.StudsOffset=v3(0,3,0) bbg.Adornee=mt
  2539. bbgt.Text=p2.Team==tonumber(mt.Parent.Name:sub(5)) and (mt.Transparency==0 and "Your Team's Flag" or "Your Team's Flag has been taken!") or (mt.Transparency==0 and "Enemy Flag! TAKE!" or "The Enemy Flag has already been taken!")
  2540. elseif mt.Name == "bomb" and mt.Parent.Name=="Bomb" and dis(to,mt) <12 then
  2541. desc1.Parent = nil sbox1.Adornee = nil bbg.Parent = m2 bbg.StudsOffset=v3(0,3,0) bbg.Adornee=mt
  2542. local loltex1 = {["calm"]="The bomb hasn't been fused yet!",["fused"]="The Bomb has been fused!",["defused"]="The Bomb has been defused!"}
  2543. bbgt.Text=loltex1[mt.Parent.Status.Value]
  2544. else
  2545. bbg.Parent = nil
  2546. bbgt.Text = ""
  2547. bbg.Adornee=nil
  2548. desc1.Parent=nil
  2549. sbox1.Adornee=nil
  2550. end end --hover
  2551. ---
  2552. end---mouse
  2553.  
  2554.  
  2555. erms("6")
  2556. local rots1 = -math.deg((to.Position - mous.hit.p).unit.y)
  2557. rots1 = rots1 < 90 and rots1 or 90
  2558. rots1 = rots1 > -90 and rots1 or -90
  2559. zneck =(rots1-25)/140
  2560.  
  2561. if u%2==0 then
  2562. sneck.C0=cn(0,tw2.C0.y,0)*cn(0,0.9,0)*ca(rd(rots1),0,0)*cn(0,0.6,0)
  2563.  
  2564. local use = awep[cwep]
  2565. local use = wep[cwep][use].Stats
  2566. if St.ArmAiming and type(use[5])=="table" then
  2567. lw.C0=use[1]
  2568. lw.C1=use[2]
  2569. rw.C0=use[3]
  2570. rw.C1=use[4]
  2571. lw.C1=use[5][1]==1 and lw.C1*ca(rd(-rots1 > 40 and 40 or -rots1),0,0) or lw.C1
  2572. rw.C1=use[5][2]==1 and rw.C1*ca(rd(-rots1 > 40 and 40 or -rots1),0,0) or rw.C1
  2573.  
  2574. end
  2575.  
  2576. end
  2577.  
  2578. erms("7")
  2579.  
  2580. if St.Crosshair then --not St.MouseFree then
  2581. x1.Visible=true x2.Visible=true y1.Visible=true y2.Visible = true
  2582. x1.Position=ud(0,mous.X+(csize/2)+cran+theran-2,0,mous.Y-3)
  2583. x2.Position=ud(0,mous.X-(csize)-(cran*2)-theran-3,0,mous.Y-3)
  2584. y1.Position=ud(0,mous.X-3,0,mous.Y+(csize/2)+cran+theran-2)
  2585. y2.Position=ud(0,mous.X-3,0,mous.Y-(csize)-(cran*2)-theran-3)
  2586. end
  2587. local tbga = ca(0,0,0) for i=1,#tbgc do tbga=tbga*tbgc[i] end
  2588. to.CFrame = cn(to.Position,v3(mous.Hit.p.x,to.Position.y,mous.Hit.p.z))*tbga
  2589.  
  2590. erms("8")
  2591.  
  2592.  
  2593. if FirePower and FirePower.Transparency<1 and FirePower:findFirstChild("Weld") then
  2594. FirePower.Weld.C0=FirePower.Weld.C0*ca(0,rd(15),0)
  2595. FirePower.Transparency=FirePower.Transparency+0.2
  2596. end
  2597.  
  2598. if hitmsg.TextTransparency<1 then
  2599. hitmsg.TextTransparency=hitmsg.TextTransparency+0.2
  2600. end
  2601. if x1.hitmsg[bgt]<1 then
  2602. for i,v in pairs({x1,x2,y1,y2}) do
  2603. v.hitmsg[bgt]=v.hitmsg[bgt]+0.067
  2604. end
  2605. end
  2606.  
  2607. erms("8")
  2608.  
  2609. for i,v in pairs(Players:GetPlayers()) do
  2610. if v ~= Player and v:findFirstChild(statname) and v.Character and v.Character.Parent and v.Character:findFirstChild("Torso") then
  2611. if Overstat[v.Name] then else
  2612. Overstat[v.Name] = CreateStat()
  2613. end
  2614. local thegui = Overstat[v.Name]
  2615. if v:findFirstChild(statname) and pm[v.Name].ShowStat and v.Character:findFirstChild("Humanoid") and (St.Scoping or dis(v.Character.Torso,cam.CoordinateFrame) < 65) and thegui:findFirstChild("tx") then -- and bhit and bhit.Parent==v.Character then -- show
  2616. thegui.Parent = m2
  2617. thegui.Adornee = v.Character.Torso
  2618. local trut = (pm[v.Name].Team~=0 and pm[v.Name].Team==p2.Team)
  2619. local trut1,trut2
  2620. trut1 = pm[v.Name].Team==0 and "Neutral" or (trut and "Team" or "Enemy")
  2621. trut2 = pm[v.Name].Team == 0 and "White" or (trut and "Lime green" or "Bright red")
  2622. if st.Condition ~= "Playing" then trut=true end
  2623. thegui.tx.Text = v.Name .. [[
  2624. ]] .. mf(v.Character.Humanoid.Health) .. "/" ..mf(v.Character.Humanoid.MaxHealth) .. [[
  2625. ]] .. trut1
  2626. thegui.tx.TextColor3 = bc(trut2).Color
  2627. else -- hide
  2628. thegui.Adornee = nil
  2629. thegui.Parent=nil
  2630. end -- range check
  2631. end -- v~=player qi
  2632. end -- loop end
  2633.  
  2634. erms("9")
  2635.  
  2636. if wtabg.Visible then
  2637. for i=1,#wtab do
  2638. local nw = awep[i]
  2639. local use = wep[i][nw]
  2640. wtab[i].Text = nw == "" and "None" or nw
  2641. if nw ~= "" and use.Reclip then
  2642. wtab[i].Text = wtab[i].Text .. [[
  2643. ]] ..amz[i].a .. " / " ..amz[i].ma
  2644. else
  2645. wtab[i].Text = wtab[i].Text .. [[
  2646. -- / -- ]]
  2647. end
  2648. end
  2649. end
  2650.  
  2651.  
  2652. erms("10")
  2653.  
  2654.  
  2655. for xx,nb in pairs(bullets) do
  2656. local bb = nb.bb
  2657. local nv = nb.invert
  2658. nb.loop=nb.loop+1
  2659. local spd2 = nb.spd
  2660. nb.bhit,nb.bpos=ray(bb.Position,bb.Position - (bb.CFrame *cn(0,-1*nv,0)).p,Props2)
  2661. if (nb.bhit and nb.bhit.Parent~=ch and nb.bhit.Parent.Parent~=ch and nb.bhit.Transparency~=1 and (nb.bhit.Parent:findFirstChild("Humanoid") or nb.bhit.CanCollide)) and nb.bpos and (nb.bpos - bb.Position).magnitude < spd2 then nb.reach=true end
  2662. local ta
  2663. if nb.bty=="rpg4" and u%2==0 then ta=GetTarget(bb) end
  2664. --c/while wait(0.35) do print((workspace.StereoBan.Torso.CFrame:toObjectSpace(workspace.DoogleFox.Torso.CFrame)).x) end
  2665. --Forward
  2666. if nb.bty=="rpg4" and type(ta)=="userdata" then
  2667. bb.CFrame=cn(bb.Position,ta.Position)*ca(rd(-90),0,0)*cn(0,spd2,0)
  2668. else
  2669. bb.CFrame=bb.CFrame*cn(0,spd2*nv,0)*ca(-rd(exwep[nb.bty] and exwep[nb.bty][1] or 0.07),0,0)
  2670. end
  2671.  
  2672. if nb.reach then
  2673. bb.CFrame=bb.CFrame*cn(0,-spd2,0)
  2674. bb.CFrame=bb.CFrame*cn(0,(nb.bpos-bb.Position).magnitude,0)
  2675.  
  2676. if nb.bhit and nb.bhit.Parent:findFirstChild("Humanoid") then
  2677. local bty = nb.bty
  2678. local dmg = nb.dmg
  2679. local vic = nb.bhit.Parent
  2680. local vhu = vic.Humanoid
  2681. if bty == "bullet" then Dmg(vic.Name,dmg,nb.bhit) end
  2682.  
  2683. end
  2684.  
  2685. SpecialHit(nb.bhit,nb.dmg)
  2686.  
  2687. -- explosive bullit dmg
  2688. if nb.bhit and nb.bhit.Anchored then -- bullet hole / grenades are not bullets!
  2689. if exwep[nb.bty] and exwep[nb.bty][3] and string.find(nb.bty,"rpg") then BulletHole(nb.bpos,nb.bhit,exwep[nb.bty][3]*nb.sc,ds.Gradient1,Props2) elseif nb.bty=="bullet" then BulletHole(nb.bpos,nb.bhit,1*nb.sc,nil,Props2) end
  2690. end
  2691. if exwep[nb.bty] and nb.bty == "molotov" then so(ds.Explode1,bb,0.9,1)
  2692. exm(bb)
  2693. DmgRange(bb,exwep[nb.bty][3],nb.dmg,60)
  2694. bb.Anchored = false local bcf = bb.CFrame bb.CanCollide=true bb.Size=v3(1,1,1) bb.CFrame=bcf*cn(0,-3,0) bb.Velocity=v3(0,0,0)
  2695. dlay({bb,exwep[nb.bty][3],4,nil,"Molotov"},DmgRange,0.5,16)
  2696. local fia = qi{"Sound",bb,SoundId=ds.Flame,Looped=true} fia:play() qi{"Fire",bb,Size=exwep[nb.bty][3]*1.25} de(bb,8)
  2697. elseif nb.bty and (nb.bty == "grenade" or nb.bty=="grenade3") then
  2698. bb.CFrame=bb.CFrame*cn(0,-3,0)
  2699. bb.Anchored=false
  2700. delay(nb.bty=="grenade" and 1.8 or 3,function() bb.Anchored=true
  2701. local gpos,ghit = FindGround(bb.CFrame)
  2702. if gpos and ghit then BulletHole(gpos.p,ghit,exwep[nb.bty][3],ds.Gradient1,Props2) end
  2703. so(ds.Explode1,to,0.9,1)
  2704. exm(bb) de(bb,5)
  2705. DmgRange(bb,exwep[nb.bty][3],nb.dmg,nb.bty=="grenade" and 60 or 130)
  2706. end)
  2707. elseif nb.bty and nb.bty == "grenade2" then
  2708. bb.CFrame=bb.CFrame*cn(0,-3,0)
  2709. bb.Anchored=false
  2710. delay(3,function() bb.Anchored=true
  2711. de(bb,28)
  2712. bb.CFrame = cn(bb.Position)*ca(rd(90),0,0)*ca(0,rd(rn(-360,360)),0)
  2713. qi{"Smoke",bb,RiseVelocity=25,Opacity=0.1,Size=1,Color=bc("Black").Color}
  2714. dlay({bb.Smoke},function(sm) sm.Size=sm.Size+(36/8) sm.Opacity=sm.Opacity+(0.08) sm.RiseVelocity=sm.RiseVelocity-(23/8) end,0.3,8) --fade
  2715. dlay({{bb.Smoke},function(sm) sm.Size=sm.Size-4 sm.Opacity=sm.Opacity-(0.03) end,0.5,16},dlay,18,1) --fade
  2716. end)
  2717. elseif nb.bty and nb.bty == "tornade" then
  2718. bb.CFrame=bb.CFrame*cn(0,-2,0)
  2719. bb.Anchored=false
  2720. delay(2,function() bb.Anchored=true bb.Name = "Tornado" ..Player.Name
  2721. de(bb,15) bb.CFrame=cn(bb.Position)*cn(0,11,0)*ca(rd(180),0,0)*ca(0,rd(rn(-360,360)),0) bb.Transparency=0.1
  2722. exm(bb,bb,"White",nil,2) bb.Mesh.MeshId=asset.."36755354" bb.Mesh.TextureId=asset.."39511746" bb.Mesh.Scale=v3(10,11,10)
  2723. dlay({},function() dlay({},function() bb.Transparency=bb.Transparency+0.05 end,0,20) end,12)
  2724. local bcf = bb.CFrame
  2725. local bcfa=ca(0,0,0)
  2726. dlay({},function() bcf=bcf*cn(0,0,1.2) bcfa=bcfa*ca(0,rd(-60),0) bb.CFrame=bcf*bcfa end,0.2,12*6)
  2727. end)
  2728. elseif nb.bty and nb.bty == "rpg5" and bb then
  2729. local spa = cn(bb.Position)
  2730. local gpos,ghit = FindGround(bb.CFrame)
  2731. if gpos and ghit then BulletHole(gpos.p,ghit,exwep[nb.bty][3]*3,ds.Gradient1,Props2) end
  2732. spa = gpos and cn(gpos.p) or spa
  2733. so(asset.."3087031",workspace,1,0.8)
  2734. local ri=pa(bb,"","Block",1,1,1,true,true,0.4,0.1,"New Yeller") ri.CFrame=spa*cn(0,25,0)*ca(rd(90),0,0) rim = qi{"SpecialMesh",ri,MeshId=ds.Ring}
  2735. dlay({},function() ri.Transparency=ri.Transparency+(0.5/120) rim.Scale=rim.Scale+(v3(1,1,0.5)*2) end,0,160)
  2736. dlay({},function() DmgRange(bb,exwep[nb.bty][3],nb.dmg,10) so(ds.Explode1,bb,1,0.85) local rr=30 exm(bb,bb,"New Yeller",cn(bb.Position+v3(rn(-rr,rr),rn(2,rr),rn(-rr,rr)) ),2) end,1,15) de(bb,28)
  2737. for i=45,360,45 do
  2738. local ww = pa(bb,"Nuke","Block",1,1,1,true,true,1,0,"") dlay({},function() ww.Smoke.Enabled=false de(ww,9) end,15)
  2739. ww.CFrame=spa*ca(0,rd(i),0)*cn(0,0,15)*ca(rd(10),0,0)
  2740. qi{"Smoke",ww,RiseVelocity=18,Size=40,Color=bc("Black").Color,Opacity=0.8}
  2741. end
  2742. delay(4.5,function()
  2743. for i=45,360,45 do
  2744. local ww = pa(bb,"","Block",1,1,1,true,true,1,0,"") dlay({},function() ww.Smoke.Enabled=false de(ww,9) end,15)
  2745. ww.CFrame=spa*ca(0,rd(i),0)*cn(0,90,15)*ca(rd(76),0,0)
  2746. qi{"Smoke",ww,RiseVelocity=500,Size=50,Color=bc("Black").Color,Opacity=0.8}
  2747. end end)
  2748. elseif nb.bty and nb.bty == "tele" and bb then
  2749. bb.CFrame=bb.CFrame*cn(0,-3,0)
  2750. bb.Anchored=false
  2751. delay(2,function()
  2752. if dis(to,bb) > 500 then SMsg("Translocator Failed!","Really red") return end
  2753. SMsg("Translocator Activated!","Olive")
  2754. de(bb,3)
  2755. exm(to,nil,"Bright blue")
  2756. to.CFrame=cn(bb.Position)*cn(0,5,0)
  2757. exm(to,nil,"Bright blue") so(ds.EnergySlash1,to,1.1,1)
  2758. end)
  2759. elseif nb.bty and nb.bty == "goo" and bb then
  2760. local gpos,ghit = FindGround(bb.CFrame)
  2761. if gpos and ghit then
  2762. bb.Size=v3(1,1,1) bb.Mesh.Scale=v3(1,1,1) dlay({},function() bb.Mesh.Scale=bb.Mesh.Scale+v3(0.5,0,0.5) end,0.05,10) bb.CFrame=cn(gpos.p) bb.Name="Goo" ..Player.Name
  2763. de(bb,20) fade(bb,0.02,10)
  2764. else
  2765. bb:Remove()
  2766. end
  2767. elseif exwep[nb.bty] then bb.Transparency = 1 if bb:findFirstChild("Smoke") then bb.Smoke.Enabled=false end de(bb,3) so(ds.Explode1,to,0.8,1) pcall(function() RocketWoosh:Stop() end)
  2768. exm(bb)
  2769. DmgRange(bb,exwep[nb.bty][3],nb.dmg,60)
  2770. else bb.Transparency=1 de(bb,8) end
  2771. bullets[xx] = nil
  2772. elseif nb.loop >= nb.ran then
  2773. bb.Transparency=1 de(bb,8)
  2774. bullets[xx] = nil
  2775. end
  2776. end -- for end
  2777.  
  2778. erms("11")
  2779.  
  2780.  
  2781.  
  2782. erms("12")
  2783.  
  2784. scope.Visible=St.Scoping
  2785.  
  2786. local hhh = (1/hu.MaxHealth)*hu.Health
  2787. hg1v[bc3]=c3(1-hhh,hhh,0)
  2788. hg2v[bc3]=c3(1-hhh,hhh,0)
  2789. hg3v[bc3]=c3(1-hhh,hhh,0)
  2790. hpt.TextColor3=c3(1-hhh,hhh,0)
  2791.  
  2792. meshact()
  2793.  
  2794. erms("13")
  2795.  
  2796. if st.Time < 0 then
  2797. timm.Visible = false timl.Visible = false timr.Visible = false
  2798. else
  2799. timm.Visible = true timl.Visible = true timr.Visible = true
  2800. timm.Text = minut(st.Time)
  2801. end
  2802.  
  2803. erms("14")
  2804.  
  2805. for i=1,10 do if st.ltype==i then modegui[i].Visible=true else modegui[i].Visible=false end end
  2806.  
  2807. erms("15")
  2808.  
  2809. if st.Mode~=0 then
  2810. if st.ltype == 1 then
  2811. modegui[1].t1.Text = "Team 1 Kills:" .. [[
  2812. ]] ..st.tp1
  2813. modegui[1].t2.Text = "Team 2 Kills:" .. [[
  2814. ]] ..st.tp2
  2815. elseif st.ltype == 2 then
  2816. modegui[2].t1.Text = "Team 1 Members:" .. [[
  2817. ]] ..st.tp1
  2818. modegui[2].t2.Text = "Team 2 Members:" .. [[
  2819. ]] ..st.tp2
  2820. elseif st.ltype == 3 then
  2821. modegui[3].t1.Text = "Team 1 Points:" .. [[
  2822. ]] ..st.tp1
  2823. modegui[3].t2.Text = "Team 2 Points:" .. [[
  2824. ]] ..st.tp2
  2825. elseif st.ltype == 4 then
  2826. local jh = nil
  2827. pcall(function() jh=game:service'Players'[st.v1].Character.Humanoid end)
  2828. if jh then
  2829. modegui[4].j4.juger.Text = "Juggernaut: " ..st.v1
  2830. modegui[4].j4.health.Text = jh.Health .. "/" ..jh.MaxHealth
  2831. modegui[4].j4.bar.Size = ud((1/jh.MaxHealth)*jh.Health,-4,1,-4)
  2832. end
  2833. end
  2834. end
  2835. erms("16")
  2836. -------
  2837. if lboard.Visible and u%5==0 then
  2838. mapname.Text="Map: " .. Maps[st.Map][1]
  2839. modename.Text="Mode: " .. Modes[st.Mode][1]
  2840. roundt.Text="Round # " .. st.Round
  2841. servertime.Text="Server Time: " .. minut3(math.floor(st.servertime))
  2842. ------
  2843. local ps = game:service'Players':GetPlayers()
  2844. for i=1,maxp do
  2845. if #ps >= i and ps[i]:findFirstChild(statname) and ps[i][statname]:findFirstChild("Spray") then
  2846. local vn = ps[i].Name
  2847. local thecol = pm[vn].Team~=0 and bc(teamcol[pm[vn].Team]).Color or bc(pm[vn].Color).Color
  2848. lboard[i].Visible=true
  2849. lboard[i].name.TextColor3 = thecol
  2850. lboard[i].Team.TextColor3 = thecol
  2851. ----
  2852. lboard[i].name.Text = vn
  2853. lboard[i].Rank.Text = therankname[pm[vn].Rank]
  2854. lboard[i].Level.Text = pm[vn].Level.. ". " ..(ln[pm[vn].Level] or "")
  2855. lboard[i].Points.Text = pm[vn].Points
  2856. lboard[i].Team.Text = pm[vn].Team
  2857. lboard[i].Kills.Text = pm[vn].Kills
  2858. lboard[i].Deaths.Text = pm[vn].Deaths
  2859. lboard[i].Kills2.Text = pm[vn].Kills2
  2860. lboard[i].Spray.Image = asset ..pm[vn].Spray
  2861. else
  2862. lboard[i].Visible=false
  2863. end -- if
  2864. end -- 1,maxp
  2865. end -- visi
  2866.  
  2867. erms("17")
  2868.  
  2869. if hu.Jump and St.Crouch then
  2870. Crouch(false)
  2871. end
  2872.  
  2873. if nwb and dis(to,nwb) > 12 and St.a=="Inventory" then
  2874. St.a="None" St.MouseFree=false
  2875. inv.Visible=false
  2876. Spd[1]=1
  2877. end
  2878.  
  2879. if inv.Visible and u%5==0 then invpoi.Text = "Points: " ..p2.Points end
  2880.  
  2881. erms("18")
  2882.  
  2883.  
  2884. if to.Position.y < -100 and fallkill then
  2885. Dmg(Player.Name,150) fallkill = false
  2886. end
  2887. if u%30==0 and to.Position.y+2<st.drown and st.Condition=="Playing" and p2.ongame then
  2888. Dmg(Player.Name,4*4,nil,"Drowning",Player.Name)
  2889. end
  2890.  
  2891. if invtim.Visible then
  2892. invtim.Text = "Time Left: " ..minut2(mf(p2.inv["x" ..invs]-st.tick))
  2893. end
  2894.  
  2895. erms("19")
  2896.  
  2897. for i,v in pairs(dlays) do
  2898. local tik,ta,fu,ti,lt,xi = unpack(v)
  2899. if tik+ti<=tick() then
  2900. pcall(function() fu(unpack(ta)) end)
  2901. dlays[i]={tik+ti,ta,fu,ti,lt,xi+1}
  2902. if xi+1 >= lt then dlays[i]=nil end
  2903. end
  2904. end
  2905.  
  2906. erms("20")
  2907.  
  2908.  
  2909. for i,v in pairs(novels) do -- quick-anchor drop items
  2910. if v and v.Velocity.Magnitude < 0.2 and rn(1,8) == 1 then v.Anchored = true novels[i]=nil end
  2911. end
  2912.  
  2913.  
  2914. erms("21")
  2915.  
  2916. if u%5==0 then
  2917. to2.BrickColor=bc(p2.Team~=0 and teamcol[p2.Team] or p2.Color)
  2918. end
  2919.  
  2920. erms("22")
  2921.  
  2922. if not p2.ongame then
  2923. spectate.Visible=true
  2924. else
  2925. spectate.Visible=false
  2926. if #spectate:children() > 0 then spectate:ClearAllChildren() end
  2927. end
  2928. if u%5==0 and spectate.Visible then St.MouseFree=true end
  2929. if specting>0 and p2.ongame then
  2930. specting=0
  2931. cam.CameraSubject=hu
  2932. if u%5==0 then Player.CameraMode=1 end
  2933. end
  2934.  
  2935.  
  2936. erms("22")
  2937.  
  2938. if flagt then
  2939. flagt.TextureId=p2.Team==2 and asset .. "1043975" or asset .. "1043977"
  2940. end
  2941.  
  2942. local hurslo=1.3
  2943. if hurt1.Transparency<1 then
  2944. hurt1.Transparency=hurt1.Transparency+(0.2/hurslo)
  2945. end
  2946. if hurt2.Size.X.Scale<3 then
  2947. hurt2.Size=hurt2.Size+ud(0.5/hurslo,0,0.5/hurslo,0)
  2948. hurt2.Position=hurt2.Position-ud(0.25/hurslo,0,0.25/hurslo,0)
  2949. end
  2950.  
  2951. oldhealth=hu.Health
  2952.  
  2953. if u%5==0 and st.Condition=="Playing" then -- cover/antilag
  2954. --- COVER
  2955. local hra = 0.25
  2956. local covers = 0
  2957. GetRegion(to.Position-v3(hra,hra,hra),to.Position+v3(hra,hra,hra),function(v) end,
  2958. function(get)
  2959. if get.Name == "Cover" then
  2960. covers=covers+1
  2961. end
  2962. end,true)
  2963. if covers>0 then p2.ShowStat=false else p2.ShowStat=true end
  2964. --- GOO
  2965. local hra = 3
  2966. GetRegion(to.Position-v3(hra,hra,hra),to.Position+v3(hra,hra,hra),function(v) end,
  2967. function(get)
  2968. if get.Name:sub(1,3)=="Goo" then
  2969. St.Goo=tick()+4
  2970. if u%10==0 then Dmg(Player.Name,4,nil,"Goo",get.Name:sub(4)) end
  2971. end
  2972. end,true)
  2973. --- TORNADO
  2974. local hra = 8
  2975. GetRegion(to.Position-v3(hra,hra,hra),to.Position+v3(hra,hra,hra),function(v) end,
  2976. function(get)
  2977. if get.Name:sub(1,7)=="Tornado" then
  2978. St.Tornado=get
  2979. end
  2980. end,true)
  2981. end
  2982. if St.Tornado and St.Tornado.Transparency<0.8 and dis(to,St.Tornado)<16 then
  2983. St.Body.maxForce=v3(1,1,1)*50000
  2984. St.Body.position = St.Tornado.CFrame*cn(0,rn(-7,15),rn(4,13)).p
  2985. if u%10==0 then Dmg(Player.Name,6,nil,"Tornade",St.Tornado.Name:sub(8)) end
  2986. else
  2987. St.Tornado = nil
  2988. St.Body.maxForce=v3(0,0,0)
  2989. end
  2990.  
  2991. if St.Goo<tick() then Spd[9]=1 else Spd[9]=0.35 end
  2992.  
  2993. erms("23")
  2994.  
  2995. ------
  2996. end
  2997. end
  2998. --c/for i=1,200 do MChat("xdhunta1774: REIGN BOEZ " .. i,BrickColor.Random().Name) wait(1/(i/4)) end -- rainbows
Add Comment
Please, Sign In to add comment