Guest User

Untitled

a guest
Aug 28th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.23 KB | None | 0 0
  1. -- Apocalypse Rising: Reborn
  2.  
  3. local pass = 0
  4. -- ChangeVal Snip
  5.  
  6. local Gui = game:GetObjects("rbxassetid://339806953")[1] -- reg; 336707567, beta; 339806953
  7. Gui.Parent = game.CoreGui
  8.  
  9. local BF = Gui:WaitForChild("BigFrame")
  10. local SF = BF:WaitForChild("Server")
  11. local LF = BF:WaitForChild("Local")
  12.  
  13. local LP = game.Players.LocalPlayer
  14.  
  15. local Template = LF.Frame.ItemList.Template
  16. local Btns = BF.Buttons
  17. local pInfo = Gui.PlayerInfo
  18. --//LOCALPLAYER
  19. local LocalSpawn = LF.Frame
  20. local LocalStats = LF.Frame2
  21. --//SERVER
  22. local sBtns = SF.Buttons
  23. local VehicleFr = SF.Vehicle
  24. local PlayerFr = SF.Player
  25. local MiscFr = SF.Misc
  26. local ServerSpawn = SF.ItemSpawn
  27.  
  28. local OnCol, OffCol = Color3.new(0, 85/255, 0), Color3.new(141/255, 6/255, 8/255)
  29. local bOnCol, bOffCol = Color3.new(0, 65/255, 0), Color3.new(91/255, 3/255, 5/255)
  30. local CurrMsgCol = "White"
  31.  
  32. local CurrVehIndex = 1
  33. local CurrPlrIndex = 1
  34. local CurrVeh, CurrPlr
  35. local NumPlrs = game.Players.NumPlayers
  36.  
  37. local god = false
  38.  
  39. local Bools = {
  40. ["Stamina"] = false,
  41. ["Hunger"] = false,
  42. ["Thirst"] = false,
  43. ["Godmode"] = false,
  44. ["Reload"] = false
  45. }
  46. local PlayerModes = {
  47. --[[{["NAME"] = "Disconnect", ["FUNC"] = function(...) -- a player a disconnection from the server ("this game has shutdown")
  48. local tab = {...}
  49. local Players = GetPlayers(tab[1])
  50. ForEach(Players, function(Player)
  51. if Player and game.Workspace:findFirstChild(Player.Name) then
  52. ChangeProp(Player.Character.Torso, "CFrame", game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(-20, 0, 0))
  53. end
  54. end)
  55. end},]]
  56. {["NAME"] = "Kill", ["FUNC"] = function(...) -- kills a plr
  57. local tab = {...}
  58. local Players = GetPlayers(tab[1])
  59. ForEach(Players, function(Player)
  60. if Player and game.Workspace:findFirstChild(Player.Name) then
  61. Damage(Player, 200) -- 200 in case of pain killers
  62. end
  63. end)
  64. end},
  65. {["NAME"] = "Heal", ["FUNC"] = function(...) -- sets a plr's health to their maxhealth
  66. local tab = {...}
  67. local Players = GetPlayers(tab[1])
  68. ForEach(Players, function(Player)
  69. if Player and game.Workspace:findFirstChild(Player.Name) then
  70. Heal(Player, 100)
  71. end
  72. end)
  73. end},
  74. {["NAME"] = "Hunger", ["FUNC"] = function(...) -- replenishes a player's hunger stat
  75. local tab = {...}
  76. local Players = GetPlayers(tab[1])
  77. ForEach(Players, function(Player)
  78. if Player and game.Workspace:findFirstChild(Player.Name) then
  79. ChangeVal(Player.playerstats.Hunger, 100)
  80. end
  81. end)
  82. end},
  83. {["NAME"] = "Thirst", ["FUNC"] = function(...) -- replenishes a player's thirst stat
  84. local tab = {...}
  85. local Players = GetPlayers(tab[1])
  86. ForEach(Players, function(Player)
  87. if Player and game.Workspace:findFirstChild(Player.Name) then
  88. ChangeVal(Player.playerstats.Thirst, 100)
  89. end
  90. end)
  91. end},
  92. --[[{["NAME"] = "God", ["FUNC"] = function(...) -- godmodes a player
  93. local tab = {...}
  94. local Players = GetPlayers(tab[1])
  95. ForEach(Players, function(Player)
  96. if Player and game.Workspace:findFirstChild(Player.Name) then
  97. ChangeProp(Player.Character.Humanoid, "MaxHealth", math.huge)
  98. wait()
  99. ChangeProp(Player.Character.Humanoid, "Health", math.huge)
  100. end
  101. end)
  102. end},]]--
  103. --snip~
  104. --[[{["NAME"] = "UnGod", ["FUNC"] = function(...) -- ungodmodes a player
  105. local tab = {...}
  106. local Players = GetPlayers(tab[1])
  107. ForEach(Players, function(Player)
  108. if Player and game.Workspace:findFirstChild(Player.Name) then
  109. ChangeProp(Player.Character.Humanoid, "Health", 100)
  110. wait()
  111. ChangeProp(Player.Character.Humanoid, "MaxHealth", 100)
  112. end
  113. end)
  114. end},]]
  115. {["NAME"] = "Bring", ["FUNC"] = function(...) -- teleports a player to the local player
  116. local tab = {...}
  117. local Players = GetPlayers(tab[1])
  118. ForEach(Players, function(Player)
  119. if Player and game.Workspace:findFirstChild(Player.Name) then
  120. ChangeProp(Player.Character.Humanoid, "Sit", true)
  121. ChangeProp(Player.Character.Torso, "Anchored", true)
  122. wait(0.5)
  123. ChangeProp(Player.Character.Torso, "CFrame", game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(-2, 0, 0))
  124. wait(0.5)
  125. ChangeProp(Player.Character.Torso, "Anchored", false)
  126. ChangeProp(Player.Character.Humanoid, "Jump", true)
  127. end
  128. end)
  129. end},
  130. --snip~
  131. {["NAME"] = "TP Kill", ["FUNC"] = function(...) -- kills a player then teleports their body to the local player
  132. local tab = {...}
  133. local Players = GetPlayers(tab[1])
  134. ForEach(Players, function(Player)
  135. if Player and game.Workspace:findFirstChild(Player.Name) then
  136. Damage(Player, 200)
  137. wait(5)
  138. ForEach(game.Workspace:GetChildren(), function(Object)
  139. local Angle = math.random(1,63)/10
  140. if Object.Name == "Corpse" and Object:findFirstChild("Corpse of " .. Player.Name) then
  141. Object:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(6 * math.cos(Angle), 0, 6 * math.sin(Angle)))
  142. end
  143. end)
  144. end
  145. end)
  146. end},
  147. {["NAME"] = "Crash", ["FUNC"] = function(...) -- crashes a player's client
  148. local tab = {...}
  149. local Players = GetPlayers(tab[1])
  150. ForEach(Players, function(Player)
  151. if Player and game.Workspace:findFirstChild(Player.Name) then
  152. warn("function snipped")
  153. end
  154. end)
  155. end},
  156. {["NAME"] = "Semi-Kick", ["FUNC"] = function(...) -- removes a player from the Players service
  157. local tab = {...}
  158. local Players = GetPlayers(tab[1])
  159. ForEach(Players, function(Player)
  160. if Player and game.Workspace:findFirstChild(Player.Name) then
  161. Destroy(Player)
  162. end
  163. end)
  164. end},
  165. --[[{["NAME"] = "C-Log", ["FUNC"] = function(...)
  166.  
  167. end}]]
  168. }
  169. local LPModes = {
  170. --[[{["NAME"] = "Stamina", ["FUNC"] = function()
  171. if Stamina == true then
  172. Stamina = false
  173. ChangeProp(LP.Backpack.GlobalFunctions.Stamina, "Value", 100)
  174. else
  175. Stamina = true
  176. ChangeProp(LP.Backpack.GlobalFunctions.Stamina, "Value", 100000)
  177. end
  178. end},]]
  179. {["NAME"] = "Hunger", ["FUNC"] = function()
  180. if Bools["Hunger"] == true then
  181. Bools["Hunger"] = false
  182. ChangeVal(LP.playerstats.Hunger, 100)
  183. else
  184. Bools["Hunger"] = true
  185. ChangeVal(LP.playerstats.Hunger, 100000)
  186. end
  187. end},
  188. {["NAME"] = "Thirst", ["FUNC"] = function()
  189. if Bools["Thirst"] == true then
  190. Bools["Thirst"] = false
  191. ChangeVal(LP.playerstats.Thirst, 100)
  192. else
  193. Bools["Thirst"] = true
  194. ChangeVal(LP.playerstats.Thirst, 100000)
  195. end
  196. end},
  197. {["NAME"] = "Godmode", ["FUNC"] = function()
  198. if LP and game.Workspace:findFirstChild(LP.Name) then
  199. if Bools["Godmode"] == false then
  200. Bools["Godmode"] = true
  201. while (0.05) do
  202. Heal(Player, Player.Character.Humanoid.MaxHealth)
  203. end
  204. else
  205. Bools["Godmode"] = false
  206. break
  207. end
  208. end
  209. end},
  210. {["NAME"] = "Reload", ["FUNC"] = function()
  211.  
  212. end},
  213. }
  214. local VehicleSpeeds = {
  215. ["Humvee"] = {["MaxSpeed"] = 62, ["Offroad"] = 40},
  216. ["Humvee2"] = {["MaxSpeed"] = 62, ["Offroad"] = 40},
  217. ["Jeep"] = {["MaxSpeed"] = 58, ["Offroad"] = 40},
  218. ["Jeep2"] = {["MaxSpeed"] = 58, ["Offroad"] = 40},
  219. ["SUV"] = {["MaxSpeed"] = 60, ["Offroad"] = 42},
  220. ["Car"] = {["MaxSpeed"] = 60, ["Offroad"] = 35},
  221. ["ATV"] = {["MaxSpeed"] = 52, ["Offroad"] = 46},
  222. ["Ambulance"] = {["MaxSpeed"] = 65, ["Offroad"] = 35},
  223. ["Bicycle"] = {["MaxSpeed"] = 36, ["Offroad"] = 28},
  224. ["Pickup"] = {["MaxSpeed"] = 58, ["Offroad"] = 40},
  225. ["Pickup2"] = {["MaxSpeed"] = 58, ["Offroad"] = 40},
  226. ["Tractor"] = {["MaxSpeed"] = 45, ["Offroad"] = 40},
  227. ["Motorside"] = {["MaxSpeed"] = 55, ["Offroad"] = 35},
  228. ["Motorcycle"] = {["MaxSpeed"] = 55, ["Offroad"] = 35},
  229. ["Ural"] = {["MaxSpeed"] = 55, ["Offroad"] = 35},
  230. ["Ural2"] = {["MaxSpeed"] = 55, ["Offroad"] = 35},
  231. ["DeliveryVan"] = {["MaxSpeed"] = 58, ["Offroad"] = 30},
  232. ["PoliceCar"] = {["MaxSpeed"] = 68, ["Offroad"] = 36},
  233. ["Firetruck"] = {["MaxSpeed"] = 66, ["Offroad"] = 36},
  234. }
  235. local VehicleModes = {
  236. {["NAME"] = "GodVehicle", ["FUNC"] = function(...)
  237. local tab = {...}
  238. local Veh = tab[1]
  239. ForEach(Veh.Stats:GetChildren(), function(Value)
  240. if Value.Name ~= "MaxSpeed" then
  241. Value.Value = 100000
  242. end
  243. end)
  244. end},
  245. {["NAME"] = "UnGodVehicle", ["FUNC"] = function(...)
  246. local tab = {...}
  247. local Veh = tab[1]
  248. ForEach(Veh.Stats:GetChildren(), function(Value)
  249. ChangeVal(Value, Value:GetChildren()[1].Value)
  250. end)
  251. end},
  252. {["NAME"] = "TPVehicle", ["FUNC"] = function(...)
  253. local tab = {...}
  254. local Players = GetPlayers(tab[2])
  255. local Veh = tab[1]
  256. ChangeProp(Veh.Seats.Driver, "CFrame", Players[1].Character.Torso.CFrame * CFrame.new(-20, 0, 0))
  257. end},
  258. {["NAME"] = "ExplVehicle", ["FUNC"] = function(...)
  259. local tab = {...}
  260. local Veh = tab[1]
  261. ChangeProp(Veh.Stats.Engine, "Value", 0)
  262. end},
  263. {["NAME"] = "SetOnRoadSpeed", ["FUNC"] = function(...)
  264. local tab = {...}
  265. local Veh = tab[1]
  266. ChangeProp(Veh.Stats.MaxSpeed, "Value", tonumber(tab[2]))
  267. end},
  268. {["NAME"] = "SetOffRoadSpeed", ["FUNC"] = function(...)
  269. local tab = {...}
  270. local Veh = tab[1]
  271. ChangeProp(Veh.Stats.MaxSpeed.Offroad, "Value", tonumber(tab[2]))
  272. end},
  273. {["NAME"] = "ResetSpeed", ["FUNC"] = function(...)
  274. local tab = {...}
  275. local Veh = tab[1]
  276. ForEach(VehicleSpeeds[Veh.Name], function(Value, Index)
  277. ChangeProp(Veh.Stats.MaxSpeed, "Value", Value.MaxSpeed)
  278. ChangeProp(Veh.Stats.MaxSpeed.Offroad, "Value", Value.MaxSpeed.Offroad)
  279. end)
  280. end},
  281. }
  282. local LoadOuts = {
  283. {["NAME"] = "Mercenary (MK 17)", ["ITEMS"] = {
  284. "Map",
  285. "Entrencher",
  286. "Sabre",
  287. "GPS",
  288. "Compass",
  289. "Detonator",
  290. "OmniLight",
  291.  
  292. "MilitaryPackBlack",
  293. "Mk 17",
  294. "Suppressor762",
  295. "ACOG",
  296. "Grip",
  297. "M14Ammo50",
  298. "M14Ammo50",
  299. "M14Ammo50",
  300. "M14Ammo50",
  301. "M14Ammo50",
  302. "M14Ammo50",
  303. "M14Ammo50",
  304. "M14Ammo50",
  305. "M14Ammo50",
  306. "M14Ammo50",
  307. "M14Ammo50",
  308. "C4",
  309. "BloodBag",
  310. "BloodBag",
  311. "BloodBag",
  312. "BloodBag",
  313. "MRE",
  314. "MRE",
  315. "WaterBottle",
  316. "WaterBottle"
  317. }},
  318. {["NAME"] = "Overwatch (M14)", ["ITEMS"] = {
  319. "Map",
  320. "Entrencher",
  321. "Sabre",
  322. "GPS",
  323. "Compass",
  324. "OmniLight",
  325.  
  326. "MilitaryPackBlack",
  327. "M14",
  328. "Suppressor762",
  329. "ACOG",
  330. "Grip",
  331. "M14Ammo50",
  332. "M14Ammo50",
  333. "M14Ammo50",
  334. "M14Ammo50",
  335. "M14Ammo50",
  336. "M14Ammo50",
  337. "M14Ammo50",
  338. "M14Ammo50",
  339. "M14Ammo50",
  340. "M14Ammo50",
  341. "M14Ammo50",
  342. "BloodBag",
  343. "BloodBag",
  344. "BloodBag",
  345. "BloodBag",
  346. "MRE",
  347. "MRE",
  348. "WaterBottle",
  349. "WaterBottle",
  350. "VS50",
  351. "VS50"
  352. }},
  353. {["NAME"] = "Breacher (M4A1)", ["ITEMS"] = {
  354. "Map",
  355. "Entrencher",
  356. "Sabre",
  357. "GPS",
  358. "Compass",
  359. "OmniLight",
  360.  
  361. "MilitaryPackBlack",
  362. "M4A1",
  363. "Suppressor556",
  364. "ACOG",
  365. "Grip",
  366. "STANAGAmmo100",
  367. "STANAGAmmo100",
  368. "STANAGAmmo100",
  369. "STANAGAmmo100",
  370. "STANAGAmmo100",
  371. "STANAGAmmo100",
  372. "STANAGAmmo100",
  373. "STANAGAmmo100",
  374. "BloodBag",
  375. "BloodBag",
  376. "BloodBag",
  377. "BloodBag",
  378. "Painkillers",
  379. "Painkillers",
  380. "Painkillers",
  381. "Painkillers",
  382. "MRE",
  383. "MRE",
  384. "WaterBottle",
  385. "WaterBottle",
  386.  
  387. }},
  388. {["NAME"] = "Mercenary (FAL)", ["ITEMS"] = {
  389. "Map",
  390. "Entrencher",
  391. "Sabre",
  392. "GPS",
  393. "Compass",
  394. "Detonator",
  395. "OmniLight",
  396.  
  397. "MilitaryPackBlack",
  398. "FAL",
  399. "Suppressor762",
  400. "ACOG",
  401. "Grip",
  402. "M14Ammo50",
  403. "M14Ammo50",
  404. "M14Ammo50",
  405. "M14Ammo50",
  406. "M14Ammo50",
  407. "M14Ammo50",
  408. "M14Ammo50",
  409. "M14Ammo50",
  410. "M14Ammo50",
  411. "M14Ammo50",
  412. "M14Ammo50",
  413. "C4",
  414. "BloodBag",
  415. "BloodBag",
  416. "BloodBag",
  417. "BloodBag",
  418. "MRE",
  419. "MRE",
  420. "WaterBottle",
  421. "WaterBottle"
  422. }},
  423. {["NAME"] = "Terrorist", ["ITEMS"] = {
  424. "Map",
  425. "Entrencher",
  426. "Sabre",
  427. "GPS",
  428. "Compass",
  429. "Detonator",
  430. "OmniLight",
  431.  
  432. "MilitaryPackBlack",
  433. "AK-47",
  434. "AK47Ammo75",
  435. "AK47Ammo75",
  436. "AK47Ammo75",
  437. "AK47Ammo75",
  438. "AK47Ammo75",
  439. "AK47Ammo75",
  440. "AK47Ammo75",
  441. "AK47Ammo75",
  442. "AK47Ammo75",
  443. "C4",
  444. "C4",
  445. "C4",
  446. "C4",
  447. "C4",
  448. "C4",
  449. "C4",
  450. "C4",
  451. "C4",
  452. "C4",
  453. }},
  454. {["NAME"] = "Vehicle Repair", ["ITEMS"] = {
  455. "ReinforcedWheel",
  456. "ReinforcedWheel",
  457. "ReinforcedWheel",
  458. "ReinforcedWheel",
  459. "ReinforcedWheel",
  460. "ReinforcedWheel",
  461.  
  462. "JerryCan",
  463. "JerryCan",
  464. "JerryCan",
  465. "JerryCan",
  466.  
  467. "FuelTank",
  468. "Engine",
  469. "ScrapMetal",
  470. "ArmorPlates",
  471.  
  472. "BallisticGlass"
  473. }},
  474. }
  475. local Stats = {
  476. {["NAME"] = "PlayerKills", ["FUNC"] = function(...)
  477. local tab = {...}
  478. local Players = GetPlayers(tab[1])
  479. ForEach(Players, function(Player)
  480. if Player and game.Workspace:findFirstChild(Player.Name) then
  481. ChangeProp(Player.playerstats.PlayerKill.Aggressive, "Value", tonumber(tab[2]))
  482. end
  483. end)
  484. end},
  485. {["NAME"] = "ZombieKills", ["FUNC"] = function(...)
  486. local tab = {...}
  487. local Players = GetPlayers(tab[1])
  488. ForEach(Players, function(Player)
  489. if Player and game.Workspace:findFirstChild(Player.Name) then
  490. ChangeProp(Player.playerstats.ZombieKill.Military, "Value", tonumber(tab[2]))
  491. spawn(function()
  492. local d = Player.playerstats.Days.Value
  493. wait(0.1)
  494. ChangeProp(Player.playerstats.Days, "Value", 0)
  495. wait(1)
  496. ChangeProp(Player.playerstats.Days, "Value", d)
  497. end)
  498. end
  499. end)
  500. end},
  501. {["NAME"] = "Days", ["FUNC"] = function(...)
  502. local tab = {...}
  503. local Players = GetPlayers(tab[1])
  504. ForEach(Players, function(Player)
  505. if Player and game.Workspace:findFirstChild(Player.Name) then
  506. ChangeProp(Player.playerstats.Days, "Value", tonumber(tab[2]))
  507. end
  508. end)
  509. end},
  510. }
  511. local DropIDs = {
  512. {["NAME"] = "AK-104", ["ID"] = "1037"},
  513. {["NAME"] = "WindscreenGlass", ["ID"] = "184"},
  514. {["NAME"] = "WaterBottle", ["ID"] = "209"},
  515. {["NAME"] = "Watch", ["ID"] = "3001"},
  516. {["NAME"] = "VehicleJack", ["ID"] = "3016"},
  517. {["NAME"] = "Vegetables", ["ID"] = "214"},
  518. {["NAME"] = "VS50", ["ID"] = "256"},
  519. {["NAME"] = "Uzi", ["ID"] = "2015"},
  520. {["NAME"] = "Ushanka", ["ID"] = "7014"},
  521. {["NAME"] = "USP45Ammo", ["ID"] = "26"},
  522. {["NAME"] = "USP45", ["ID"] = "2007"},
  523. {["NAME"] = "Twinkies", ["ID"] = "212"},
  524. {["NAME"] = "Tuna", ["ID"] = "4"},
  525. {["NAME"] = "TrinityBeret", ["ID"] = "7015"},
  526. {["NAME"] = "TomatoSoup", ["ID"] = "215"},
  527. {["NAME"] = "TM46", ["ID"] = "257"},
  528. {["NAME"] = "TEC9Ammo32", ["ID"] = "57"},
  529. {["NAME"] = "TEC9Ammo20", ["ID"] = "56"},
  530. {["NAME"] = "TEC9Ammo", ["ID"] = "20"},
  531. {["NAME"] = "TEC-9", ["ID"] = "2005"},
  532. {["NAME"] = "SurvivalPackTan", ["ID"] = "4009"},
  533. {["NAME"] = "SurvivalPackGrey", ["ID"] = "4010"},
  534. {["NAME"] = "SurvivalPackGreen", ["ID"] = "4011"},
  535. {["NAME"] = "SurvivalPackBrown", ["ID"] = "4012"},
  536. {["NAME"] = "Suppressor9", ["ID"] = "9007"},
  537. {["NAME"] = "Suppressor762", ["ID"] = "9010"},
  538. {["NAME"] = "Suppressor556", ["ID"] = "9009"},
  539. {["NAME"] = "Suppressor545", ["ID"] = "9011"},
  540. {["NAME"] = "Suppressor45", ["ID"] = "9008"},
  541. {["NAME"] = "Spam", ["ID"] = "6"},
  542. {["NAME"] = "SodaSprite", ["ID"] = "205"},
  543. {["NAME"] = "SodaRoot", ["ID"] = "207"},
  544. {["NAME"] = "SodaPepsi", ["ID"] = "7"},
  545. {["NAME"] = "SodaPepper", ["ID"] = "9"},
  546. {["NAME"] = "SodaMoxie", ["ID"] = "208"},
  547. {["NAME"] = "SodaDew", ["ID"] = "202"},
  548. {["NAME"] = "SodaCrush", ["ID"] = "201"},
  549. {["NAME"] = "SodaCoke", ["ID"] = "8"},
  550. {["NAME"] = "ShotgunAmmo", ["ID"] = "18"},
  551. {["NAME"] = "Shotgun", ["ID"] = "1002"},
  552. {["NAME"] = "ShadesGrey", ["ID"] = "8005"},
  553. {["NAME"] = "ShadesBlack", ["ID"] = "8001"},
  554. {["NAME"] = "ScrapMetal", ["ID"] = "183"},
  555. {["NAME"] = "Sabre", ["ID"] = "3014"},
  556. {["NAME"] = "SUSAT", ["ID"] = "9014"},
  557. {["NAME"] = "STANAGAmmo50", ["ID"] = "52"},
  558. {["NAME"] = "STANAGAmmo30", ["ID"] = "51"},
  559. {["NAME"] = "STANAGAmmo100", ["ID"] = "53"},
  560. {["NAME"] = "SKSAmmo", ["ID"] = "45"},
  561. {["NAME"] = "SKS", ["ID"] = "1018"},
  562. {["NAME"] = "SCAR-L", ["ID"] = "1022"},
  563. {["NAME"] = "RoadFlare", ["ID"] = "251"},
  564. {["NAME"] = "RevolverAmmo", ["ID"] = "25"},
  565. {["NAME"] = "Revolver", ["ID"] = "2006"},
  566. {["NAME"] = "ReinforcedWheel", ["ID"] = "189"},
  567. {["NAME"] = "Reflex", ["ID"] = "9003"},
  568. {["NAME"] = "RedChemlight", ["ID"] = "3020"},
  569. {["NAME"] = "RedBeret", ["ID"] = "7013"},
  570. {["NAME"] = "RawMeat", ["ID"] = "220"},
  571. {["NAME"] = "Ranger", ["ID"] = "7003"},
  572. {["NAME"] = "RamboClothingTop", ["ID"] = "5003"},
  573. {["NAME"] = "RamboClothingBottom", ["ID"] = "6003"},
  574. {["NAME"] = "Radio", ["ID"] = "3018"},
  575. {["NAME"] = "RPK", ["ID"] = "1034"},
  576. {["NAME"] = "Pringles", ["ID"] = "204"},
  577. {["NAME"] = "PilotGreen", ["ID"] = "7010"},
  578. {["NAME"] = "PilotBlack", ["ID"] = "7009"},
  579. {["NAME"] = "Pasta", ["ID"] = "5"},
  580. {["NAME"] = "Painkillers", ["ID"] = "12"},
  581. {["NAME"] = "PaddedClothingTop", ["ID"] = "5002"},
  582. {["NAME"] = "PaddedClothingBottom", ["ID"] = "6002"},
  583. {["NAME"] = "PPSHAmmo", ["ID"] = "46"},
  584. {["NAME"] = "PPSH", ["ID"] = "1019"},
  585. {["NAME"] = "PP19Ammo64", ["ID"] = "58"},
  586. {["NAME"] = "SmallCrate", ["ID"] = "38"},
  587. {["NAME"] = "OmniLight", ["ID"] = "3015"},
  588. {["NAME"] = "OTs-14", ["ID"] = "1036"},
  589. {["NAME"] = "NagantAmmo", ["ID"] = "17"},
  590. {["NAME"] = "Mosin-Nagant", ["ID"] = "1001"},
  591. {["NAME"] = "Model459Ammo14", ["ID"] = "59"},
  592. {["NAME"] = "Model 459", ["ID"] = "2013"},
  593. {["NAME"] = "Mk48Ammo", ["ID"] = "23"},
  594. {["NAME"] = "Mk 48", ["ID"] = "1005"},
  595. {["NAME"] = "Mk 23", ["ID"] = "2018"},
  596. {["NAME"] = "Mk 17", ["ID"] = "1031"},
  597. {["NAME"] = "MilitaryPackGrime", ["ID"] = "4013"},
  598. {["NAME"] = "MilitaryPackGrey", ["ID"] = "4015"},
  599. {["NAME"] = "MilitaryPackGreen", ["ID"] = "4014"},
  600. {["NAME"] = "MilitaryPackBlack", ["ID"] = "4016"},
  601. {["NAME"] = "MaverickAmmo", ["ID"] = "27"},
  602. {["NAME"] = "Maverick", ["ID"] = "1010"},
  603. {["NAME"] = "Material6", ["ID"] = "36"},
  604. {["NAME"] = "Material5", ["ID"] = "35"},
  605. {["NAME"] = "Material4", ["ID"] = "34"},
  606. {["NAME"] = "Material3", ["ID"] = "33"},
  607. {["NAME"] = "Material2", ["ID"] = "32"},
  608. {["NAME"] = "Material1", ["ID"] = "31"},
  609. {["NAME"] = "Matches", ["ID"] = "3005"},
  610. {["NAME"] = "MaskSpecOps", ["ID"] = "8009"},
  611. {["NAME"] = "MaskPhantom", ["ID"] = "8013"},
  612. {["NAME"] = "MaskMime", ["ID"] = "8008"},
  613. {["NAME"] = "MaskMercenary", ["ID"] = "8007"},
  614. {["NAME"] = "MaskHockey", ["ID"] = "8012"},
  615. {["NAME"] = "Map", ["ID"] = "3003"},
  616. {["NAME"] = "MakarovAmmo", ["ID"] = "16"},
  617. {["NAME"] = "Makarov", ["ID"] = "2003"},
  618. {["NAME"] = "MRE", ["ID"] = "10"},
  619. {["NAME"] = "MP5Ammo", ["ID"] = "29"},
  620. {["NAME"] = "MP5", ["ID"] = "1012"},
  621. {["NAME"] = "M9Ammo32", ["ID"] = "55"},
  622. {["NAME"] = "M9Ammo17", ["ID"] = "54"},
  623. {["NAME"] = "M9Ammo", ["ID"] = "19"},
  624. {["NAME"] = "M93R", ["ID"] = "2016"},
  625. {["NAME"] = "M9", ["ID"] = "2004"},
  626. {["NAME"] = "M870Ammo", ["ID"] = "28"},
  627. {["NAME"] = "M870", ["ID"] = "1011"},
  628. {["NAME"] = "M4A1Ammo", ["ID"] = "22"},
  629. {["NAME"] = "M4A1", ["ID"] = "1004"},
  630. {["NAME"] = "M3Ammo30", ["ID"] = "60"},
  631. {["NAME"] = "M3", ["ID"] = "1028"},
  632. {["NAME"] = "M249Ammo100", ["ID"] = "61"},
  633. {["NAME"] = "M249", ["ID"] = "1024"},
  634. {["NAME"] = "M1911Ammo", ["ID"] = "15"},
  635. {["NAME"] = "M1911", ["ID"] = "2002"},
  636. {["NAME"] = "M14Ammo50", ["ID"] = "64"},
  637. {["NAME"] = "M14Ammo30", ["ID"] = "63"},
  638. {["NAME"] = "M14Ammo20", ["ID"] = "62"},
  639. {["NAME"] = "M14", ["ID"] = "1016"},
  640. {["NAME"] = "M1014", ["ID"] = "1027"},
  641. {["NAME"] = "M1 Garand", ["ID"] = "1006"},
  642. {["NAME"] = "Lemonade", ["ID"] = "206"},
  643. {["NAME"] = "Laser", ["ID"] = "9006"},
  644. {["NAME"] = "Kobra", ["ID"] = "9004"},
  645. {["NAME"] = "Knife", ["ID"] = "3013"},
  646. {["NAME"] = "KethArmorTop", ["ID"] = "5011"},
  647. {["NAME"] = "KethArmorBottom", ["ID"] = "6011"},
  648. {["NAME"] = "JerryCanEmpty", ["ID"] = "186"},
  649. {["NAME"] = "JerryCan", ["ID"] = "185"},
  650. {["NAME"] = "HornRimmed", ["ID"] = "8006"},
  651. {["NAME"] = "Holo", ["ID"] = "9002"},
  652. {["NAME"] = "HikingPackWhite", ["ID"] = "4006"},
  653. {["NAME"] = "HikingPackOrange", ["ID"] = "4005"},
  654. {["NAME"] = "HikingPackBrown", ["ID"] = "4008"},
  655. {["NAME"] = "HikingPackBlue", ["ID"] = "4007"},
  656. {["NAME"] = "Hatchet", ["ID"] = "3011"},
  657. {["NAME"] = "HK417", ["ID"] = "1033"},
  658. {["NAME"] = "HK21", ["ID"] = "1032"},
  659. {["NAME"] = "GusArmorTop", ["ID"] = "5010"},
  660. {["NAME"] = "GusArmorBottom", ["ID"] = "6010"},
  661. {["NAME"] = "Grip", ["ID"] = "9005"},
  662. {["NAME"] = "GreenChemlight", ["ID"] = "3021"},
  663. {["NAME"] = "GarandAmmo", ["ID"] = "24"},
  664. {["NAME"] = "GPS", ["ID"] = "3006"},
  665. {["NAME"] = "G37", ["ID"] = "2017"},
  666. {["NAME"] = "G36K", ["ID"] = "1023"},
  667. {["NAME"] = "G3", ["ID"] = "1030"},
  668. {["NAME"] = "G18Ammo", ["ID"] = "41"},
  669. {["NAME"] = "G18", ["ID"] = "2011"},
  670. {["NAME"] = "FuelTank", ["ID"] = "182"},
  671. {["NAME"] = "Floodlight", ["ID"] = "37"},
  672. {["NAME"] = "FlashlightSurvival", ["ID"] = "3009"},
  673. {["NAME"] = "FlashlightOld", ["ID"] = "3008"},
  674. {["NAME"] = "FlashlightMilitary", ["ID"] = "3010"},
  675. {["NAME"] = "FlashlightAttachment", ["ID"] = "9012"},
  676. {["NAME"] = "Firewood", ["ID"] = "250"},
  677. {["NAME"] = "Firefighter", ["ID"] = "8004"},
  678. {["NAME"] = "FedorovAmmo", ["ID"] = "44"},
  679. {["NAME"] = "Fedorov", ["ID"] = "1017"},
  680. {["NAME"] = "Fedora", ["ID"] = "7004"},
  681. {["NAME"] = "FannyPackWhite", ["ID"] = "4002"},
  682. {["NAME"] = "FannyPackTan", ["ID"] = "4001"},
  683. {["NAME"] = "FannyPackPurple", ["ID"] = "4004"},
  684. {["NAME"] = "FannyPackBlue", ["ID"] = "4003"},
  685. {["NAME"] = "FAL", ["ID"] = "1029"},
  686. {["NAME"] = "Eyepatch", ["ID"] = "8003"},
  687. {["NAME"] = "Entrencher", ["ID"] = "3004"},
  688. {["NAME"] = "EngineParts", ["ID"] = "181"},
  689. {["NAME"] = "EnfieldAmmo", ["ID"] = "42"},
  690. {["NAME"] = "Enfield", ["ID"] = "1015"},
  691. {["NAME"] = "Detonator", ["ID"] = "3017"},
  692. {["NAME"] = "Crowbar", ["ID"] = "3012"},
  693. {["NAME"] = "CowlGreen", ["ID"] = "7002"},
  694. {["NAME"] = "CowlBlack", ["ID"] = "7001"},
  695. {["NAME"] = "Cowboy", ["ID"] = "7012"},
  696. {["NAME"] = "CookedMeat", ["ID"] = "221"},
  697. {["NAME"] = "Compass", ["ID"] = "3002"},
  698. {["NAME"] = "ClothingTopFalse", ["ID"] = "5000"},
  699. {["NAME"] = "ClothingBottomFalse", ["ID"] = "6000"},
  700. {["NAME"] = "CivilianClothingTop", ["ID"] = "5001"},
  701. {["NAME"] = "CivilianClothingBottom", ["ID"] = "6001"},
  702. {["NAME"] = "ChocolateBar", ["ID"] = "211"},
  703. {["NAME"] = "ChipsAhoy", ["ID"] = "213"},
  704. {["NAME"] = "ChickenSoup", ["ID"] = "216"},
  705. {["NAME"] = "CheezIts", ["ID"] = "203"},
  706. {["NAME"] = "CarWheel", ["ID"] = "180"},
  707. {["NAME"] = "CamoWoodlandsTop", ["ID"] = "5007"},
  708. {["NAME"] = "CamoWoodlandsBottom", ["ID"] = "6007"},
  709. {["NAME"] = "CamoUrbanTop", ["ID"] = "5005"},
  710. {["NAME"] = "CamoUrbanBottom", ["ID"] = "6005"},
  711. {["NAME"] = "CamoSpecialTop", ["ID"] = "5009"},
  712. {["NAME"] = "CamoSpecialBottom", ["ID"] = "6009"},
  713. {["NAME"] = "CamoSnowTop", ["ID"] = "5008"},
  714. {["NAME"] = "CamoSnowBottom", ["ID"] = "6008"},
  715. {["NAME"] = "CamoJungleTop", ["ID"] = "5006"},
  716. {["NAME"] = "CamoJungleBottom", ["ID"] = "6006"},
  717. {["NAME"] = "CamoDesertTop", ["ID"] = "5004"},
  718. {["NAME"] = "CamoDesertBottom", ["ID"] = "6004"},
  719. {["NAME"] = "CZ75Ammo", ["ID"] = "40"},
  720. {["NAME"] = "CZ75", ["ID"] = "2010"},
  721. {["NAME"] = "CCO", ["ID"] = "9001"},
  722. {["NAME"] = "CBJ-MS", ["ID"] = "2014"},
  723. {["NAME"] = "C4", ["ID"] = "255"},
  724. {["NAME"] = "BrimmedBrown", ["ID"] = "7007"},
  725. {["NAME"] = "BrimmedBlack", ["ID"] = "7008"},
  726. {["NAME"] = "Bowler", ["ID"] = "7005"},
  727. {["NAME"] = "BlueChemlight", ["ID"] = "3022"},
  728. {["NAME"] = "BloodBag", ["ID"] = "11"},
  729. {["NAME"] = "Binoculars", ["ID"] = "3007"},
  730. {["NAME"] = "Biker", ["ID"] = "7006"},
  731. {["NAME"] = "BeefStew", ["ID"] = "217"},
  732. {["NAME"] = "BeefJerky", ["ID"] = "210"},
  733. {["NAME"] = "Beans", ["ID"] = "3"},
  734. {["NAME"] = "Beanie", ["ID"] = "7011"},
  735. {["NAME"] = "BandanaSkull", ["ID"] = "8014"},
  736. {["NAME"] = "BandanaRenegade", ["ID"] = "8011"},
  737. {["NAME"] = "BandanaRed", ["ID"] = "8010"},
  738. {["NAME"] = "BandanaBlack", ["ID"] = "8002"},
  739. {["NAME"] = "BallisticUrban", ["ID"] = "7018"},
  740. {["NAME"] = "BallisticSpecOps", ["ID"] = "7019"},
  741. {["NAME"] = "BallisticJungle", ["ID"] = "7017"},
  742. {["NAME"] = "BallisticGlass", ["ID"] = "187"},
  743. {["NAME"] = "BallisticDesert", ["ID"] = "7016"},
  744. {["NAME"] = "Auto-5", ["ID"] = "1025"},
  745. {["NAME"] = "ArmorPlates", ["ID"] = "188"},
  746. {["NAME"] = "AN-94", ["ID"] = "1040"},
  747. {["NAME"] = "AKS-74U", ["ID"] = "1041"},
  748. {["NAME"] = "AKM", ["ID"] = "1038"},
  749. {["NAME"] = "AKAmmo75", ["ID"] = "67"},
  750. {["NAME"] = "AKAmmo45", ["ID"] = "66"},
  751. {["NAME"] = "AKAmmo30", ["ID"] = "65"},
  752. {["NAME"] = "AK47Ammo75", ["ID"] = "50"},
  753. {["NAME"] = "AK47Ammo40", ["ID"] = "49"},
  754. {["NAME"] = "AK47Ammo30", ["ID"] = "48"},
  755. {["NAME"] = "AK-74", ["ID"] = "1039"},
  756. {["NAME"] = "AK-47", ["ID"] = "1003"},
  757. {["NAME"] = "AK-12", ["ID"] = "1035"},
  758. {["NAME"] = "ACOG", ["ID"] = "9013"},
  759. {["NAME"] = "LargeCrate", ["ID"] = "39"},
  760. {["NAME"] = "PP-19", ["ID"] = "1026"},
  761. }
  762.  
  763. --//REMOTE FUNCTIONS
  764. ChangeVal = function(instance, new_val)
  765. if pass ~= 0 then
  766. game.Lighting.Remote.ChangeValue:FireServer(pass, instance, new_val)
  767. else
  768. warn("Failed to aquire the passcode. Process aborted.")
  769. end
  770. end
  771.  
  772. --[[ChangeProp = function(instance, property, new_val)
  773. print(pass)
  774. if pass ~= 0 then
  775. game.Lighting.Remote.ChangeProperty:FireServer(pass, instance, property, new_val)
  776. else
  777. warn("Failed to aquire the passcode. Process aborted.")
  778. end
  779. end]]--
  780.  
  781. CreateVal = function(parent, name, new_val)
  782. game.Lighting.Remote.CreateValue:FireServer(name, parent, new_val)
  783. print(parent:findFirstChild(name) and "found" or "missing")
  784. end
  785.  
  786. Damage = function(Player, Amount)
  787. game.Lighting.Remote.AddDamage:FireServer(Player.Character.Humanoid, Amount)
  788. end
  789.  
  790. Heal = function(Player, Amount)
  791. game.Lighting.Remote.AddHealth:FireServer(Player.Character.Humanoid, Amount)
  792. end
  793.  
  794. AddItem = function(Slot, ID)
  795. game.Lighting.Remote.AddObject:FireServer(Slot, ID)
  796. end
  797.  
  798. DropItem = function(Slot, oID)
  799. game.Lighting.Remote.DropItem:FireServer(Slot, oID)
  800. end
  801.  
  802. Destroy = function(instance)
  803. game.Lighting.Remote.Destruct:FireServer(instance)
  804. end
  805.  
  806. SendMsg = function(Players, Col, String)
  807. local Players = GetPlayers(Players)
  808. ForEach(Players, function(Player)
  809. game.Lighting.Remote.SendMessage:FireServer(Player, Col, String)
  810. end)
  811. end
  812.  
  813. GiveCredits = function(Int)
  814. game.Lighting.Remote.UpdateCredits:FireServer(tonumber(Int))
  815. end
  816.  
  817. --snip new tp method
  818.  
  819.  
  820. --\\REMOTE FUNCTION
  821.  
  822. --[[GetCode = function()
  823. for i = 99999, 1, -1 do
  824. pass = i
  825. game.Lighting.Remote.ChangeProperty:FireServer(pass, game.Workspace.messages, "Value", tostring(i))
  826. if game.Workspace.messages.Value == tostring(i) then
  827. print(i)
  828. break
  829. end
  830. end
  831. end]]--
  832.  
  833. GenerateList = function(Data, Parent)
  834. for i,v in pairs(Parent:GetChildren()) do
  835. if v ~= Template then
  836. v:Destroy()
  837. end
  838. end
  839. for i = 1, #Data do
  840. local YSize = 13
  841. local YPos = ((i * YSize) - YSize)
  842. local newLabel = Template:Clone()
  843.  
  844. if Parent.Parent.Name == "ItemSpawn" then
  845. newLabel.Name = Data[i].NAME
  846. newLabel.Text = Data[i].NAME
  847. else
  848. newLabel.Name = Data[i].Name
  849. newLabel.Text = Data[i].Name
  850. end
  851. newLabel.Parent = Parent
  852. newLabel.Visible = true
  853. newLabel.Position = UDim2.new(0, 2, 0, YPos + 2)
  854.  
  855. Parent.CanvasSize = UDim2.new(0, 0, 0, YPos + YSize + 4)
  856.  
  857. newLabel.MouseButton1Click:connect(function()
  858. if Parent.Name == "ItemList" then
  859. if Parent.Parent.Name == "ItemSpawn" then
  860. Parent.Parent.Item.Box.Text = Data[i].NAME
  861. GenerateList(DropIDs, Parent)
  862. else
  863. Parent.Parent.Item.Box.Text = Data[i].Name
  864. GenerateList(game.Lighting.LootDrops:GetChildren(), Parent)
  865. Parent.Parent.Count.Box.Text = "1"
  866. end
  867. elseif Parent.Name == "PlayerList" then
  868. if Parent.Parent.Name == "Vehicle" then
  869. Parent.Parent.TPVehicle.Box.Text = Data[i].Name
  870. else
  871. Parent.Parent.Player.Box.Text = Data[i].Name
  872. end
  873. elseif Parent.Name == "ModeList" then
  874. Parent.Parent.Mode.Box.Text = Data[i].Name
  875. elseif Parent.Name == "StatList" then
  876. Parent.Parent.Stat.Box.Text = Data[i].Name
  877. end
  878. end)
  879. end
  880. end
  881.  
  882. GenerateList(game.Lighting.LootDrops:GetChildren(), LF.Frame.ItemList)
  883. GenerateList(DropIDs, SF.ItemSpawn.ItemList)
  884.  
  885. GenerateList(game.Players:GetChildren(), SF.Player.Frame.PlayerList)
  886. GenerateList(game.Players:GetChildren(), SF.Player.StatChange.PlayerList)
  887. GenerateList(game.Players:GetChildren(), SF.Vehicle.PlayerList)
  888. GenerateList(game.Players:GetChildren(), SF.Misc.ServerMsg.PlayerList)
  889.  
  890. game.Players.PlayerAdded:connect(function(obj)
  891. GenerateList(game.Players:GetChildren(), SF.Player.Frame.PlayerList)
  892. GenerateList(game.Players:GetChildren(), SF.Player.StatChange.PlayerList)
  893. GenerateList(game.Players:GetChildren(), SF.Vehicle.PlayerList)
  894. GenerateList(game.Players:GetChildren(), SF.Misc.ServerMsg.PlayerList)
  895. end)
  896.  
  897. game.Players.PlayerRemoving:connect(function(obj)
  898. GenerateList(game.Players:GetChildren(), SF.Player.Frame.PlayerList)
  899. GenerateList(game.Players:GetChildren(), SF.Player.StatChange.PlayerList)
  900. GenerateList(game.Players:GetChildren(), SF.Vehicle.PlayerList)
  901. GenerateList(game.Players:GetChildren(), SF.Misc.ServerMsg.PlayerList)
  902. end)
  903.  
  904. spawn(function()
  905. for i,v in pairs(PlayerFr.Frame.ModeList:GetChildren()) do
  906. if v ~= Template then
  907. v:Destroy()
  908. end
  909. end
  910. for i = 1, #PlayerModes do
  911. local YSize = 13
  912. local YPos = ((i * YSize) - YSize)
  913. local newLabel = Template:Clone()
  914.  
  915. newLabel.Name = PlayerModes[i].NAME
  916. newLabel.Text = PlayerModes[i].NAME
  917. newLabel.Parent = PlayerFr.Frame.ModeList
  918. newLabel.Visible = true
  919. newLabel.Position = UDim2.new(0, 2, 0, YPos + 2)
  920.  
  921. PlayerFr.Frame.ModeList.CanvasSize = UDim2.new(0, 0, 0, YPos + YSize + 4)
  922.  
  923. newLabel.MouseButton1Click:connect(function()
  924. PlayerFr.Frame.Mode.Box.Text = PlayerModes[i].NAME
  925. end)
  926. end
  927. end)
  928.  
  929. spawn(function()
  930. for i,v in pairs(LF.Frame.LoadOutList:GetChildren()) do
  931. if v ~= Template then
  932. v:Destroy()
  933. end
  934. end
  935. for i = 1, #LoadOuts do
  936. local YSize = 13
  937. local YPos = ((i * YSize) - YSize)
  938. local newLabel = Template:Clone()
  939.  
  940. newLabel.Name = LoadOuts[i].NAME
  941. newLabel.Text = LoadOuts[i].NAME
  942. newLabel.Parent = LF.Frame.LoadOutList
  943. newLabel.Visible = true
  944. newLabel.Position = UDim2.new(0, 2, 0, YPos + 2)
  945.  
  946. LF.Frame.LoadOutList.CanvasSize = UDim2.new(0, 0, 0, YPos + YSize + 4)
  947.  
  948. newLabel.MouseButton1Click:connect(function()
  949. PlayerFr.Frame.Item.Box.Text = LoadOuts[i].NAME
  950. end)
  951. end
  952. end)
  953.  
  954. spawn(function()
  955. for i,v in pairs(PlayerFr.StatChange.StatList:GetChildren()) do
  956. if v ~= Template then
  957. v:Destroy()
  958. end
  959. end
  960. for i = 1, #Stats do
  961. local YSize = 13
  962. local YPos = ((i * YSize) - YSize)
  963. local newLabel = Template:Clone()
  964.  
  965. newLabel.Name = Stats[i].NAME
  966. newLabel.Text = Stats[i].NAME
  967. newLabel.Parent = PlayerFr.StatChange.StatList
  968. newLabel.Visible = true
  969. newLabel.Position = UDim2.new(0, 2, 0, YPos + 2)
  970.  
  971. PlayerFr.StatChange.StatList.CanvasSize = UDim2.new(0, 0, 0, YPos + YSize + 4)
  972.  
  973. newLabel.MouseButton1Click:connect(function()
  974. PlayerFr.StatChange.Stat.Box.Text = Stats[i].NAME
  975. end)
  976. end
  977. end)
  978.  
  979. SpawnItem = function(String)
  980. local Angle = math.random(1, 63) / 10
  981. local Drop = game.Lighting.LootDrops[String]:Clone()
  982. Drop.Parent = game.Workspace
  983. Drop:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(6 * math.cos(Angle), 0, 6 * math.sin(Angle)))
  984. end
  985.  
  986. ServerSpawnItem = function(String)
  987. for i, v in pairs(DropIDs) do
  988. if String:lower() == DropIDs[i].NAME:lower() then
  989. wait(1)
  990. AddItem(game.Players.LocalPlayer.playerstats.slots.slot20, tonumber(DropIDs[i].ID))
  991. game.Players.LocalPlayer.playerstats.slots.slot20:WaitForChild("ObjectID")
  992. DropItem(game.Players.LocalPlayer.playerstats.slots.slot20, game.Players.LocalPlayer.playerstats.slots.slot20.ObjectID)
  993. local ev
  994. ev = game.Workspace.DropLoot.ChildAdded:connect(function(obj)
  995. if obj.Name == String then
  996. if not obj:findFirstChild("ObjectID") then
  997. CreateVal(obj, game.Lighting:findFirstChild(String).ObjectID.Value)
  998. end
  999. else
  1000. Destroy(obj)
  1001. end
  1002. end)
  1003. ev:disconnect()
  1004. end
  1005. end
  1006. end
  1007.  
  1008.  
  1009. ForEach = function(Base, Function)
  1010. for Index, Value in pairs (Base) do
  1011. Function(Value, Index)
  1012. end
  1013. end
  1014.  
  1015. GetPlayers = function(String) -- note 2 self: snipped this from my cmdscript
  1016. local UsersCalled = {}
  1017. for newString in String:gmatch('([^,]+)') do -- thanks scleratis
  1018. if newString:lower() == "me" then
  1019. table.insert(UsersCalled, game.Players.LocalPlayer)
  1020. elseif newString:lower() == "all" then
  1021. ForEach(game.Players:children(), function(Player)
  1022. table.insert(UsersCalled, Player)
  1023. end)
  1024. elseif newString:lower() == "others" then
  1025. ForEach(game.Players:children(), function(Player)
  1026. if Player ~= game.Players.LocalPlayer then
  1027. table.insert(UsersCalled, Player)
  1028. end
  1029. end)
  1030. elseif newString:lower() == "random" then
  1031. table.insert(UsersCalled, game.Players:children()[math.random(#game.Players:children())])
  1032. else
  1033. for i,v in pairs(game.Players:children()) do
  1034. if v.Name:lower():sub(1, #newString) == newString:lower() then
  1035. table.insert(UsersCalled, v)
  1036. end
  1037. end
  1038. end
  1039. end
  1040. return UsersCalled
  1041. end
  1042.  
  1043. AdjustPlr = function(Table, Forward)
  1044. local Plrs = Table
  1045.  
  1046. if Forward == true then
  1047. CurrPlrIndex = CurrPlrIndex + 1
  1048. else
  1049. CurrPlrIndex = CurrPlrIndex - 1
  1050. if CurrPlrIndex < 1 then
  1051. CurrPlrIndex = game.Players.NumPlrs
  1052. end
  1053. end
  1054.  
  1055. if Plrs[CurrPlrIndex] ~= nil then
  1056. CurrPlr = Plrs[CurrPlrIndex]
  1057. game.Workspace.CurrentCamera.CameraSubject = CurrPlr.Character.Humanoid
  1058. --if Plrs[CurrPlrIndex] ~= game.Players.LocalPlayer then
  1059. spawn(function()
  1060. local index = CurrPlrIndex
  1061. while CurrPlrIndex == index do
  1062. wait()
  1063.  
  1064. local health, maxhealth
  1065. if game.Workspace:findFirstChild(CurrPlr.Name) then
  1066. health = CurrPlr.Character.Humanoid.Health
  1067. maxhealth = CurrPlr.Character.Humanoid.MaxHealth
  1068. end
  1069.  
  1070. pInfo.Bar.Size = UDim2.new(health / maxhealth, 0, 1, 0)
  1071. pInfo.Health.Text = tostring(math.floor(health))
  1072. pInfo.pName.Text = CurrPlr.Name
  1073. end
  1074. end)
  1075. --end
  1076. elseif Plrs[CurrPlrIndex] == nil then
  1077. Plrs[CurrPlrIndex] = NumPlrs
  1078. CurrPlr = Plrs[CurrPlrIndex]
  1079. game.Workspace.CurrentCamera.CameraSubject = Plrs[CurrPlrIndex].Character.Humanoid
  1080. end
  1081.  
  1082. end
  1083.  
  1084. AdjustVeh = function(Table, Forward)
  1085. local Vehs = Table
  1086.  
  1087. if Forward == true then
  1088. CurrVehIndex = CurrVehIndex + 1
  1089. else
  1090. CurrVehIndex = CurrVehIndex - 1
  1091. end
  1092.  
  1093. if Vehs[CurrVehIndex] ~= nil then
  1094. CurrVeh = Vehs[CurrVehIndex]
  1095. elseif Vehs[CurrVehIndex] == nil then
  1096. Vehs[CurrVehIndex] = #Vehs
  1097. CurrVeh = Vehs[CurrVehIndex]
  1098. end
  1099.  
  1100. VehicleFr.CurrentVehicle.Text = CurrVeh.Name
  1101. end
  1102.  
  1103. LocalSpawn.Spawn.MouseButton1Click:connect(function()
  1104. local Amount, Count = 0, 0
  1105. if LocalSpawn.Count.Box.Text == "" then
  1106. Amount = 1
  1107. else
  1108. Amount = tonumber(LocalSpawn.Count.Box.Text)
  1109. end
  1110. repeat
  1111. wait()
  1112. Count = Count + 1
  1113. SpawnItem(LocalSpawn.Item.Box.Text)
  1114. until
  1115. Count == Amount
  1116.  
  1117. LocalSpawn.Count.Box.Text = ""
  1118. LocalSpawn.Item.Box.Text = ""
  1119. end)
  1120.  
  1121. ServerSpawn.Spawn.MouseButton1Click:connect(function()
  1122. local Amount, Count = 0, 0
  1123. if ServerSpawn.Count.Box.Text == "" then
  1124. Amount = 1
  1125. else
  1126. Amount = tonumber(ServerSpawn.Count.Box.Text)
  1127. end
  1128. if Amount > 15 then
  1129. Amount = 15
  1130. end
  1131. repeat
  1132. wait()
  1133. Count = Count + 1
  1134. ServerSpawnItem(ServerSpawn.Item.Box.Text)
  1135. until
  1136. Count == Amount
  1137.  
  1138. ServerSpawn.Count.Box.Text = ""
  1139. ServerSpawn.Item.Box.Text = ""
  1140. end)
  1141.  
  1142. PlayerFr.Frame.Execute.MouseButton1Click:connect(function()
  1143. for i, v in pairs(PlayerModes) do
  1144. if PlayerModes[i].NAME == PlayerFr.Frame.Mode.Box.Text then
  1145. PlayerModes[i].FUNC(PlayerFr.Frame.Player.Box.Text)
  1146. end
  1147. end
  1148. end)
  1149.  
  1150. PlayerFr.StatChange.Btn.MouseButton1Click:connect(function()
  1151. for i, v in pairs(Stats) do
  1152. if Stats[i].NAME == PlayerFr.StatChange.Stat.Box.Text then
  1153. Stats[i].FUNC(PlayerFr.StatChange.Player.Box.Text, PlayerFr.StatChange.Count.oldbox.Text)
  1154. end
  1155. end
  1156. end)
  1157.  
  1158. ServerSpawn.SearchBox.FocusLost:connect(function(enterPressed)
  1159. if ServerSpawn.SearchBox.Text == "" or ServerSpawn.SearchBox.Text == " " then
  1160. GenerateList(DropIDs, ServerSpawn.ItemList)
  1161. ServerSpawn.SearchBox.Text = "Click here to search"
  1162. else
  1163. local temp_table = {}
  1164. for i, v in pairs(DropIDs) do
  1165. if DropIDs[i].NAME:lower():find(ServerSpawn.SearchBox.Text) then
  1166. table.insert(temp_table, #temp_table + 1, DropIDs[i])
  1167. end
  1168. end
  1169. GenerateList(temp_table, ServerSpawn.ItemList)
  1170. ServerSpawn.SearchBox.Text = "Click here to search"
  1171. end
  1172. end)
  1173.  
  1174. LocalSpawn.SearchBox.FocusLost:connect(function(enterPressed)
  1175. if LocalSpawn.SearchBox.Text == "" or LocalSpawn.SearchBox.Text == " " then
  1176. GenerateList(game.Lighting.LootDrops:GetChildren(), LocalSpawn.ItemList)
  1177. LocalSpawn.SearchBox.Text = "Click here to search"
  1178. else
  1179. local temp_table = {}
  1180. for i, v in pairs(game.Lighting.LootDrops:GetChildren()) do
  1181. if v.Name:lower():find(LocalSpawn.SearchBox.Text) then
  1182. table.insert(temp_table, #temp_table + 1, v)
  1183. end
  1184. end
  1185. GenerateList(temp_table, LocalSpawn.ItemList)
  1186. LocalSpawn.SearchBox.Text = "Click here to search"
  1187. end
  1188. end)
  1189.  
  1190. VehicleFr.Next.MouseButton1Click:connect(function()
  1191. AdjustVeh(game.Workspace.Vehicles:GetChildren(), true)
  1192. end)
  1193.  
  1194. VehicleFr.Prev.MouseButton1Click:connect(function()
  1195. AdjustVeh(game.Workspace.Vehicles:GetChildren(), false)
  1196. end)
  1197.  
  1198. pInfo.Next.MouseButton1Click:connect(function()
  1199. AdjustPlr(game.Players:GetChildren(), true)
  1200. end)
  1201.  
  1202. pInfo.Reset.MouseButton1Click:connect(function()
  1203. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  1204. end)
  1205.  
  1206. pInfo.Previous.MouseButton1Click:connect(function()
  1207. AdjustPlr(game.Players:GetChildren(), false)
  1208. end)
  1209.  
  1210. for _, v in pairs(SF.Misc.ServerMsg.Col:GetChildren()) do
  1211. spawn(function()
  1212. v.MouseButton1Click:connect(function()
  1213. CurrMsgCol = v.Name
  1214. for _, b in pairs(SF.Misc.ServerMsg.Col:GetChildren()) do
  1215. if b ~= v then
  1216. b.Text = ""
  1217. else
  1218. b.Text = "X"
  1219. end
  1220. end
  1221. end)
  1222. end)
  1223. end
  1224.  
  1225. SF.Misc.ServerMsg.Btn.MouseButton1Click:connect(function()
  1226. SendMsg(SF.Misc.ServerMsg.Player.Box.Text, CurrMsgCol, SF.Misc.ServerMsg.Msg.Box.Text)
  1227. end)
  1228.  
  1229. SF.Misc.Creds.Box.FocusLost:connect(function(enterPressed)
  1230. if enterPressed then
  1231. GiveCredits(SF.Misc.Creds.Box.Text)
  1232. end
  1233. end)
  1234.  
  1235. Gui.Toggle.MouseButton1Down:connect(function()
  1236. BF.Visible = not BF.Visible
  1237. pInfo.Visible = BF.Visible
  1238. Gui.Toggle.Text = (BF.Visible and "-" or "+")
  1239. end)
  1240.  
  1241. for _, v in pairs(VehicleFr:GetChildren()) do
  1242. if v.Name == "TPVehicle" or v:findFirstChild("Btn") then
  1243. spawn(function()
  1244. v.Btn.MouseButton1Click:connect(function()
  1245. if v:IsA("TextLabel") and v.Name ~= "CurrentVehicle" then
  1246. for a, b in pairs(VehicleModes) do
  1247. if VehicleModes[a].NAME == v.Name then
  1248. if v.Name ~= "ResetSpeed" and v.Name ~= "TPVehicle" and v.Name ~= "ExplVehicle" then
  1249. if v.Btn.Text == "OFF" then
  1250. v.Btn.Text = "ON"
  1251. v.Btn.BackgroundColor3 = OnCol
  1252. else
  1253. v.Btn.Text = "OFF"
  1254. v.Btn.BackgroundColor3 = OffCol
  1255. end
  1256. end
  1257. if v.Name == "GodVehicle" then
  1258. if v.Btn.Text == "OFF" then
  1259. for h, c in pairs(VehicleModes) do
  1260. if VehicleModes[h].NAME == "UnGodVehicle" then
  1261. VehicleModes[h].FUNC(game.Workspace.Vehicles:GetChildren()[CurrVehIndex], VehicleFr.TPVehicle.Box.Text)
  1262. end
  1263. end
  1264. elseif v.Btn.Text == "ON" then
  1265. for h, c in pairs(VehicleModes) do
  1266. if VehicleModes[h].NAME == "GodVehicle" then
  1267. VehicleModes[h].FUNC(game.Workspace.Vehicles:GetChildren()[CurrVehIndex], VehicleFr.TPVehicle.Box.Text)
  1268. end
  1269. end
  1270. end
  1271. else
  1272. VehicleModes[a].FUNC(game.Workspace.Vehicles:GetChildren()[CurrVehIndex], VehicleFr.TPVehicle.Box.Text)
  1273. end
  1274. end
  1275. end
  1276. end
  1277. end)
  1278. end)
  1279. elseif v.Name ~= "TPVehicle" and v:findFirstChild("Box") then
  1280. spawn(function()
  1281. v.Box.FocusLost:connect(function(enterPressed)
  1282. if enterPressed then
  1283. for a, b in pairs(VehicleModes) do
  1284. if VehicleModes[a].NAME == v.Name then
  1285. VehicleModes[a].FUNC(game.Workspace.Vehicles:GetChildren()[CurrVehIndex], v.Box.Text)
  1286. end
  1287. end
  1288. end
  1289. end)
  1290. end)
  1291. end
  1292. end
  1293.  
  1294. for _, v in pairs(LocalStats:GetChildren()) do
  1295. spawn(function()
  1296. v.Btn.MouseButton1Click:connect(function()
  1297. if v.Name ~= "Stamina" then
  1298. for a, b in pairs(LPModes) do
  1299. if LPModes[a].NAME == v.Name then
  1300. LPModes[a].FUNC()
  1301. end
  1302. end
  1303. wait()
  1304. if Bools[v.Name] == false then
  1305. v.Btn.Text = "OFF"
  1306. v.Btn.BackgroundColor3 = OffCol
  1307. v.Btn.BorderColor3 = bOffCol
  1308. elseif Bools[v.Name] == true then
  1309. v.Btn.Text = "ON"
  1310. v.Btn.BackgroundColor3 = OnCol
  1311. v.Btn.BorderColor3 = bOnCol
  1312. end
  1313. end
  1314. end)
  1315. end)
  1316. end
  1317.  
  1318. spawn(function()
  1319. for _, v in pairs(Btns:GetChildren()) do
  1320. v.MouseButton1Click:connect(function()
  1321. for _, b in pairs(Btns:GetChildren()) do
  1322. if b ~= v then
  1323. b.BackgroundColor3 = OffCol
  1324. b.BorderColor3 = bOffCol
  1325. else
  1326. b.BackgroundColor3 = OnCol
  1327. b.BorderColor3 = bOnCol
  1328. end
  1329. end
  1330. for _, b in pairs(v.Parent.Parent:GetChildren()) do
  1331. if b:IsA("Frame") and b.Name ~= "Buttons" and b.Name ~= "Line" and b.Name ~= v.Name then
  1332. b.Visible = false
  1333. elseif b.Name == v.Name then
  1334. b.Visible = true
  1335. end
  1336. end
  1337. end)
  1338. end
  1339. end)
  1340.  
  1341. spawn(function()
  1342. for _, v in pairs(sBtns:GetChildren()) do
  1343. v.MouseButton1Click:connect(function()
  1344. for _, b in pairs(sBtns:GetChildren()) do
  1345. if b ~= v then
  1346. b.BackgroundColor3 = OffCol
  1347. b.BorderColor3 = bOffCol
  1348. else
  1349. b.BackgroundColor3 = OnCol
  1350. b.BorderColor3 = bOnCol
  1351. end
  1352. end
  1353. for _, b in pairs(v.Parent.Parent:GetChildren()) do
  1354. if b:IsA("Frame") and b.Name ~= "Buttons" and b.Name ~= "Line" and b.Name ~= v.Name then
  1355. b.Visible = false
  1356. elseif b.Name == v.Name then
  1357. b.Visible = true
  1358. end
  1359. end
  1360. end)
  1361. end
  1362. end)
Add Comment
Please, Sign In to add comment