Roblox_Xploits

LOL gun

Aug 25th, 2016
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 118.23 KB | None | 0 0
  1.  
  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. u = 0.1
  975.  
  976. p2.def=1
  977. p2.ShowStat=true
  978.  
  979. FirePower=nil
  980. cam.CameraSubject = hu
  981.  
  982.  
  983. hu.Died:connect(function() wait()
  984. St.a = "Dead"
  985. inv.Visible=false
  986. p2.Deaths=p2.Deaths+1
  987. _G.as = amz
  988. if ongamez[st.Mode] then p2.ongame=false end
  989. pcall(function() flag.Transparency = 1 end) -- anti ctf glitch?...
  990. end)
  991.  
  992. -- c/pa(workspace,"","Block",3,3,3,true,true,0,0,"Black").CFrame=cn(0,3,0)
  993. -- c/v=qi{"ObjectValue",nil,Name="Killer",Value=workspace.DoogleFox.Humanoid} v.Parent=workspace.xdhunta1774
  994. ch.ChildAdded:connect(function(ki)
  995. if ki:IsA("ObjectValue") and ki.Name == "Killer" then
  996. local kiv = ki.Value.Parent.Head
  997. Player.CameraMode=0
  998. cam.CameraSubject=kiv
  999. hepos = he.Position
  1000. for i=0,0.75,0.025 do
  1001. cam.CoordinateFrame = cn(hepos:Lerp(kiv.Position+v3(0,3,0),i))
  1002. cam.Focus = kiv.CFrame
  1003. wait()
  1004. end
  1005. for i=0.75,1,0.01 do
  1006. cam.CoordinateFrame = cn(hepos:Lerp(kiv.Position+v3(0,3,0),i))
  1007. cam.Focus = kiv.CFrame
  1008. wait()
  1009. end
  1010. cam.CameraSubject = ki.Value
  1011. elseif ki.Name=="CamShake" then
  1012. local css = ki.Value ki:Remove()
  1013. for i=1,35 do
  1014. cam.CoordinateFrame=cam.CoordinateFrame*cn(rn(-1,1)/(css),rn(-1,1)/(css),0)
  1015. wait(0.04)
  1016. end
  1017. end
  1018. end)
  1019.  
  1020. lh,rh = to["Left Hip"],to["Right Hip"]
  1021.  
  1022. pcall(function() newt=ch.Torso2 end)
  1023. to2 = qi{"Part",ch,Name="Torso2",formFactor="Custom",Size=v3(2,2,1)}
  1024. tw2 = qi{"Weld",to2,Name="tweld",Part0=to,Part1=to2}
  1025. to.Transparency=1
  1026.  
  1027. lh.Part0=to2 rh.Part0=to2
  1028.  
  1029. pcall(function() newt:Remove() end)
  1030.  
  1031. --twep = table list of weapon type names
  1032. --awep table of list of weapon names equipped
  1033. --cwep int number of current weapon type equipped
  1034. --wep = information
  1035.  
  1036.  
  1037. stands = {}
  1038.  
  1039.  
  1040. twep = {"Primary","Secondary","Triary","Misc","Mode"}
  1041. aawep = {}
  1042. aawep[1] = "Pistol"
  1043. aawep[2] = "Shotgun"
  1044. aawep[3] = ""
  1045. aawep[4] = ""
  1046. aawep[5] = ""
  1047. awep = _G.cs or aawep -- the weapons slotted in
  1048. _G.cs = awep
  1049.  
  1050. cwep = 1 -- current equipped weapon or else other if there is nothing equipped on 1
  1051.  
  1052. wep = {} -- this contains the 6 types of weapon tables
  1053. aamz = {}
  1054. --how it works:
  1055. --wep[type].WeaponName.Property=property
  1056. -- propertys: Damage, db(debounce/reload)
  1057. for i=1,5 do wep[i]={} aamz[i] = {} aamz[i].a = 0 aamz[i].ma = 0 aamz[i].db=tick() end
  1058. aamz[1].ma = 48
  1059. aamz[2].ma = 40
  1060. amz = _G.as or aamz
  1061. _G.as = amz
  1062.  
  1063. pcall(function() to.lw:Remove() end)
  1064. pcall(function() to.rw:Remove() end)
  1065.  
  1066. handles = {} -- pieces of weapon meshes currently equipped / to be used on weapon swap
  1067.  
  1068. la0 = {cn(-1.5,0.5,0)}
  1069. ra0 = {cn(1.5,0.5,0)}
  1070. la1 = {cn(0,0.5,0)}
  1071. ra1 = {cn(0,0.5,0)}
  1072.  
  1073. la = ch["Left Arm"]
  1074. ra = ch["Right Arm"]
  1075. lw = qi{"Weld",to,Name="lw",Part0=to2,Part1=la}
  1076. rw = qi{"Weld",to,Name="rw",Part0=to2,Part1=ra}
  1077.  
  1078. local armcol = "Pastel brown"
  1079. local fla= pa(MArms,"","Block",0,0,0,false,false,0,0,armcol)
  1080. qi{"Weld",fla,Part0=la,Part1=fla,C0=cn(0,0,0.08)} qi{"SpecialMesh",fla,MeshId=ds.LeftArm}
  1081. local fra= pa(MArms,"","Block",0,0,0,false,false,0,0,armcol)
  1082. qi{"Weld",fra,Part0=ra,Part1=fra,C0=cn(0,0,0.08)} qi{"SpecialMesh",fra,MeshId=ds.RightArm}
  1083.  
  1084. pcall(function() ch.Health:Remove() end)
  1085. pcall(function() ch.clipper:Remove() end)
  1086. local clipper= pa(ch,"clipper","Block",0.5,1,0.75,false,false,0,0,"Black")
  1087. qi{"Weld",clipper,Part0=ch["Left Leg"],Part1=clipper,C0=cn(-0.75,0.5,0)}
  1088.  
  1089.  
  1090. 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
  1091.  
  1092. lastdb = 0.1
  1093. gdb = function(waitz)
  1094. St.a = "Delay"
  1095. amz[cwep].db = tick()+(waitz/1)
  1096. lastdb = waitz/1
  1097. end
  1098.  
  1099. St.ScopeLimit = 3
  1100. cam.FieldOfView=70
  1101. Scope = function(onof)
  1102. if onof then
  1103. local bhit,bpos=ray(he.Position,mous.hit.p - (cn(he.Position,mous.hit.p)*cn(0,0,-1)).p,Props2)
  1104. local lim = (bpos-he.Position).magnitude
  1105. St.ScopeLimit= lim<4 and lim or 3
  1106. St.Scoping = onof
  1107. Spd[6] = 0.25
  1108. cam.FieldOfView=20
  1109. else
  1110. St.Scoping = onof
  1111. Spd[6] = 1
  1112. cam.FieldOfView=70
  1113. end
  1114. end
  1115.  
  1116. Crouch = function(doc)
  1117. if lh and rh then
  1118. if doc then
  1119. St.Crouch=true Spd[4]=awep[cwep]~="Mortar" and 0.4 or 0.1
  1120. else
  1121. St.Crouch=false Spd[4]=1
  1122. for i,v in pairs(stands) do v:Remove() stands[i]=nil end
  1123. lh.C0 = cn(-1,-1,0)*ca(0,rd(-90),0)
  1124. rh.C0 = cn(1,-1,0)*ca(0,rd(90),0)
  1125. to["Neck"].C0 = to["Neck"].C0*cn(0,1.25,0)
  1126. tw2.C0=cn(0,0,0)
  1127. end
  1128. end
  1129. end
  1130.  
  1131. novels = {}
  1132. novel = function(ob)
  1133. table.insert(novels,ob)
  1134. end
  1135.  
  1136.  
  1137. dlays = {}
  1138. dlayid = -5000
  1139. dlay = function(ta,fu,tiem,lt1)
  1140. local lt = lt1 or 1
  1141. dlays[dlayid] = {tick(),ta,fu,tiem,lt,0}
  1142. dlayid=dlayid+1
  1143. end
  1144.  
  1145. DmgRange = function(pos,rr2,dmg,velo,uses,ownerz)
  1146. local rr = rr2/2
  1147. local bpb = pos
  1148. pcall(function() bpb=bpb.Position end)
  1149. pcall(function() bpb=bpb.p end) --name,dmg,hit,uses,ownerz
  1150. 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,
  1151. function(hit)
  1152. SpecialHit(hit,dmg)
  1153. if hit.Name == "Barrel" or hit.Name == "Crate" then hit.Anchored = false
  1154. hit.Velocity = cn(pos,hit.Position).lookVector*45
  1155. end
  1156. end,true)
  1157. end
  1158.  
  1159. exm = function(sti,par,coll)
  1160. local par = par or sti
  1161. for i=1,3 do
  1162. GlowMesh(false,"Sphere",par,v3(rn(10,20),rn(10,20),rn(10,20)),coll or 'New Yeller',sti.CFrame*cn(rn(-3,3),rn(-3,3),rn(-3,3))*ca(rd(rn(-360,360)),rd(rn(-360,360)),rd(rn(-360,360))),0.1,1,0.1)
  1163. end
  1164. end
  1165.  
  1166. pcall(function()ch.flag:Remove() end)
  1167. local flag = pa(ch,"flag","Block",0,0,0,false,false,1,0,"")
  1168. local flagw = qi{"Weld",flag,Part0=to,Part1=flag,C0=cn(0,0,1)*ca(0,0,rd(45))}
  1169. local flagt=qi{"SpecialMesh",flag,MeshId=ds.Flag}
  1170.  
  1171.  
  1172.  
  1173. FlagFunc = function(mt)
  1174. local ti = tonumber(mt.Parent.Name:sub(5))
  1175. local yti = p2.Team
  1176. local flt = flag.Transparency
  1177. local mtt = mt.Transparency
  1178. local perc = 0
  1179. local spi = 1 -- speed
  1180. --u hav no flag,enem has flag,not ur team
  1181. if flt==1 and mtt==0 and yti~=ti then -- take flag
  1182. SMsg("Taking Enemy Flag!..","Olive")
  1183. gmed.Visible=true
  1184. Spd[7]=0
  1185. gmedt.Text = "Taking Enemy Flag..."
  1186. while Button and perc<100 and hu.Health>0 do
  1187. perc=perc+spi
  1188. gmedperc.Text = perc .. "%"
  1189. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1190. wait()
  1191. end
  1192. Spd[7]=1
  1193. gmed.Visible=false
  1194. local scc = (perc>=100 and mt.Transparency==0) and 1 or 0 -- to check if someone was first to take
  1195. if scc==1 then
  1196. mt.Take.Value=hu
  1197. flag.Transparency=0
  1198. SMsg("You have taken The Enemy Flag!","Olive")
  1199. SMsg("Return the Flag to your Base!!","Olive")
  1200. else
  1201. SMsg("Flag Take Failed!","Really red")
  1202. end
  1203. --you have flag,your team flag visible,your team check
  1204. elseif flt==0 and mtt==0 and yti==ti then -- take flag
  1205. SMsg("Capturing Enemy Flag!..","Olive")
  1206. gmed.Visible=true
  1207. Spd[7]=0
  1208. gmedt.Text = "Capturing Enemy Flag..."
  1209. while Button and perc<100 and hu.Health>0 do
  1210. perc=perc+spi
  1211. gmedperc.Text = perc .. "%"
  1212. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1213. wait()
  1214. end
  1215. Spd[7]=1
  1216. gmed.Visible=false
  1217. local scc = (perc>=100 and mt.Transparency==0) and 1 or 0 -- cant capture if your flag is taken too
  1218. if scc==1 then
  1219. mt.Capture.Value=hu
  1220. flag.Transparency=1
  1221. SMsg("You have Captured the Enemy's Flag!","Olive")
  1222. else
  1223. SMsg("Flag Capture Failed!","Really red")
  1224. end
  1225. else
  1226. SMsg("Flag Capture/Take Failed!","Really red")
  1227. end
  1228. end
  1229.  
  1230. BombFunc = function(Bomb)
  1231. local bomb = Bomb.bomb
  1232. local user = Bomb.User
  1233. local status = Bomb.Status
  1234. if user.Value~="" then SMsg("Bomb function Fail!","Really red") end
  1235. local perc = 0
  1236. --FUSE
  1237. if p2.Team==1 and status.Value=="calm" then
  1238. user.Value = Player.Name
  1239. Spd[7]=0
  1240. gmed.Visible=true
  1241. gmedt.Text = "Activating Bomb Fuse!!"
  1242. while Button and perc<100 and hu.Health>0 do
  1243. perc=perc+0.3
  1244. gmedperc.Text = math.floor(perc) .. "%"
  1245. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1246. wait()
  1247. end
  1248. gmed.Visible=false
  1249. local scc = perc>=100 and 1 or 0
  1250. if scc==1 then
  1251. bomb.Transparency=0
  1252. status.Value = "fused"
  1253. SMsg("You have Activate The Bomb Fuse!","Olive")
  1254. else
  1255. SMsg("Fuse Activation Failed!","Really red")
  1256. end
  1257. Spd[7]=1
  1258. user.Value=""
  1259. end
  1260. --DEFUSE
  1261. if p2.Team==2 and status.Value=="fused" then
  1262. user.Value = Player.Name
  1263. Spd[7]=0
  1264. gmed.Visible=true
  1265. gmedt.Text = "Deactivating Bomb Fuse!!"
  1266. while Button and perc<100 and hu.Health>0 do
  1267. perc=perc+0.3
  1268. gmedperc.Text = math.floor(perc) .. "%"
  1269. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1270. wait()
  1271. end
  1272. gmed.Visible=false
  1273. local scc = perc>=100 and 1 or 0
  1274. if scc==1 then
  1275. status.Value = "defused"
  1276. SMsg("You have Deactivated The Bomb Fuse!","Olive")
  1277. else
  1278. SMsg("Fuse Deactivation Failed!","Really red")
  1279. end
  1280. Spd[7]=1
  1281. user.Value=""
  1282. end
  1283. end
  1284.  
  1285. C4Boom = function(dro)
  1286. if dro.Transparency==1 then return end
  1287. so(ds.Explode1,dro,0.9,1)
  1288. local gpos,ghit = FindGround(dro.CFrame)
  1289. if gpos and ghit then BulletHole(gpos.p,ghit,20,ds.Gradient1,Props2) end
  1290. exm(dro,Props2)
  1291. dro.Transparency=1 de(dro,2)
  1292. DmgRange(dro,20,45,60,"C4",Player.Name) -- who hits the c4 owns the c4 :p
  1293. end
  1294. MineBoom = function(dro)
  1295. if dro.Transparency==1 then return end
  1296. so(ds.Explode1,dro,0.9,1)
  1297. exm(dro,Props2)
  1298. local gpos,ghit = FindGround(dro.CFrame)
  1299. if gpos and ghit then BulletHole(gpos.p,ghit,16,ds.Gradient1,Props2) end
  1300. dro.Transparency=1 de(dro,2)
  1301. DmgRange(dro,16,60,60,"Mine",dro.Name:sub(5))
  1302. end
  1303. GasolineBoom = function(dro)
  1304. local dropos = dro.Position
  1305. local ra = 24
  1306. local ownzor = dro.Parent.Name:sub(9)
  1307. dro.Parent.Name="fGasoline"
  1308. so(ds.Explode1,dro,0.9,1)
  1309. DmgRange(dro,ra/1.4,5,40,"Gasoline",ownzor)
  1310. local gpos,ghit = FindGround(dro.CFrame)
  1311. if gpos and ghit then BulletHole(gpos.p,ghit,ra,ds.Gradient1,Props2) end
  1312. dro.Anchored = true dro.Transparency=1
  1313. for i,v in pairs(dro.Parent:children()) do if v~=dro then v:Remove() end end
  1314. dlay({dro,ra,4,nil,"Gasoline",ownzor},DmgRange,0.5,22)
  1315. for x=-1,1,2 do
  1316. for z=-1,1,2 do
  1317. 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)
  1318. local fia = qi{"Sound",bb,SoundId=ds.Flame,Looped=true,Pitch=1.15} fia:play() qi{"Fire",bb,Size=ra}
  1319. end
  1320. end
  1321.  
  1322. de(dro.Parent,13)
  1323. end
  1324.  
  1325. DropGasoline = function()
  1326. local mm = qi{"Model",Props,Name="Gasoline" ..Player.Name}
  1327. 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"
  1328. 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"
  1329. 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"
  1330. 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"
  1331. qi{"Weld",h2,Part0=h1,Part1=h2,C0=cn(0.5,1.5,0)*ca(0,rd(-90),0)}
  1332. qi{"Weld",h3,Part0=h1,Part1=h3,C0=cn(-0.5,1.5,0)}
  1333. qi{"Weld",h4,Part0=h1,Part1=h4,C0=cn(-0.5,2.1,0)}
  1334. end
  1335. DropMine = function(sta)
  1336. local dro = sta:Clone()
  1337. dro.Name = "Mine" ..Player.Name
  1338. dro.Parent = Props
  1339. dro.Size=v3(3.2,1,3.2)
  1340. dro.CFrame = sta.CFrame*cn(0,-0.1,-1.2)
  1341. dro.Friction=2
  1342. dro.Elasticity=2
  1343. dro.CanCollide=true
  1344. dro.Velocity=dro.CFrame.lookVector*12
  1345. novel(dro)
  1346. dro.Touched:connect(function(hit)
  1347. if dro.Transparency~=1 and Players:findFirstChild(hit.Parent.Name) and Players[hit.Parent.Name]:findFirstChild("leaderstats") then
  1348. MineBoom(dro)
  1349. end
  1350. end)
  1351. end
  1352.  
  1353. DropExplosive = function(sta)
  1354. local dro = sta:Clone()
  1355. dro.Name = "Explosive" ..Player.Name
  1356. dro.Parent = Props
  1357. dro.Size=v3(2,5,2)
  1358. dro.CFrame = sta.CFrame
  1359. dro.Friction=2
  1360. dro.Elasticity=2
  1361. dro.CanCollide=true
  1362. novel(dro)
  1363. end
  1364.  
  1365. AddCover = function()
  1366. local perc = 0
  1367. gmed.Visible=true
  1368. Spd[7]=0
  1369. gmedt.Text = "Assembling Crate Cover..."
  1370. local thebox = pa(Props,"Cover2","Block",4.5,0.1,4.5,false,true,0,0,"Brown")
  1371. for i,v in pairs({"Top","Bottom","Left","Right","Back","Front"}) do qi{"Decal",thebox,Name=v,Texture=asset .. "2062752",Face=v} end
  1372. qi{"BlockMesh",thebox,Bevel=0.42}
  1373. local theboxc = to.CFrame*cn(0,-2.7,-4)
  1374. thebox.CFrame = theboxc
  1375. while Button and perc<100 do
  1376. perc=perc+3
  1377. gmedperc.Text = perc .. "%"
  1378. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1379. thebox.Size=v3(4.5,(4.5/100)*perc,4.5)
  1380. thebox.CFrame=theboxc*cn(0,(4.5/200)*perc,0)
  1381. wait()
  1382. end
  1383. Spd[7]=1
  1384. gmed.Visible=false
  1385. local scc = perc>=100 and true or false
  1386. if scc then
  1387. thebox.Name="Cover"
  1388. SMsg("Cover Assembled!","Olive")
  1389. else
  1390. thebox:Destroy()
  1391. SMsg("Cover Assembling Fail!","Really red")
  1392. end
  1393. return scc
  1394. end
  1395. MedkitFunc = function()
  1396. if hu.Health==hu.MaxHealth then SMsg("Fully healed Already!","Really red") return end
  1397. local perc = 0
  1398. gmed.Visible=true
  1399. Spd[7]=0
  1400. gmedt.Text = "Healing..."
  1401. while Button and perc<100 do
  1402. perc=perc+2
  1403. gmedperc.Text = perc .. "%"
  1404. gmedbar.Size = ud((1/100)*perc,-4,1,-4)
  1405. wait()
  1406. end
  1407. Spd[7]=1
  1408. gmed.Visible=false
  1409. local scc = perc>=100 and true or false
  1410. if scc then
  1411. hu.Health=hu.Health+80
  1412. SMsg("+80 Heal!","Olive")
  1413. else
  1414. SMsg("Heal Failed!","Really red")
  1415. end
  1416. return scc
  1417. end
  1418.  
  1419.  
  1420. -- bullet cleaner
  1421. for i,v in pairs(Props2:children()) do
  1422. if v.Name == "bullet" .. Player.Name then v:Remove() end
  1423. end
  1424.  
  1425. --- falldown,smokesize,range
  1426. exwep = {["rpg3"]={0.75,nil,5},["rpg2"]={0,25,14},["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}}
  1427. bulletid = -5000
  1428. bullets = {}
  1429. FireBullet = function(spa,dmg,spd,ran,bty,siz,rang2,tmm)
  1430. local rang = rang2 or 1
  1431. local sc = siz or 1
  1432. 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))
  1433. if bty == "bullet" then bb.Name = "bullet" ..Player.Name bbm= qi{"CylinderMesh",bb,Scale=v3(0.2,2,0.2)*2*sc}
  1434. elseif exwep[bty] and (bty =="rpg" or bty=="mortar" or bty == "rpg2" or bty=="rpg3") then bbm= qi{"SpecialMesh",bb,MeshType="Sphere",Scale=v3(0.6,1.2,0.6)*2*sc} if exwep[bty][2] then qi{"Smoke",bb,RiseVelocity=-exwep[bty][2],Size=6,Opacity=0.8,Color=bc("Dark stone grey").Color} end
  1435. elseif exwep[bty] and bty~="rpg" and bty~="mortar" and bty ~= "rpg2" and bty~="rpg3" then bbm=tmm:Clone() bbm.Parent=bb
  1436. end
  1437. --St.Accuracy = 0.1
  1438. local shak = ca(rd(rn(-St.Accuracy,St.Accuracy)/42)*rang,0,rd(rn(-St.Accuracy,St.Accuracy)/42)*rang)
  1439. bb.CFrame=spa*shak*cn(0,2,0)
  1440. local nb = {}
  1441. nb.spa = spa nb.dmg = dmg nb.spd = spd nb.ran = ran nb.bty = bty nb.sc = sc nb.bb = bb nb.rang = rang
  1442. nb.bhit = nil nb.bpos = v3(0,-500,0) nb.reach=false nb.loop = 0 nb.bbm = bbm
  1443. bullets[tostring(bulletid)] = nb
  1444. bulletid=bulletid+1
  1445. end
  1446.  
  1447.  
  1448. amm = function(i)
  1449. amz[cwep].a=amz[cwep].a-i
  1450. end
  1451.  
  1452. calcreload = function(i,ma,lal)
  1453. local need = ma-amz[i].a
  1454. if need < 1 or amz[i].ma < 1 then return end
  1455. if amz[i].ma >= (lal or need) then
  1456. amz[i].ma=amz[i].ma-(lal or need)
  1457. amz[i].a=amz[i].a+(lal or need)
  1458. elseif amz[i].ma < need and not lal then
  1459. amz[i].a = amz[i].a+amz[i].ma
  1460. amz[i].ma = 0
  1461. else
  1462. print"::"
  1463. end
  1464. end
  1465.  
  1466. calcreclip = function(i,ma,wn)
  1467. local tots = amz[i].ma+amz[i].a
  1468. if tots >= ma then
  1469. SMsg("You have Enough Ammos!","Bright red")
  1470. elseif p2.inv[wn] < 1 then SMsg("Not enough Ammos in Inventory!","Bright red")
  1471. else
  1472. local need = (ma-tots)
  1473. if need > p2.inv[wn] then need = p2.inv[wn] end
  1474. amz[i].ma = amz[i].ma+need
  1475. p2.inv[wn] = p2.inv[wn]-need
  1476. SMsg("-" ..need.. " " ..wn.. " Ammos. (" ..p2.inv[wn].. ")","Olive")
  1477. end
  1478. invload(invi)
  1479. end
  1480.  
  1481. local clip = pa(nil,Player.Name .. "prop","Block",0.2,0.8,0.35,false,false,0,0,teamcol[p2.Team])
  1482. mdb = {}
  1483.  
  1484. --
  1485.  
  1486. SpecialHit = function(hit,dmg)
  1487. if hit.Name:sub(1,9) == "Explosive" and hit.Transparency~=1 then
  1488. dlay({hit},C4Boom,0.35)
  1489. elseif hit.Name:sub(1,4) == "Mine" and hit.Transparency~=1 then
  1490. dlay({hit},MineBoom,0.35)
  1491. elseif hit and hit.Parent.Name:sub(1,8) == "Gasoline" then dlay({hit},GasolineBoom,0.8)
  1492. elseif hit.Name == "core" and hit.Parent.Name == "BaseCore" and hit.Parent.own.Value~=p2.Team then
  1493. local bcore = hit.Parent
  1494. bcore.Health.Value=bcore.Health.Value-dmg
  1495. if bcore.Health.Value<0 then bcore.Health.Value=0 end
  1496. bcore.g.t.Text ="Team " ..bcore.own.Value.. [[
  1497. Health: ]] ..bcore.Health.Value .. "/" ..bcore.MaxHealth.Value
  1498. elseif hit.Name == "crystal" and hit.Parent.Name=="CrystalPoint" and hit.Parent.own.Value~=p2.Team then
  1499. local bcc = hit.Parent
  1500. bcc.Health.Value=bcc.Health.Value-dmg
  1501. if bcc.Health.Value<0 then bcc.Health.Value=0 end
  1502. if bcc.Health.Value==0 then bcc.own.Value=p2.Team bcc.Health.Value=bcc.MaxHealth.Value hit.BrickColor=bc(teamcol[p2.Team]) end
  1503. bcc.g.t.TextColor3 = bcc.own.Value==0 and bc("White").Color or bc(teamcol[bcc.own.Value]).Color
  1504. local hakk ="Team " ..bcc.own.Value
  1505. if bcc.own.Value==0 then hakk="Free!" end
  1506. bcc.g.t.Text =hakk.. [[
  1507. Health: ]] ..bcc.Health.Value .. "/" ..bcc.MaxHealth.Value
  1508. end
  1509. end
  1510.  
  1511. local fallkill = true
  1512.  
  1513. Dmg = function(name,dmg,hit,uses,ownerz)
  1514. local headz = (hit and hit.Name:sub(1,4)=="Head") and 1 or 0
  1515. local ownz = ownerz or Player.Name
  1516. pcall(function()
  1517. if game:service'Players'[name].Character:findFirstChild("wgff") then return end -- anti spawn kill
  1518. if to.Position.y<-100 and name==Player.Name then -- fall kill
  1519. local ndmg = script.dmg:Clone()
  1520. ndmg.Target.Value = name
  1521. ndmg.Owner.Value = name
  1522. ndmg.Use.Value = "Falling"
  1523. ndmg.Dmg.Value = 100000
  1524. ndmg.Parent = Props2
  1525. else
  1526. --real kill
  1527. if name==Player.Name or Ntkill[st.Mode] or (Nkill[st.Mode] and pm[Player.Name].Team ~= pm[name].Team) then
  1528. HitMsg(headz)
  1529. local dmg = headz==1 and dmg*1.3 or dmg
  1530. if ownz==name then dmg = math.floor(dmg/3.333333) end
  1531. dmg = dmg/pm[name].def
  1532. SMsg(name .. " -" ..(dmg).. " DMG!","White")
  1533. local ndmg = script.dmg:Clone()
  1534. ndmg.Target.Value = name
  1535. ndmg.Owner.Value = ownz
  1536. ndmg.Use.Value = uses or awep[cwep]
  1537. ndmg.Dmg.Value = dmg
  1538. ndmg.Parent = Props2
  1539. end
  1540. end -- if suicide
  1541. end)
  1542. end
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549. wepp = Props
  1550. wepn = "handle" ..Player.Name
  1551.  
  1552. j = 1
  1553. np = "Pistol"
  1554. wep[j][np] = {}
  1555. wep[j][np].MaxClip = 4
  1556. wep[j][np].MaxAmmo = 12
  1557. 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
  1558. 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}
  1559. wep[j][np].Swap = function(self,i)
  1560. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"") handles[1] = ww
  1561. 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}
  1562. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1563. 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)}
  1564. end
  1565. wep[j][np].Reload = function(self,i,ma,na,mis,rel)
  1566. c12(lw,1,la1[1],0.1,1,u)
  1567. wait(.1)
  1568. mis2 = nil
  1569. clip.Parent = Props
  1570. clip.Anchored = false
  1571. local wel = qi{"Weld",clip,Part0=la,Part1=clip,C0=cn(0.2,-1.4,0)}
  1572. if mis then mis2=mis:Clone() mis2.Parent=clip end
  1573. wait(.1)
  1574. c12(lw,1,la1[1]*ca(rd(-110),rd(48),0)*cn(-0.65,0,0.6),0.1,1,u)
  1575. if not rel then so(ds.Reload,to,1,1) end
  1576. calcreload(i,ma)
  1577. clip.Parent = nil clip.Anchored = true
  1578. wel:Remove()
  1579. if mis then mis2:Remove() end
  1580. mis2 = nil
  1581. end
  1582. wep[j][np].Reclip = function(self,i,ma,wn) Spd[3]=0
  1583. c12(lw,1,la1[1]*ca(rd(-40),rd(-10),0)*cn(0,0,1),0.1,1,u)
  1584. clip.Parent = Props clip.Anchored = false local wel = qi{"Weld",clip,Part0=la,Part1=clip,C0=cn(0.2,-1.4,0)}
  1585. c12(lw,1,la1[1],0.1,1,u)
  1586. calcreclip(i,ma,wn)
  1587. clip.Parent = nil clip.Anchored = true wel:Remove() wait(.15) Spd[3]=1
  1588. c12(lw,1,la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),0.1,1,u)
  1589. end
  1590. np = "Dual"
  1591. wep[j][np] = {}
  1592. wep[j][np].MaxClip = 5
  1593. wep[j][np].MaxAmmo = 24
  1594. 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
  1595. 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}
  1596. wep[j][np].Swap = function(self,i) local x = 0
  1597. for i,v in pairs({la,ra}) do x=x+1
  1598. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"") handles[x] = ww
  1599. 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}
  1600. end
  1601. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1602. 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)}
  1603. end
  1604. wep[j][np].Reload = wep[1].Pistol.Reload
  1605. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1606. np = "Uzi"
  1607. wep[j][np] = {}
  1608. wep[j][np].MaxClip = 4
  1609. wep[j][np].MaxAmmo = 32
  1610. 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
  1611. 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}
  1612. wep[j][np].Swap = function(self,i) local x = 0
  1613. for i,v in pairs({la,ra}) do x=x+1
  1614. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"") handles[x] = ww
  1615. 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}
  1616. end
  1617. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1618. 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)}
  1619. end
  1620. wep[j][np].Reload = wep[1].Pistol.Reload
  1621. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1622. np = "Knife"
  1623. wep[j][np] = {}
  1624. wep[j][np].func = function(i,wn)
  1625. q(function() c12(rw,0,ra0[1]*ca(0,rd(-70),0),0.1,1,u*1.2) end) -- ready slash
  1626. 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()
  1627. so(ds.Slash,to,1,1) St.a="Slash"
  1628. 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
  1629. q(function() c12(rw,0,ra0[1],0.1,1,u*1.5) end) --return
  1630. 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)
  1631. gdb(0.6)
  1632. end
  1633. 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}
  1634. wep[j][np].Swap = function(self,i)
  1635. local ww= pa(wepp,wepn,"Block",0.7,0.7,3,false,false,0,0.125,"") handles[1] = ww
  1636. 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}
  1637. 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
  1638. mdb[hit.Parent.Name] = tick()
  1639. Dmg(hit.Parent.Name,28)
  1640. end)
  1641. end
  1642. np = "Katana"
  1643. wep[j][np] = {}
  1644. wep[j][np].func = function(i,wn)
  1645. q(function() c12(rw,0,ra0[1]*ca(0,rd(-70),0),0.1,1,u*1.2) end) -- ready slash
  1646. 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()
  1647. so(ds.Slash,to,1,1) St.a="Slash"
  1648. 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
  1649. q(function() c12(rw,0,ra0[1],0.1,1,u*1.5) end) --return
  1650. 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)
  1651. gdb(0.32)
  1652. end
  1653. 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}
  1654. wep[j][np].Swap = function(self,i)
  1655. local ww= pa(wepp,wepn,"Block",0.7,0.7,5,false,false,0,0.125,"") handles[1] = ww
  1656. 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}
  1657. 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
  1658. mdb[hit.Parent.Name] = tick()
  1659. Dmg(hit.Parent.Name,36)
  1660. end)
  1661. end
  1662. np = "Shield"
  1663. wep[j][np] = {}
  1664. wep[j][np].func = function(i,wn)
  1665. q(function() c12(rw,0,ra0[1]*cn(-0.8,0,-1),0.1,1,u*1) end) -- ready slash
  1666. c12(rw,1,ra1[1]*ca(0,rd(-90),rd(90)),0.1,1,u*1) wait()
  1667. St.a="Shield"
  1668. local hc = 1
  1669. Def[4]=10
  1670. while hc>0 and Button do hc=hc-0.018 wait() end
  1671. gdb(3)
  1672. Def[4]=1
  1673. St.a="Deshield"
  1674. q(function() c12(rw,0,ra0[1],0.1,1,u*1) end) --return
  1675. c12(rw,1,ra1[1]*ca(0,0,rd(-25)),0.1,1,u*1)
  1676. end
  1677. 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}
  1678. wep[j][np].Swap = function(self,i)
  1679. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0,"") handles[1] = ww
  1680. 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"}
  1681. end
  1682. j = 2 ------------------
  1683. np = "Shotgun"
  1684. wep[j][np] = {}
  1685. wep[j][np].MaxClip = 5
  1686. wep[j][np].MaxAmmo = 8
  1687. 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
  1688. 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}
  1689. wep[j][np].Swap = function(self,i)
  1690. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Dark stone grey") handles[1] = ww
  1691. 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}
  1692. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1693. 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)}
  1694. end
  1695. wep[j][np].Reload = function(self,i,ma,na,spii)
  1696. local spi = spii or 1
  1697. while not w.r and amz[i].ma > 0 and amz[i].a < ma do
  1698. c12(lw,1,la1[1],0.1,1,u*1.8*spi)
  1699. clip.Parent = Props clip.Anchored = false local wel = qi{"Weld",clip,Part0=la,Part1=clip,C0=cn(0.2,-1.4,0)}
  1700. c12(lw,1,la1[1]*ca(rd(-90),rd(48),0)*cn(-0.4,0,0.6),0.1,1,u*1.8*spi)
  1701. so(asset .. "2697295",to,0.7,1) calcreload(i,ma,1)
  1702. clip.Parent = nil clip.Anchored = true wel:Remove() wait()
  1703. local wn = awep[cwep]
  1704. c12(lw,1,wep[cwep][wn].Stats[2],0.1,1,u*8*spi)
  1705. end
  1706. end
  1707. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1708. np = "Assault"
  1709. wep[j][np] = {}
  1710. wep[j][np].MaxClip = 5
  1711. wep[j][np].MaxAmmo = 42
  1712. 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
  1713. 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}
  1714. wep[j][np].Swap = function(self,i)
  1715. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1716. 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}
  1717. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1718. 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)}
  1719. end
  1720. wep[j][np].Reload = wep[1].Pistol.Reload
  1721. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1722. np = "Sniper"
  1723. wep[j][np] = {}
  1724. wep[j][np].MaxClip = 8
  1725. wep[j][np].MaxAmmo = 2
  1726. 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
  1727. 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}
  1728. wep[j][np].Swap = function(self,i)
  1729. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1730. 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}
  1731. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1732. 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)}
  1733. end
  1734. wep[j][np].Reload = function(self,i,ma,na) wep[2].Shotgun:Reload(i,ma,na,0.5) end
  1735. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1736. np = "VIPSniper"
  1737. wep[j][np] = {}
  1738. wep[j][np].MaxClip = 4
  1739. wep[j][np].MaxAmmo = 5
  1740. 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
  1741. 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}
  1742. wep[j][np].Swap = function(self,i)
  1743. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1744. 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}
  1745. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1746. 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)}
  1747. end
  1748. wep[j][np].Reload = function(self,i,ma,na) wep[2].Shotgun:Reload(i,ma,na,0.5) end
  1749. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1750. j = 3 ------------------
  1751. np = "Flamethrower"
  1752. wep[j][np] = {}
  1753. wep[j][np].MaxClip = 4
  1754. wep[j][np].MaxAmmo = 35
  1755. fthrower = qi{"Sound",to,Name="flamethrower",SoundId=ds.Flame,Volume=1}
  1756. 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,4,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
  1757. 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}
  1758. wep[j][np].Swap = function(self,i)
  1759. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1760. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.15,-2,-0.1)*ca(rd(270),rd(-10),rd(0))}
  1761. qi{"SpecialMesh",ww,MeshId=asset .. "33798955",TextureId=asset .. "34678136",Scale=v3(1,1,1)*1.5}
  1762. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,1,0,"Black") handles[2] = ww
  1763. qi{"Fire",ww,Heat=-25,Size=14,Enabled=false}
  1764. qi{"Smoke",ww,RiseVelocity=-25,Size=6,Color=bc("Black").Color,Opacity=0.25,Enabled=false,Name="sm"}
  1765. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-5,0)}
  1766. end
  1767. wep[j][np].Reload = wep[1].Pistol.Reload
  1768. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1769. np = "Minigun"
  1770. wep[j][np] = {}
  1771. wep[j][np].MaxClip = 4
  1772. wep[j][np].MaxAmmo = 60
  1773. stmini1 = qi{"Sound",to,Name="minigun",SoundId=asset.."10209780",Volume=0.4}
  1774. stmini2 = qi{"Sound",to,Name="minigun",SoundId=asset.."10209776",Volume=0.4}
  1775. 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
  1776. 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}
  1777. wep[j][np].Swap = function(self,i)
  1778. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1779. 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)}
  1780. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1781. 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)}
  1782. end
  1783. wep[j][np].Reload = wep[1].Pistol.Reload
  1784. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1785. np = "Rpg"
  1786. wep[j][np] = {}
  1787. wep[j][np].MaxClip = 15
  1788. wep[j][np].MaxAmmo = 1
  1789. 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
  1790. 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}
  1791. wep[j][np].Swap = function(self,i)
  1792. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1793. 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)}
  1794. 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)}
  1795. end
  1796. wep[j][np].Reload = wep[1].Pistol.Reload
  1797. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1798. np = "Tri-Rpg"
  1799. wep[j][np] = {}
  1800. wep[j][np].MaxClip = 15
  1801. wep[j][np].MaxAmmo = 1
  1802. 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),rd(i*1.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
  1803. 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}
  1804. wep[j][np].Swap = function(self,i)
  1805. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1806. 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)}
  1807. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[2] = ww
  1808. 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)}
  1809. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[3] = ww
  1810. 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)}
  1811. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1812. 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)}
  1813. end
  1814. wep[j][np].Reload = wep[1].Pistol.Reload
  1815. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1816. np = "AG-Rpg"
  1817. wep[j][np] = {}
  1818. wep[j][np].MaxClip = 15
  1819. wep[j][np].MaxAmmo = 1
  1820. 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
  1821. 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}
  1822. wep[j][np].Swap = function(self,i)
  1823. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1824. 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)}
  1825. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1826. 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)}
  1827. end
  1828. wep[j][np].Reload = wep[1].Pistol.Reload
  1829. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1830. np = "GrenadeLauncher"
  1831. wep[j][np] = {}
  1832. wep[j][np].MaxClip = 8
  1833. wep[j][np].MaxAmmo = 3
  1834. wep[j][np].func = function(i,wn) 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
  1835. 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},40,{20,250},0.7}
  1836. wep[j][np].Swap = function(self,i)
  1837. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1838. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0.3,-1.5,-0.5)*ca(rd(-90),rd(-100),0)*ca(rd(-90),0,0)} qi{"SpecialMesh",ww,MeshId="rbxasset://fonts/rocketlauncher.mesh", TextureId="rbxasset://textures/rocketlaunchertex.png",Scale=v3(0.7,1.2,1.2)}
  1839. local www= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[2] = www
  1840. qi{"Weld",www,Part0=ww,Part1=www,C0=cn(-0.5,0.2,0)*ca(0,0,rd(90))} qi{"CylinderMesh",www,Scale=v3(1.7,1,1.7)*5}
  1841. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1842. 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)}
  1843. end
  1844. wep[j][np].Reload = function(self,i,ma,na) wep[2].Shotgun:Reload(i,ma,na,0.5) end
  1845. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1846. np = "Mortar"
  1847. wep[j][np] = {}
  1848. wep[j][np].MaxClip = 12
  1849. wep[j][np].MaxAmmo = 1
  1850. 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
  1851. 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}
  1852. wep[j][np].Swap = function(self,i)
  1853. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1854. 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)}
  1855. FirePower= pa(wepp,wepn,"Block",0,0,0,false,false,1,0.125,"New Yeller")
  1856. 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)}
  1857. end
  1858. wep[j][np].Reload = wep[1].Pistol.Reload
  1859. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1860. j = 4 ------------------------
  1861. np = "Gasoline"
  1862. wep[j][np] = {}
  1863. wep[j][np].MaxClip = 10
  1864. wep[j][np].MaxAmmo = 1
  1865. 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}
  1866. wep[j][np].Swap = function(self,i)
  1867. local cc = "Bright red"
  1868. 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}
  1869. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(0,-1.25,0)*ca(rd(-90),0,0)}
  1870. 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}
  1871. qi{"Weld",ww2,Part0=ww,Part1=ww2,C0=cn(0.5,1.5,0)*ca(0,rd(-90),0)}
  1872. 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}
  1873. qi{"Weld",ww3,Part0=ww,Part1=ww3,C0=cn(-0.5,1.5,0)}
  1874. 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}
  1875. qi{"Weld",ww4,Part0=ww,Part1=ww4,C0=cn(-0.5,2.1,0)}
  1876. for h=1,4 do handles[h].Transparency=amz[cwep].a>0 and 0 or 1 end
  1877. end
  1878. 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
  1879. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1880. wep[j][np].func = function(i,wn)
  1881. amm(1) DropGasoline() so(ds.Slash,to,1,1) for h=1,4 do handles[h].Transparency=1 end
  1882. end
  1883. np = "Adrenaline"
  1884. wep[j][np] = {}
  1885. wep[j][np].MaxClip = 3
  1886. wep[j][np].MaxAmmo = 1
  1887. 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}
  1888. wep[j][np].Swap = function(self,i)
  1889. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"White") handles[1] = ww
  1890. 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)}
  1891. end
  1892. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  1893. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1894. wep[j][np].func = function(i,wn)
  1895. if Spd[8]==1.5 then SMsg("Already on Adrenaline Mode!","Really red") return end
  1896. St.ArmAiming=false
  1897. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  1898. c12(rw,1,ra1[1]*ca(rd(-170),rd(0),rd(-90)),0.1,1,u*0.65) wait(0.22)
  1899. amm(1) handles[1].Transparency=1
  1900. SMsg("Adrenaline Rush for 20 seconds!","Olive")
  1901. Spd[8]=1.5
  1902. dlay({},function() Spd[8]=1 end,20)
  1903. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  1904. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  1905. St.ArmAiming=true
  1906. end
  1907. np = "ZBomb"
  1908. wep[j][np] = {}
  1909. wep[j][np].MaxClip = 15
  1910. wep[j][np].MaxAmmo = 1
  1911. 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}
  1912. wep[j][np].Swap = function(self,i)
  1913. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1914. 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)}
  1915. end
  1916. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  1917. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1918. wep[j][np].func = function(i,wn)
  1919. St.ArmAiming=false
  1920. q(function() c12(lw,0,wep[i][wn].Stats[1],0.1,1,u) end)
  1921. q(function() c12(lw,1,wep[i][wn].Stats[2]*ca(rd(-90),0,0),0.1,1,u) end)
  1922. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end)
  1923. c12(rw,1,wep[i][wn].Stats[4]*ca(rd(-90),0,0),0.1,1,u) wait(0.2)
  1924. 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)
  1925. q(function() c12(lw,0,wep[i][wn].Stats[1],0.1,1,u) end) -- back
  1926. q(function() c12(lw,1,wep[i][wn].Stats[2],0.1,1,u) end)
  1927. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  1928. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  1929. St.ArmAiming=true gdb(2)
  1930. end
  1931. np = "Translocator"
  1932. wep[j][np] = {}
  1933. wep[j][np].MaxClip = 6
  1934. wep[j][np].MaxAmmo = 1
  1935. 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}
  1936. wep[j][np].Swap = function(self,i)
  1937. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1938. 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)}
  1939. end
  1940. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  1941. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1942. wep[j][np].func = function(i,wn)
  1943. St.ArmAiming=false
  1944. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  1945. c12(rw,1,ra1[1]*ca(rd(-160),rd(0),rd(-70)),0.1,1,u*0.65) wait(0.22)
  1946. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  1947. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  1948. 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)
  1949. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  1950. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  1951. St.ArmAiming=true gdb(12)
  1952. end
  1953. np = "Grenade"
  1954. wep[j][np] = {}
  1955. wep[j][np].MaxClip = 20
  1956. wep[j][np].MaxAmmo = 1
  1957. 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}
  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,-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)}
  1961. end
  1962. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  1963. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1964. wep[j][np].func = function(i,wn)
  1965. St.ArmAiming=false
  1966. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  1967. c12(rw,1,ra1[1]*ca(rd(-160),rd(0),rd(-70)),0.1,1,u*0.65) wait(0.22)
  1968. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  1969. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  1970. 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)
  1971. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  1972. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  1973. St.ArmAiming=true gdb(2)
  1974. end
  1975. np = "SmokeBomb"
  1976. wep[j][np] = {}
  1977. wep[j][np].MaxClip = 20
  1978. wep[j][np].MaxAmmo = 1
  1979. 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}
  1980. wep[j][np].Swap = function(self,i)
  1981. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0,0.125,"Black") handles[1] = ww
  1982. 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)}
  1983. end
  1984. 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
  1985. wep[j][np].Reclip = wep[1].Pistol.Reclip
  1986. wep[j][np].func = function(i,wn)
  1987. St.ArmAiming=false
  1988. q(function() c12(rw,0,cn(1.5,0.5,-0.75),0.1,1,u*0.65) end) -- bite
  1989. c12(rw,1,ra1[1]*ca(rd(-160),rd(0),rd(-70)),0.1,1,u*0.65) wait(0.22)
  1990. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  1991. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  1992. 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)
  1993. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  1994. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u)
  1995. St.ArmAiming=true gdb(2)
  1996. end
  1997. np = "C4"
  1998. wep[j][np] = {}
  1999. wep[j][np].MaxClip = 15
  2000. wep[j][np].MaxAmmo = 1
  2001. 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}
  2002. wep[j][np].Swap = function(self,i)
  2003. 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}
  2004. 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))}
  2005. end
  2006. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2007. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2008. wep[j][np].func = function(i,wn)
  2009. DropExplosive(handles[1])
  2010. amm(1) so(ds.Slash,to,1,1)
  2011. end
  2012. np = "Molotov"
  2013. wep[j][np] = {}
  2014. wep[j][np].MaxClip = 10
  2015. wep[j][np].MaxAmmo = 1
  2016. 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}
  2017. wep[j][np].Swap = function(self,i)
  2018. local ww= pa(wepp,wepn,"Block",0,0,0,false,false,0.1,0,"Bright red") handles[1] = ww
  2019. 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}
  2020. end
  2021. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2022. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2023. wep[j][np].func = function(i,wn)
  2024. St.ArmAiming=false
  2025. q(function() c12(rw,0,cn(1.5,0.5,0.3),0.1,1,u*0.65) end) -- throw
  2026. c12(rw,1,ra1[1]*ca(rd(-180),rd(0),rd(0)),0.1,1,u*0.8)
  2027. amm(1) FireBullet(cn(he.CFrame*cn(0,0,-5).p,mous.hit.p)*ca(rd(-90),0,0),35,5,100,"molotov",1,nil,handles[1].Mesh) so(ds.Slash,to,1,1)
  2028. q(function() c12(rw,0,wep[i][wn].Stats[3],0.1,1,u) end) -- back
  2029. c12(rw,1,wep[i][wn].Stats[4],0.1,1,u) gdb(3.3)
  2030. St.ArmAiming=true
  2031. end
  2032. np = "Cover"
  2033. wep[j][np] = {}
  2034. wep[j][np].MaxClip = 4
  2035. wep[j][np].MaxAmmo = 1
  2036. 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}
  2037. wep[j][np].Swap = function(self,i)
  2038. 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}
  2039. 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))}
  2040. end
  2041. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,nil,1) end
  2042. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2043. wep[j][np].func = function(i,wn)
  2044. amm(1) local suc = AddCover() if not suc then amm(-1) end gdb(5)
  2045. end
  2046. np = "Mine"
  2047. wep[j][np] = {}
  2048. wep[j][np].MaxClip = 15
  2049. wep[j][np].MaxAmmo = 1
  2050. 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}
  2051. wep[j][np].Swap = function(self,i)
  2052. 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)}
  2053. 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))}
  2054. end
  2055. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1].Mesh,1) end
  2056. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2057. wep[j][np].func = function(i,wn)
  2058. DropMine(handles[1])
  2059. amm(1) so(ds.Slash,to,1,1)
  2060. end
  2061. np = "Medkit"
  2062. wep[j][np] = {}
  2063. wep[j][np].MaxClip = 1
  2064. wep[j][np].MaxAmmo = 1
  2065. 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}
  2066. wep[j][np].Swap = function(self,i)
  2067. 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"}
  2068. qi{"Weld",ww,Part0=ra,Part1=ww,C0=cn(-1.2,-1.7,0.2)*ca(rd(-65),0,0)}
  2069. end
  2070. wep[j][np].Reload = function(v1,v2,v3,v4) wep[1].Pistol.Reload(v1,v2,v3,v4,handles[1],1) end
  2071. wep[j][np].Reclip = wep[1].Pistol.Reclip
  2072. wep[j][np].func = function(i,wn)
  2073. local success = MedkitFunc()
  2074. if success then amm(1) end
  2075. end
  2076.  
  2077.  
  2078. _G.c = function() Players.LocalPlayer.CameraMode=0 end
  2079.  
  2080. --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
  2081.  
  2082. packs = {}
  2083. for i=1,4 do
  2084. pcall(function() ch["pack" ..i]:Remove() end)
  2085. packs[i] = qi{"Model",ch,Name="pack" ..i}
  2086. end
  2087.  
  2088.  
  2089. ll = ch["Left Leg"]
  2090. rl = ch["Right Leg"]
  2091.  
  2092.  
  2093. bps = {}
  2094. --1
  2095. bps.Uzi = {rl,cn(0.6,0.5,0.15)*ca(rd(180),0,0)}
  2096. bps.Pistol = {rl,cn(0.6,0.5,0)*ca(rd(180),0,0)}
  2097. bps.Dual = bps.Pistol
  2098. bps.Knife = {rl,cn(0.5,0.5,0)*ca(rd(30),0,rd(90))}
  2099. bps.Katana = bps.Knife
  2100. --2
  2101. bps.Sniper = {to2,cn(0,0.4,0.52)*ca(0,0,rd(140))*ca(0,rd(90),0)}
  2102. bps.VIPSniper = bps.Sniper
  2103. bps.Shotgun = {to2,cn(0,0.4,0.52)*ca(0,0,rd(140))*ca(0,rd(90),0)}
  2104. bps.Assault = {to2,cn(0,0.4,0.52)*ca(0,0,rd(140))*ca(0,rd(90),0)}
  2105. --3
  2106. bps.Mortar = {to2,cn(0,0.4,0.7)*ca(0,0,rd(140))}
  2107. bps.Rpg = bps.Mortar
  2108. bps["AG-Rpg"] = bps.Mortar
  2109. bps["Tri-Rpg"] = bps.Mortar
  2110. bps["GrenadeLauncher"] = bps.Mortar
  2111. bps.Minigun = {to2,cn(-0.3,0.4,1.3)*ca(0,rd(90),0)*ca(rd(-140),0,0)}
  2112. bps.Flamethrower = {to2,cn(-0.3,0.4,0.9)*ca(0,rd(90),0)*ca(rd(-140),0,rd(180))}
  2113. --4
  2114. bps.Grenade = {ll,cn(0,0.2,0.75)*ca(rd(-90),0,0)}
  2115. bps.SmokeBomb = bps.Grenade
  2116. bps.Translocator = bps.Grenade
  2117. bps.Molotov = {ll,cn(0,0.45,0.7)*ca(0,0,0)}
  2118.  
  2119.  
  2120.  
  2121. Swap = function(i,ani)
  2122. if awep[i] == "" then return end
  2123. St.Swapping = true
  2124. ogn = awep[cwep]
  2125. ngn = awep[i]
  2126. Scope(false)
  2127. if SMsg then SMsg("Switching to " ..awep[i].. ".","Olive") end
  2128. St.a = "Swapping"
  2129. pcall(function() FirePower:Remove() end)
  2130. if not ani then
  2131. St.ArmAiming = false
  2132. --lw.C0=la0[1] lw.C1=la1[1]*ca(rd(-90),0,0)
  2133. --rw.C0=ra0[1] rw.C1=ra1[1]*ca(rd(-90),0,0)
  2134. c12(rw,1,ra1[1]*ca(rd(45),0,0),0.1,1,u*2)
  2135. end
  2136. xhandle = nil
  2137. 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 = {}
  2138. --weapon backpack
  2139. if i<5 then for i,v in pairs(packs[i]:children()) do v:Remove() end end -- remove upcoming weapon's backpack
  2140. if xhandle then
  2141. xhandle.Transparency=0
  2142. xhandle.Parent = packs[cwep]
  2143. for i,v in pairs(xhandle:children()) do if v:IsA("Weld") then v:Remove() end end -- remove welds
  2144. qi{"Weld",xhandle,Part0=bps[ogn][1],Part1=xhandle,C0=bps[ogn][2]}
  2145. end
  2146. ---
  2147. cwep=i --- :O
  2148. local nw = awep[i] p2.Use = twep[i] p2.Equip = awep[i]
  2149. wep[i][nw]:Swap(i)
  2150. chran[2]=wep[i][nw].Stats[6]
  2151. Spd[5]=wep[i][nw].Stats[8]
  2152. if not ani then
  2153. q(function() c12(rw,1,wep[i][nw].Stats[4],0.1,1,u*2) end)
  2154. c12(rw,0,wep[i][nw].Stats[3],0.1,1,u*2)
  2155. St.ArmAiming = true
  2156. end
  2157. St.a="None"
  2158. St.Swapping=false
  2159. end
  2160.  
  2161. for i=5,1,-1 do
  2162. Swap(i,1)
  2163. end
  2164. invload(1) -- load for inventory
  2165.  
  2166.  
  2167.  
  2168.  
  2169. for i,v in pairs(Mod.SponsorButtons:children()) do
  2170. 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}
  2171. 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)
  2172. end
  2173.  
  2174.  
  2175. 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)
  2176. hgui.MouseLeave:connect(function() if desc2.Parent==hgui then desc2.Parent=nil end end)
  2177.  
  2178. if not _G.cha then _G.cha = {} end
  2179.  
  2180. Chatf.Position=ud(0,10,0,0)
  2181.  
  2182. if not _G.con then _G.con = {} _G.conid=0 end
  2183. for i,v in pairs(_G.con) do v:disconnect() _G.con[i]=nil end
  2184. newcon = function(con)
  2185. _G.con[_G.conid]=con
  2186. _G.conid=_G.conid+0.02
  2187. end
  2188.  
  2189.  
  2190. Msgf.Position=ud(0,10,0,0)
  2191.  
  2192. Chats.Visible = false
  2193. Msgs.Visible = false
  2194. MSC = GameStats.Msg
  2195. GSC = GameStats.Chats
  2196. GSCF=function(thev,col,hax) so(ds.clicksound,m2,0.25,1)
  2197. local msg = thev
  2198. if type(msg)~="string" then msg = msg.Value end
  2199. if #msg > 100 then msg = msg:sub(1,100) end
  2200. if not col then table.insert(_G.cha,{msg,thev.Color.Value.Name}) end
  2201. msg = se("/",msg)
  2202. ----- CHATS
  2203. for i,v in pairs(Chatf:children()) do v.Position=v.Position+ud(0,0,0,cft) end
  2204. 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}
  2205. local binds = 0
  2206. for i=1,#msg,1 do
  2207. local msgi = msg[i]
  2208. if cpi[msgi:lower()] or type(tonumber(msgi)) == "number" then
  2209. 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)}
  2210. guieffect1(nv1,4)
  2211. binds=binds+26
  2212. else
  2213. 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}
  2214. binds=binds+(nv1.TextBounds.x*1.02)
  2215. end
  2216. end
  2217. Chatf.Size=Chatf.Size+ud(0,0,0,cft)
  2218. local thetick = tick()
  2219. 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)
  2220. newtext.MouseLeave:connect(function() if desc2.Parent==newtext then desc2.Parent=nil end end)
  2221. if cfm >= #Chatf:children() then Chats.Visible = false else
  2222. Chats.Visible = true Chats.Position=ud(0,0,0,0) Chats.Size = ud(0,10,0,((cfm)/(#Chatf:children()))*(cfm*cft)) end
  2223.  
  2224. 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
  2225. end
  2226. newcon(GSC.Changed:connect(function() GSCF(GSC) end))
  2227. Player[statname].Chat.Changed:connect(function() GSCF(Player[statname].Chat) end)
  2228. MSCF = function(thev)
  2229. ----MSGS
  2230. for i,v in pairs(Msgf:children()) do v.Position=v.Position+ud(0,0,0,mft) end
  2231. 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}
  2232. Msgf.Size=Msgf.Size+ud(0,0,0,mft)
  2233. local thetick = tick()
  2234. 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)
  2235. newtext.MouseLeave:connect(function() if desc2.Parent==newtext then desc2.Parent=nil end end)
  2236. if mfm >= #Msgf:children() then Msgs.Visible = false else
  2237. Msgs.Visible = true Msgs.Position=ud(0,0,0,0) Msgs.Size = ud(0,10,0,((mfm)/(#Msgf:children()))*(mfm*mft)) end
  2238.  
  2239. 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
  2240. end
  2241. MSC.Changed:connect(function() MSCF(MSC) end)
  2242. Player[statname].Msg.Changed:connect(function() MSCF(Player[statname].Msg) end)
  2243.  
  2244. for i=#_G.cha-12,#_G.cha,1 do
  2245. if type(_G.cha[i])=="table" then
  2246. GSCF(_G.cha[i][1],_G.cha[i][2],true)
  2247. end
  2248. end
  2249.  
  2250. Player.CameraMode=0
  2251. Player.CameraMode=1
  2252.  
  2253. SMsg = function(so,co)
  2254. local coo = co or "Black" Player[statname].Msg.Color.Value = bc(coo) Player[statname].Msg.Value = so .. string.rep(" ",rn(1,5))
  2255.  
  2256. end
  2257.  
  2258. 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
  2259.  
  2260. Overstat = {}
  2261. CreateStat = function()
  2262. local newstat = qi{"BillboardGui",m2,Active=true,Size=ud(0,20,0,20),StudsOffset=v3(0,3,0)}
  2263. 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}
  2264. return newstat
  2265. end
  2266.  
  2267. zneck = 0
  2268. yneck = 1.25
  2269.  
  2270. minut3 = function(tim)
  2271. local sec = tostring(tim%60)
  2272. local minu = tostring(math.floor((tim%3600)/60))
  2273. local hour = tostring(math.floor(tim/3600)) --math.floor((tim%86400)/3600))
  2274. if #sec == 1 then sec = "0" ..sec end
  2275. if #minu == 1 then minu = "0" ..minu end
  2276. if #hour == 1 then hour = "0" ..hour end
  2277. return hour.. ":" ..minu.. ":" ..sec
  2278. end
  2279.  
  2280. minut2 = function(tim)
  2281. local sec = tostring(tim%60)
  2282. local minu = tostring(math.floor((tim%3600)/60))
  2283. local hour = tostring(math.floor((tim%86400)/3600))
  2284. local day = tostring(math.floor((tim%(86400*365))/86400))
  2285. if #sec == 1 then sec = "0" ..sec end
  2286. if #minu == 1 then minu = "0" ..minu end
  2287. if #hour == 1 then hour = "0" ..hour end
  2288. if #day == 1 then day = "0" ..day end
  2289. return day .. ":" ..hour.. ":" ..minu.. ":" ..sec
  2290. end
  2291.  
  2292. minut = function(tim)
  2293. local sec = tostring(math.floor(tim%60))
  2294. local minu = tostring(math.floor(tim/60))
  2295. if #sec == 1 then sec = "0" ..sec end
  2296. if #minu == 1 then minu = "0" ..minu end
  2297. return minu .. ":" ..sec
  2298. end
  2299.  
  2300. for i=1,5 do
  2301. if awep[i] ~= "" then
  2302. local nw = awep[i]
  2303. local wee = wep[i][nw]
  2304. if wee.Reclip then
  2305. calcreclip(i,wee.MaxAmmo*wee.MaxClip,nw)
  2306. end
  2307. end
  2308. end
  2309.  
  2310. wss=0
  2311. wait(0.1)
  2312. bin.Parent = ch
  2313. p2.def=1
  2314. wait(0.6)
  2315. local u = 0
  2316. while true do
  2317. wait()
  2318. u = u + 1
  2319. chran[3] = St.Crouch and -12 or 0
  2320. if lh and rh then
  2321. lh.MaxVelocity = St.Crouch and 0.035 or 0.1
  2322. rh.MaxVelocity = St.Crouch and 0.035 or 0.1
  2323. end
  2324.  
  2325. erms("1")
  2326. local nw = awep[cwep]
  2327. if handles[1] then
  2328. handles[1].Transparency = (visihandle[nw] and amz[cwep].a < 1) and 1 or (nw=="Gasoline" and handles[1].Transparency or 0)
  2329. if handles[1]:findFirstChild("Decal") then
  2330. handles[1].Decal.Transparency = (visihandle[nw] and amz[cwep].a < 1) and 1 or 0
  2331. end
  2332. end
  2333.  
  2334. erms("2")
  2335.  
  2336. local theran = 0 for i=1,#chran do theran=theran+chran[i] end
  2337. theran = theran<1 and 1 or theran
  2338. St.Accuracy=theran
  2339.  
  2340. local nw = awep[cwep] local wee = wep[cwep][nw]
  2341.  
  2342. erms("3")
  2343.  
  2344. local defs = 1 for i=1,#Def do defs=defs*Def[i] end
  2345. p2.def=defs
  2346.  
  2347. local spid = p2.Speed*st.AllSpeed for i=1,#Spd do spid = spid*Spd[i] end hu.WalkSpeed = spid
  2348. p2.Use = twep[cwep]
  2349. p2.Use = awep[cwep]
  2350. p2.Anim = St.a
  2351. hpt.Text = mf(hu.Health)
  2352. gum.Text = wee.MaxClip and amz[cwep].ma or "--"
  2353. gua.Text = wee.MaxAmmo and amz[cwep].a or "--"
  2354. gun.Text = awep[cwep]
  2355. local ggdb = amz[cwep].db-tick() if ggdb < 0 then ggdb = 0 end
  2356. gud.Size = ud(0,(160/lastdb)*ggdb,0,14)
  2357. gud.Position = ud(1,-60-gud.Size.X.Offset,1,-16)
  2358. gud[bc3] = c3(1,1-((1/lastdb)*ggdb),0)
  2359. if mf(to.Velocity.magnitude)-1 > wss then wss=wss+2.5 elseif mf(to.Velocity.magnitude) < wss then wss=wss-2.5 end
  2360. wss = wss < 20 and wss or 20 wss =wss
  2361. chran[1] = st.Condition=="Playing" and wss*2 or 0
  2362. if St.MouseFree then
  2363. MouseFree.Visible = true
  2364. else
  2365. MouseFree.Visible = false
  2366. end
  2367.  
  2368. erms("4")
  2369.  
  2370. if mous then
  2371. local mt = mous.Target
  2372.  
  2373. if to:findFirstChild("Neck") then
  2374. if St.CamShakes > 0 then
  2375. St.CamShakes = St.CamShakes-1
  2376. 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)
  2377. cam.CoordinateFrame=cam.CoordinateFrame*cn(rn(-1,1)/(St.Shake*3),rn(-1,1)/(St.Shake*3),0)
  2378. else
  2379. 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)
  2380. end
  2381. end -- neck
  2382.  
  2383. erms("5")
  2384. -- Mouse Hoverin
  2385. local lidvalstat = {[0]="Click to Open Weapon box","Opening Box...","Press F To Reclip and B to Open Inventory/Shop"}
  2386. if mt then
  2387. if mt.Name=="SponsorPic" and mt:findFirstChild("desc") and dis(to,mt) < 20 then
  2388. 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
  2389. elseif mt.Name=="SponsorButton" and mt:findFirstChild("id") and dis(to,mt) < 20 then
  2390. 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"
  2391. elseif mt.Name == "weparea" and dis(to,mt) <40 then
  2392. desc1.Parent = nil sbox1.Adornee = nil bbg.Parent = mt bbg.StudsOffset=v3(0,2,0) bbg.Adornee=mt bbgt.Text=lidvalstat[mt.Stat.Value]
  2393. elseif mt.Name:sub(1,4) == "flag" and dis(to,mt) <10 then
  2394. desc1.Parent = nil sbox1.Adornee = nil bbg.Parent = m2 bbg.StudsOffset=v3(0,3,0) bbg.Adornee=mt
  2395. 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!")
  2396. elseif mt.Name == "bomb" and mt.Parent.Name=="Bomb" and dis(to,mt) <12 then
  2397. desc1.Parent = nil sbox1.Adornee = nil bbg.Parent = m2 bbg.StudsOffset=v3(0,3,0) bbg.Adornee=mt
  2398. local loltex1 = {["calm"]="The bomb hasn't been fused yet!",["fused"]="The Bomb has been fused!",["defused"]="The Bomb has been defused!"}
  2399. bbgt.Text=loltex1[mt.Parent.Status.Value]
  2400. else
  2401. bbg.Parent = nil
  2402. bbgt.Text = ""
  2403. bbg.Adornee=nil
  2404. desc1.Parent=nil
  2405. sbox1.Adornee=nil
  2406. end end --hover
  2407. ---
  2408. end---mouse
  2409.  
  2410.  
  2411. erms("6")
  2412. local rots1 = -math.deg((to.Position - mous.hit.p).unit.y)
  2413. rots1 = rots1 < 90 and rots1 or 90
  2414. rots1 = rots1 > -90 and rots1 or -90
  2415. zneck =(rots1-25)/140
  2416.  
  2417. if u%2==0 then
  2418. sneck.C0=cn(0,tw2.C0.y,0)*cn(0,0.9,0)*ca(rd(rots1),0,0)*cn(0,0.6,0)
  2419.  
  2420. local use = awep[cwep]
  2421. local use = wep[cwep][use].Stats
  2422. if St.ArmAiming and type(use[5])=="table" then
  2423. lw.C0=use[1]
  2424. lw.C1=use[2]
  2425. rw.C0=use[3]
  2426. rw.C1=use[4]
  2427. lw.C1=use[5][1]==1 and lw.C1*ca(rd(-rots1 > 40 and 40 or -rots1),0,0) or lw.C1
  2428. rw.C1=use[5][2]==1 and rw.C1*ca(rd(-rots1 > 40 and 40 or -rots1),0,0) or rw.C1
  2429.  
  2430. end
  2431.  
  2432. end
  2433.  
  2434. erms("7")
  2435.  
  2436. if St.Crosshair then --not St.MouseFree then
  2437. x1.Visible=true x2.Visible=true y1.Visible=true y2.Visible = true
  2438. x1.Position=ud(0,mous.X+(csize/2)+cran+theran-2,0,mous.Y-3)
  2439. x2.Position=ud(0,mous.X-(csize)-(cran*2)-theran-3,0,mous.Y-3)
  2440. y1.Position=ud(0,mous.X-3,0,mous.Y+(csize/2)+cran+theran-2)
  2441. y2.Position=ud(0,mous.X-3,0,mous.Y-(csize)-(cran*2)-theran-3)
  2442. end
  2443. local tbga = ca(0,0,0) for i=1,#tbgc do tbga=tbga*tbgc[i] end
  2444. to.CFrame = cn(to.Position,v3(mous.Hit.p.x,to.Position.y,mous.Hit.p.z))*tbga
  2445.  
  2446. erms("8")
  2447.  
  2448.  
  2449. if FirePower and FirePower.Transparency<1 and FirePower:findFirstChild("Weld") then
  2450. FirePower.Weld.C0=FirePower.Weld.C0*ca(0,rd(15),0)
  2451. FirePower.Transparency=FirePower.Transparency+0.2
  2452. end
  2453.  
  2454. if hitmsg.TextTransparency<1 then
  2455. hitmsg.TextTransparency=hitmsg.TextTransparency+0.2
  2456. end
  2457. if x1.hitmsg[bgt]<1 then
  2458. for i,v in pairs({x1,x2,y1,y2}) do
  2459. v.hitmsg[bgt]=v.hitmsg[bgt]+0.067
  2460. end
  2461. end
  2462.  
  2463. erms("8")
  2464.  
  2465. for i,v in pairs(Players:GetPlayers()) do
  2466. if v ~= Player and v:findFirstChild(statname) and v.Character and v.Character.Parent and v.Character:findFirstChild("Torso") then
  2467. if Overstat[v.Name] then else
  2468. Overstat[v.Name] = CreateStat()
  2469. end
  2470. local thegui = Overstat[v.Name]
  2471. 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
  2472. thegui.Parent = m2
  2473. thegui.Adornee = v.Character.Torso
  2474. local trut = (pm[v.Name].Team~=0 and pm[v.Name].Team==p2.Team)
  2475. local trut1,trut2
  2476. trut1 = pm[v.Name].Team==0 and "Neutral" or (trut and "Team" or "Enemy")
  2477. trut2 = pm[v.Name].Team == 0 and "White" or (trut and "Lime green" or "Bright red")
  2478. if st.Condition ~= "Playing" then trut=true end
  2479. thegui.tx.Text = v.Name .. [[
  2480. ]] .. mf(v.Character.Humanoid.Health) .. "/" ..mf(v.Character.Humanoid.MaxHealth) .. [[
  2481. ]] .. trut1
  2482. thegui.tx.TextColor3 = bc(trut2).Color
  2483. else -- hide
  2484. thegui.Adornee = nil
  2485. thegui.Parent=nil
  2486. end -- range check
  2487. end -- v~=player qi
  2488. end -- loop end
  2489.  
  2490. erms("9")
  2491.  
  2492. if wtabg.Visible then
  2493. for i=1,#wtab do
  2494. local nw = awep[i]
  2495. local use = wep[i][nw]
  2496. wtab[i].Text = nw == "" and "None" or nw
  2497. if nw ~= "" and use.Reclip then
  2498. wtab[i].Text = wtab[i].Text .. [[
  2499. ]] ..amz[i].a .. " / " ..amz[i].ma
  2500. else
  2501. wtab[i].Text = wtab[i].Text .. [[
  2502. -- / -- ]]
  2503. end
  2504. end
  2505. end
  2506.  
  2507.  
  2508. erms("10")
  2509.  
  2510.  
  2511. for xx,nb in pairs(bullets) do
  2512. local bb = nb.bb
  2513. nb.loop=nb.loop+1
  2514. local spd2 = nb.spd
  2515. nb.bhit,nb.bpos=ray(bb.Position,bb.Position - (bb.CFrame *cn(0,-1,0)).p,Props2)
  2516. 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
  2517. bb.CFrame=bb.CFrame*cn(0,spd2,0)*ca(-rd(exwep[nb.bty] and exwep[nb.bty][1] or 0.07),0,0)
  2518.  
  2519.  
  2520. if nb.reach then
  2521. bb.CFrame=bb.CFrame*cn(0,-spd2,0)
  2522. bb.CFrame=bb.CFrame*cn(0,(nb.bpos-bb.Position).magnitude,0)
  2523.  
  2524. if nb.bhit and nb.bhit.Parent:findFirstChild("Humanoid") then
  2525. local bty = nb.bty
  2526. local dmg = nb.dmg
  2527. local vic = nb.bhit.Parent
  2528. local vhu = vic.Humanoid
  2529. if bty == "bullet" then Dmg(vic.Name,dmg,nb.bhit) end
  2530.  
  2531. end
  2532.  
  2533. SpecialHit(nb.bhit,nb.dmg)
  2534.  
  2535. -- explosive bullit dmg
  2536. if nb.bhit and nb.bhit.Anchored then -- bullet hole / grenades are not bullets!
  2537. if exwep[nb.bty] and exwep[nb.bty][3] and string.find(nb.bty,"gren") ==nil 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
  2538. end
  2539. if exwep[nb.bty] and nb.bty == "molotov" then so(ds.Explode1,bb,0.9,1)
  2540. exm(bb)
  2541. DmgRange(bb,exwep[nb.bty][3],nb.dmg,60)
  2542. 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)
  2543. dlay({bb,exwep[nb.bty][3],4,nil,"Molotov"},DmgRange,0.5,16)
  2544. 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)
  2545. elseif nb.bty and (nb.bty == "grenade" or nb.bty=="grenade3") then
  2546. bb.CFrame=bb.CFrame*cn(0,-3,0)
  2547. bb.Anchored=false
  2548. delay(nb.bty=="grenade" and 1.8 or 3,function() bb.Anchored=true
  2549. local gpos,ghit = FindGround(bb.CFrame)
  2550. if gpos and ghit then BulletHole(gpos.p,ghit,exwep[nb.bty][3],ds.Gradient1,Props2) end
  2551. so(ds.Explode1,to,0.9,1)
  2552. exm(bb) de(bb,5)
  2553. DmgRange(bb,exwep[nb.bty][3],nb.dmg,nb.bty=="grenade" and 60 or 130)
  2554. end)
  2555. elseif nb.bty and nb.bty == "grenade2" then
  2556. bb.CFrame=bb.CFrame*cn(0,-3,0)
  2557. bb.Anchored=false
  2558. delay(3,function() bb.Anchored=true
  2559. de(bb,28)
  2560. bb.CFrame = cn(bb.Position)*ca(rd(90),0,0)*ca(0,rd(rn(-360,360)),0)
  2561. qi{"Smoke",bb,RiseVelocity=25,Opacity=0.1,Size=1,Color=bc("Black").Color}
  2562. 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
  2563. dlay({{bb.Smoke},function(sm) sm.Size=sm.Size-4 sm.Opacity=sm.Opacity-(0.03) end,0.5,16},dlay,18,1) --fade
  2564. end)
  2565. elseif nb.bty and nb.bty == "tele" and bb then
  2566. bb.CFrame=bb.CFrame*cn(0,-3,0)
  2567. bb.Anchored=false
  2568. delay(2,function()
  2569. if dis(to,bb) > 500 then SMsg("Translocator Failed!","Really red") return end
  2570. SMsg("Translocator Activated!","Olive")
  2571. de(bb,3)
  2572. exm(to,nil,"Bright blue")
  2573. to.CFrame=cn(bb.Position)*cn(0,5,0)
  2574. exm(to,nil,"Bright blue") so(ds.EnergySlash1,to,1.1,1)
  2575. end)
  2576. 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)
  2577. exm(bb)
  2578. DmgRange(bb,exwep[nb.bty][3],nb.dmg,60)
  2579. else bb.Transparency=1 de(bb,8) end
  2580. bullets[xx] = nil
  2581. elseif nb.loop >= nb.ran then
  2582. bb.Transparency=1 de(bb,8)
  2583. bullets[xx] = nil
  2584. end
  2585. end -- for end
  2586.  
  2587. erms("11")
  2588.  
  2589.  
  2590.  
  2591. erms("12")
  2592.  
  2593. scope.Visible=St.Scoping
  2594.  
  2595. local hhh = (1/hu.MaxHealth)*hu.Health
  2596. hg1v[bc3]=c3(1-hhh,hhh,0)
  2597. hg2v[bc3]=c3(1-hhh,hhh,0)
  2598. hg3v[bc3]=c3(1-hhh,hhh,0)
  2599. hpt.TextColor3=c3(1-hhh,hhh,0)
  2600.  
  2601. meshact()
  2602.  
  2603. erms("13")
  2604.  
  2605. if st.Time < 0 then
  2606. timm.Visible = false timl.Visible = false timr.Visible = false
  2607. else
  2608. timm.Visible = true timl.Visible = true timr.Visible = true
  2609. timm.Text = minut(st.Time)
  2610. end
  2611.  
  2612. erms("14")
  2613.  
  2614. for i=1,10 do if st.ltype==i then modegui[i].Visible=true else modegui[i].Visible=false end end
  2615.  
  2616. erms("15")
  2617.  
  2618. if st.Mode~=0 then
  2619. if st.ltype == 1 then
  2620. modegui[1].t1.Text = "Team 1 Kills:" .. [[
  2621. ]] ..st.tp1
  2622. modegui[1].t2.Text = "Team 2 Kills:" .. [[
  2623. ]] ..st.tp2
  2624. elseif st.ltype == 2 then
  2625. modegui[2].t1.Text = "Team 1 Members:" .. [[
  2626. ]] ..st.tp1
  2627. modegui[2].t2.Text = "Team 2 Members:" .. [[
  2628. ]] ..st.tp2
  2629. elseif st.ltype == 3 then
  2630. modegui[3].t1.Text = "Team 1 Points:" .. [[
  2631. ]] ..st.tp1
  2632. modegui[3].t2.Text = "Team 2 Points:" .. [[
  2633. ]] ..st.tp2
  2634. elseif st.ltype == 4 then
  2635. local jh = nil
  2636. pcall(function() jh=game:service'Players'[st.v1].Character.Humanoid end)
  2637. if jh then
  2638. modegui[4].j4.juger.Text = "Juggernaut: " ..st.v1
  2639. modegui[4].j4.health.Text = jh.Health .. "/" ..jh.MaxHealth
  2640. modegui[4].j4.bar.Size = ud((1/jh.MaxHealth)*jh.Health,-4,1,-4)
  2641. end
  2642. end
  2643. end
  2644. erms("16")
  2645. -------
  2646. if lboard.Visible and u%5==0 then
  2647. mapname.Text="Map: " .. Maps[st.Map][1]
  2648. modename.Text="Mode: " .. Modes[st.Mode][1]
  2649. roundt.Text="Round # " .. st.Round
  2650. servertime.Text="Server Time: " .. minut3(math.floor(st.servertime))
  2651. ------
  2652. local ps = game:service'Players':GetPlayers()
  2653. for i=1,maxp do
  2654. if #ps >= i and ps[i]:findFirstChild(statname) and ps[i][statname]:findFirstChild("Spray") then
  2655. local vn = ps[i].Name
  2656. local thecol = pm[vn].Team~=0 and bc(teamcol[pm[vn].Team]).Color or bc(pm[vn].Color).Color
  2657. lboard[i].Visible=true
  2658. lboard[i].name.TextColor3 = thecol
  2659. lboard[i].Team.TextColor3 = thecol
  2660. ----
  2661. lboard[i].name.Text = vn
  2662. lboard[i].Rank.Text = therankname[pm[vn].Rank]
  2663. lboard[i].Level.Text = pm[vn].Level.. ". " ..(ln[pm[vn].Level] or "")
  2664. lboard[i].Points.Text = pm[vn].Points
  2665. lboard[i].Team.Text = pm[vn].Team
  2666. lboard[i].Kills.Text = pm[vn].Kills
  2667. lboard[i].Deaths.Text = pm[vn].Deaths
  2668. lboard[i].Kills2.Text = pm[vn].Kills2
  2669. lboard[i].Spray.Image = asset ..pm[vn].Spray
  2670. else
  2671. lboard[i].Visible=false
  2672. end -- if
  2673. end -- 1,maxp
  2674. end -- visi
  2675.  
  2676. erms("17")
  2677.  
  2678. if hu.Jump and St.Crouch then
  2679. Crouch(false)
  2680. end
  2681.  
  2682. if nwb and dis(to,nwb) > 12 and St.a=="Inventory" then
  2683. St.a="None" St.MouseFree=false
  2684. inv.Visible=false
  2685. Spd[1]=1
  2686. end
  2687.  
  2688. if inv.Visible and u%5==0 then invpoi.Text = "Points: " ..p2.Points end
  2689.  
  2690. erms("18")
  2691.  
  2692.  
  2693. if to.Position.y < -100 and fallkill then
  2694. Dmg(Player.Name,150) fallkill = false
  2695. end
  2696. if u%30==0 and to.Position.y+2<st.drown and st.Condition=="Playing" and p2.ongame then
  2697. Dmg(Player.Name,4*4,nil,"Drowning",Player.Name)
  2698. end
  2699.  
  2700. if invtim.Visible then
  2701. invtim.Text = "Time Left: " ..minut2(mf(p2.inv["x" ..invs]-st.tick))
  2702. end
  2703.  
  2704. erms("19")
  2705.  
  2706. for i,v in pairs(dlays) do
  2707. local tik,ta,fu,ti,lt,xi = unpack(v)
  2708. if tik+ti<=tick() then
  2709. pcall(function() fu(unpack(ta)) end)
  2710. dlays[i]={tik+ti,ta,fu,ti,lt,xi+1}
  2711. if xi+1 >= lt then dlays[i]=nil end
  2712. end
  2713. end
  2714.  
  2715. erms("20")
  2716.  
  2717.  
  2718. for i,v in pairs(novels) do -- quick-anchor drop items
  2719. if v and v.Velocity.Magnitude < 0.2 and rn(1,8) == 1 then v.Anchored = true novels[i]=nil end
  2720. end
  2721.  
  2722.  
  2723. erms("21")
  2724.  
  2725. if u%5==0 then
  2726. to2.BrickColor=bc(p2.Team~=0 and teamcol[p2.Team] or p2.Color)
  2727. end
  2728.  
  2729. erms("22")
  2730.  
  2731. if not p2.ongame then
  2732. spectate.Visible=true
  2733. else
  2734. spectate.Visible=false
  2735. if #spectate:children() > 0 then spectate:ClearAllChildren() end
  2736. end
  2737. if u%5==0 and spectate.Visible then St.MouseFree=true end
  2738. if specting>0 and p2.ongame then
  2739. specting=0
  2740. cam.CameraSubject=hu
  2741. if u%5==0 then Player.CameraMode=1 end
  2742. end
  2743.  
  2744.  
  2745. erms("22")
  2746.  
  2747. if flagt then
  2748. flagt.TextureId=p2.Team==2 and asset .. "1043975" or asset .. "1043977"
  2749. end
  2750.  
  2751. local hurslo=1.3
  2752. if hurt1.Transparency<1 then
  2753. hurt1.Transparency=hurt1.Transparency+(0.2/hurslo)
  2754. end
  2755. if hurt2.Size.X.Scale<3 then
  2756. hurt2.Size=hurt2.Size+ud(0.5/hurslo,0,0.5/hurslo,0)
  2757. hurt2.Position=hurt2.Position-ud(0.25/hurslo,0,0.25/hurslo,0)
  2758. end
  2759.  
  2760. oldhealth=hu.Health
  2761.  
  2762. if u%5==0 and st.Condition=="Playing" then -- cover/antilag
  2763. local hra = 0.25
  2764. local covers = 0
  2765. GetRegion(to.Position-v3(hra,hra,hra),to.Position+v3(hra,hra,hra),function(v) end,
  2766. function(get)
  2767. if get and get.Name == "Cover" then
  2768. covers=covers+1
  2769. end
  2770. end,true)
  2771. if covers>0 then p2.ShowStat=false else p2.ShowStat=true end
  2772. end
  2773.  
  2774.  
  2775. erms("23")
  2776.  
  2777. ------
  2778. end
  2779.  
  2780. --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