Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if _G.DisableApocRapingGUI then
- _G.DisableApocRapingGUI()
- end
- local g = game:GetObjects("rbxassetid://724775050")[1]
- g.Name = "ApocRapingGUI"
- g.Parent = game.CoreGui
- local Disabled = false
- function _G.DisableApocRapingGUI()
- Disabled=true
- g:destroy()
- end
- -- Credit to whoever found this
- local agaghe = function(str)
- local out = {}
- local z = ""
- for word in string.gmatch(str, "%w%w%w%w") do
- for i,c in pairs({string.byte(word, 1, 4)}) do
- c = c - 48
- for place = 1, 6 do
- out[(i - 1) * 6 + place] = (out[(i - 1) * 6 + place] or 0) + (c) % 2
- c = math.floor((c) / 2)
- end
- end
- end
- for i = 2, #out, 2 do
- z = string.reverse(z) .. string.char(97 + out[i] + out[i - 1] * 2)
- end
- local stack = #str
- local out = ""
- for word in string.gmatch(str, "%w%w%w%w") do
- out = out .. string.char(48 + tonumber(table.concat({string.byte(word, 1, 4)})) % 74)
- end
- return out
- end
- local getkey = function()
- return agaghe(game:GetService("Geometry"):FindFirstChild("nonononononono").Value)
- end
- local head = g:WaitForChild"Header"
- local main = head:WaitForChild"Main"
- local tabs = main:WaitForChild"Tabs"
- local maindisp = main:WaitForChild"MainDisplay"
- table.foreach(tabs:children(),function(i,v)
- if v:IsA"TextButton" then
- v.MouseButton1Down:connect(function()
- if maindisp:FindFirstChild(v.Name) then
- for _,md in next, maindisp:children() do md.Visible = false end
- maindisp[v.Name].Visible = true
- for _,md in next, tabs:children() do md.BackgroundColor3 = Color3.new(255/255,0/255,0/255) md.BorderColor3 = Color3.new(136/255,0/255,0/255) end
- v.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
- v.BorderColor3 = Color3.new(0/255,136/255,0/255)
- end
- end)
- end
- end)
- local Apoc
- Apoc = setmetatable({},{__index = function(s,i)
- if i == "Kill" then
- return function(plr)
- if plr and plr.Character then
- for _,v in next, plr.Character:children() do
- if v:IsA"Humanoid" then
- game.Lighting.Remote.AddHealth:FireServer(getkey(),v,-v.MaxHealth)
- end
- end
- end
- end
- elseif i == "Heal" then
- return function(plr)
- if plr and plr.Character then
- for _,v in next, plr.Character:children() do
- if v:IsA"Humanoid" then
- game.Lighting.Remote.AddHealth:FireServer(getkey(),v,v.MaxHealth)
- end
- end
- end
- end
- elseif i == "ChangeParent" then
- return function(obj,new_parent)
- game.Lighting.Remote.ChangeParent:FireServer(getkey(),obj,new_parent)
- end
- elseif i == "HealthSet" then
- return function(prop,new_val)
- game.Lighting.Remote.HealthSet:FireServer(getkey(),prop,new_val)
- end
- elseif i == "ChangeValue" then
- return function(obj,prop,new_val)
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),obj,prop,new_val)
- end
- elseif i == "God" then
- return function(plr)
- if plr and plr.Character then
- for _,v in next, plr.Character:children() do
- if v:IsA"Humanoid" then
- if v.MaxHealth ~= math.huge then
- local abc = game.Players.LocalPlayer.Character.Humanoid
- Apoc.ChangeParent(abc, plr.Character)
- Apoc.ChangeParent(v, game.Players.LocalPlayer.Character)
- wait()
- Apoc.HealthSet("MaxHealth",math.huge)
- Apoc.HealthSet("Health",math.huge)
- wait()
- Apoc.ChangeParent(abc, game.Players.LocalPlayer.Character)
- Apoc.ChangeParent(v, plr.Character)
- wait()
- Apoc.ChangeValue(plr.playerstats.Hunger, 10000)
- Apoc.ChangeValue(plr.playerstats.Thirst, 10000)
- end
- end
- end
- end
- end
- elseif i == "ResetHP" then
- return function(plr)
- if plr and plr.Character then
- for _,v in next, plr.Character:children() do
- if v:IsA"Humanoid" then
- local abc = game.Players.LocalPlayer.Character.Humanoid
- Apoc.ChangeParent(abc, plr.Character)
- Apoc.ChangeParent(v, game.Players.LocalPlayer.Character)
- wait()
- Apoc.HealthSet("MaxHealth",100)
- Apoc.HealthSet("Health",100)
- wait()
- Apoc.ChangeParent(abc, game.Players.LocalPlayer.Character)
- Apoc.ChangeParent(v, plr.Character)
- wait()
- Apoc.ChangeValue(plr.playerstats.Hunger, 100)
- Apoc.ChangeValue(plr.playerstats.Thirst, 100)
- end
- end
- end
- end
- elseif i == "Message" then
- return function(plr,clr,msg)
- game.Lighting.Remote.SendMessage:FireServer(plr, clr, msg)
- end
- end
- end})
- local Real = setmetatable({},{__index = function(s,i) return getfenv()[i] end})
- -- PLAYER COMMANDS
- local SelectedPlayers = {
- PLAYER = {},
- SKIN = {},
- SPAWNING = {}
- }
- local SelectedColor = "Red"
- table.foreach(maindisp.PLAYER.COLOR:children(),function(i,v)
- if v:IsA"TextButton" then
- v.MouseButton1Down:connect(function()
- for _,md in next, maindisp.PLAYER.COLOR:children() do md.BackgroundColor3 = Color3.new(1,0,0) end
- v.BackgroundColor3 = Color3.new(0,1,0)
- SelectedColor = v.Text
- end)
- end
- end)
- function UPDATEPLRLIST(p,tab)
- local last = 0
- local t = p.Template
- for i,v in next, p:children() do
- if v.Name ~= "Template" then v:destroy() end
- end
- for i,v in next, game.Players:players() do
- local obj = v
- local b = t:Clone()
- b.Parent = p
- b.Position = UDim2.new(0,0,0,last)
- last=last+25
- p.CanvasSize = UDim2.new(0,0,0,last)
- b.Text = v.Name
- b.Visible = true
- b.Name = v.Name
- if tab[v] then
- b.BackgroundColor3 = Color3.new(0,1,0)
- else
- b.BackgroundColor3 = Color3.new(1,0,0)
- end
- b.MouseButton1Down:connect(function()
- if tab[v] then
- tab[v]=nil
- else
- tab[v]=true
- end
- end)
- end
- end
- maindisp.PLAYER.SELECTALL.MouseButton1Down:connect(function()
- for i,v in next, game.Players:players() do
- SelectedPlayers.PLAYER[v]=true
- end
- end)
- maindisp.PLAYER.DESELECTALL.MouseButton1Down:connect(function()
- SelectedPlayers.PLAYER={}
- end)
- maindisp.PLAYER.SELECTOTHER.MouseButton1Down:connect(function()
- SelectedPlayers.PLAYER={}
- for i,v in next, game.Players:players() do
- if v ~= game.Players.LocalPlayer then SelectedPlayers.PLAYER[v]=true end
- end
- end)
- maindisp.PLAYER.SELECTLP.MouseButton1Down:connect(function()
- SelectedPlayers.PLAYER[game.Players.LocalPlayer]=true
- end)
- maindisp.PLAYER.SELECTGRP.MouseButton1Down:connect(function()
- maindisp.PLAYER.SELECTGRP.Text = "Not finished yet!"
- wait(4)
- maindisp.PLAYER.SELECTGRP.Text = "SELECT GROUP"
- end)
- maindisp.PLAYER.KILL.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.PLAYER do
- if v ~= nil and v.Parent ~= nil then
- Apoc.Kill(v)
- end
- end
- end)
- maindisp.PLAYER.HEAL.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.PLAYER do
- if v ~= nil and v.Parent ~= nil then
- Apoc.Heal(v)
- end
- end
- end)
- maindisp.PLAYER.GOD.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.PLAYER do
- if v ~= nil and v.Parent ~= nil then
- Apoc.God(v)
- wait(.2)
- end
- end
- end)
- maindisp.PLAYER.UNGOD.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.PLAYER do
- if v ~= nil and v.Parent ~= nil then
- Apoc.ResetHP(v)
- wait(.2)
- end
- end
- end)
- maindisp.PLAYER.KICK.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.PLAYER do
- if v ~= nil and v.Parent ~= nil and v ~= game.Players.LocalPlayer then
- Real._G.Destruct(v)
- end
- end
- end)
- maindisp.PLAYER.GOTO.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.PLAYER do
- if v ~= nil and v.Parent ~= nil then
- game.Lighting.Remote:WaitForChild("TeleportRequest"):InvokeServer("Me To", math.floor(tick() % 1 * 100000), v.Name)
- end
- end
- end)
- maindisp.PLAYER.BRING.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.PLAYER do
- if v ~= nil and v.Parent ~= nil then
- game.Lighting.Remote:WaitForChild("TeleportRequest"):InvokeServer("To Me", math.floor(tick() % 1 * 100000), v.Name)
- end
- end
- end)
- maindisp.PLAYER.MESSAGE.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.PLAYER do
- if v ~= nil and v.Parent ~= nil then
- local msg = maindisp.PLAYER.MSGTEXT.Text
- local clr = SelectedColor
- Apoc.Message(v,clr,msg)
- end
- end
- end)
- -- VEHICLE COMMANDS
- local SelectedVeh = ""
- local GoddedVeh = {}
- function UPDATEVEHLIST()
- local p = maindisp:WaitForChild"VEHICLE".VEHICLES
- local last = 0
- local t = p.Template
- for i,v in next, p:children() do
- if v.Name ~= "Template" then v:destroy() end
- end
- for i,v in next, workspace.Vehicles:children() do
- if v.Name ~= "Dead" and v.Name ~= "VehicleWreck" and v:FindFirstChild"Stats" then
- local obj = v
- local b = t:Clone()
- b.Parent = p
- b.Position = UDim2.new(0,0,0,last)
- last=last+25
- p.CanvasSize = UDim2.new(0,0,0,last)
- b.Text = v.Name
- b.Visible = true
- b.Name = v.Name
- if SelectedVeh == v then
- b.BackgroundColor3 = Color3.new(0,1,0)
- else
- b.BackgroundColor3 = Color3.new(1,0,0)
- end
- b.MouseButton1Down:connect(function()
- SelectedVeh = v
- end)
- end
- end
- end
- maindisp.VEHICLE.GOD.MouseButton1Down:connect(function()
- for i,v in next, workspace.Vehicles:children() do
- if v:FindFirstChild"Stats" and v.Name ~= "Dead" and v.Name ~= "VehicleWreck" and v == SelectedVeh then
- GoddedVeh[v.Name]=true
- end
- end
- end)
- maindisp.VEHICLE.UNGOD.MouseButton1Down:connect(function()
- if GoddedVeh[SelectedVeh] then
- GoddedVeh[SelectedVeh]=nil
- end
- end)
- maindisp.VEHICLE.KILL.MouseButton1Down:connect(function()
- if GoddedVeh[SelectedVeh] then
- GoddedVeh[SelectedVeh]=nil
- end
- for i,v in next, workspace.Vehicles:children() do
- if v:FindFirstChild"Stats" and v.Name ~= "Dead" and v.Name ~= "VehicleWreck" and v == SelectedVeh then
- Apoc.ChangeValue(v.Stats.Engine, 0)
- Apoc.ChangeValue(v.Stats.Hull, 0)
- Apoc.ChangeValue(v.Stats.Tank, 0)
- Apoc.ChangeValue(v.Stats.Armor, 0)
- Apoc.ChangeValue(v.Stats.Fuel, 0)
- end
- end
- end)
- maindisp.VEHICLE.SPEED.MouseButton1Down:connect(function()
- for i,v in next, workspace.Vehicles:children() do
- if v:FindFirstChild"Stats" and v.Name ~= "Dead" and v.Name ~= "VehicleWreck" and v == SelectedVeh then
- if v.Stats:FindFirstChild"MaxSpeed" then
- Apoc.ChangeValue(v.Stats.MaxSpeed.Offroad, 200)
- Apoc.ChangeValue(v.Stats.MaxSpeed, 200)
- end
- end
- end
- end)
- maindisp.VEHICLE.TELEPORT.MouseButton1Down:connect(function()
- for i,v in next, workspace.Vehicles:children() do
- if v == SelectedVeh then
- game.Lighting.Remote.SetCFrame:FireServer(v, game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(-20, 0, 0))
- end
- end
- end)
- -- SPAWNING COMMANDS
- ItemCodes = {
- ["AK104"] = 1037, ["WindscreenGlass"] = 184, ["WaterBottle"] = 209, ["Watch"] = 3001, ["VehicleJack"] = 3016,
- ["Vegetables"] = 214, ["VS50"] = 256, ["Uzi"] = 2015, ["Ushanka"] = 7014, ["USP45Ammo"] = 26, ["USP45"] = 2007,
- ["Twinkies"] = 212, ["Tuna"] = 4, ["TrinityBeret"] = 7015, ["TomatoSoup"] = 215, ["TM46"] = 257,
- ["TEC9Ammo32"] = 57, ["TEC9Ammo20"] = 56, ["TEC9Ammo"] = 20, ["TEC-9"] = 2005, ["SurvivalPackTan"] = 4009,
- ["SurvivalPackGrey"] = 4010, ["SurvivalPackGreen"] = 4011, ["SurvivalPackBrown"] = 4012, ["G18Suppressor"] = 9007,
- ["M14Suppressor"] = 9010, ["M4A1Suppressor"] = 9009, ["AKSuppressor"] = 9011, ["M1911Suppressor"] = 9008,
- ["Spam"] = 6, ["SodaSprite"] = 205, ["SodaRoot"] = 207, ["SodaPepsi"] = 7, ["SodaPepper"] = 9,
- ["SodaMoxie"] = 208, ["SodaDew"] = 202, ["SodaCrush"] = 201, ["SodaCoke"] = 8, ["ShotgunAmmo"] = 18,
- ["Shotgun"] = 1002, ["ShadesGrey"] = 8005, ["ShadesBlack"] = 8001, ["ScrapMetal"] = 183, ["Sabre"] = 3014,
- ["SUSAT"] = 9014, ["STANAGAmmo50"] = 52, ["STANAGAmmo30"] = 51, ["STANAGAmmo100"] = 53, ["SKSAmmo"] = 45,
- ["SKS"] = 1018, ["SCAR-L"] = 1022, ["RoadFlare"] = 251, ["RevolverAmmo"] = 25, ["Revolver"] = 2006,
- ["ReinforcedWheel"] = 189, ["Reflex"] = 9003, ["RedChemlight"] = 3020, ["RedBeret"] = 7013, ["RawMeat"] = 220,
- ["Ranger"] = 7003, ["RamboClothingTop"] = 5003, ["RamboClothingBottom"] = 6003, ["Radio"] = 3018,
- ["RPK"] = 1034, ["Pringles"] = 204, ["SSBeret"] = 7020, ["PilotGreen"] = 7010, ["PilotBlack"] = 7009, ["Pasta"] = 5,
- ["Painkillers"] = 12, ["PaddedClothingTop"] = 5002, ["PaddedClothingBottom"] = 6002, ["PPSHAmmo"] = 46,
- ["PPSH"] = 1019, ["PP19Ammo64"] = 58, ["SmallCrate"] = 38, ["OmniLight"] = 3015, ["OTs-14"] = 1036,
- ["NagantAmmo"] = 17, ["Mosin-Nagant"] = 1001, ["Model459Ammo14"] = 59, ["Model 459"] = 2013, ["Mk48Ammo"] = 23,
- ["Mk 48"] = 1005, ["Mk23"] = 2018, ["Mk17"] = 1031, ["MilitaryPackGrime"] = 4013, ["MilitaryPackGrey"] = 4015,
- ["MilitaryPackGreen"] = 4014, ["MilitaryPackBlack"] = 4016, ["MaverickAmmo"] = 27, ["Maverick"] = 1010,
- ["Material6"] = 36, ["Material5"] = 35, ["Material4"] = 34, ["Material3"] = 33, ["Material2"] = 32,
- ["Material1"] = 31, ["Matches"] = 3005, ["MaskSpecOps"] = 8009, ["MaskPhantom"] = 8013, ["MaskMime"] = 8008,
- ["MaskMercenary"] = 8007, ["MaskHockey"] = 8012, ["Map"] = 3003, ["MakarovAmmo"] = 16, ["Makarov"] = 2003,
- ["MRE"] = 10, ["MP5Ammo"] = 29, ["MP5"] = 1012, ["M9Ammo32"] = 55, ["M9Ammo17"] = 54, ["M9Ammo"] = 19,
- ["M93R"] = 2016, ["M9"] = 2004, ["M870Ammo"] = 28, ["M870"] = 1011, ["M4A1"] = 1004, -- ["M4A1Ammo"] = 22,
- ["M3Ammo30"] = 60, ["M3"] = 1028, ["M249Ammo100"] = 61, ["M249"] = 1024, ["M1911Ammo"] = 15, ["M1911"] = 2002,
- ["M14"] = 1016, ["M1014"] = 1027, ["M14Ammo50"] = 64, ["M14Ammo30"] = 63, ["M14Ammo20"] = 62,
- ["M1 Garand"] = 1006, ["Lemonade"] = 206, ["Laser"] = 9006, ["Kobra"] = 9004, ["Knife"] = 3013,
- ["KethArmorTop"] = 5011, ["KethArmorBottom"] = 6011, ["JerryCanEmpty"] = 186, ["JerryCan"] = 185,
- ["HornRimmed"] = 8006, ["Holo"] = 9002, ["HikingPackWhite"] = 4006, ["HikingPackOrange"] = 4005,
- ["HikingPackBrown"] = 4008, ["HikingPackBlue"] = 4007, ["Hatchet"] = 3011, ["HK417"] = 1033, ["HK21"] = 1032,
- ["GusArmorTop"] = 5010, ["GusArmorBottom"] = 6010, ["Grip"] = 9005, ["GreenChemlight"] = 3021,
- ["GarandAmmo"] = 24, ["GPS"] = 3006, ["G37"] = 2017, ["G36K"] = 1023, ["G3"] = 1030, -- ["G18Ammo"] = 41,
- ["G18"] = 2011, ["FuelTank"] = 182, ["Floodlight"] = 37, ["FlashlightSurvival"] = 3009,
- ["FlashlightOld"] = 3008, ["FlashlightMilitary"] = 3010, ["FlashlightAttachment"] = 9012, ["Firewood"] = 250,
- ["Firefighter"] = 8004, ["FedorovAmmo"] = 44, ["Fedorov"] = 1017, ["Fedora"] = 7004, ["FannyPackWhite"] = 4002,
- ["FannyPackTan"] = 4001, ["FannyPackPurple"] = 4004, ["FannyPackBlue"] = 4003, ["TheFal"] = 1029,
- ["Eyepatch"] = 8003, ["Entrencher"] = 3004, ["EngineParts"] = 181, ["EnfieldAmmo"] = 42, ["Enfield"] = 1015,
- ["Detonator"] = 3017, ["Crowbar"] = 3012, ["CowlGreen"] = 7002, ["CowlBlack"] = 7001, ["Cowboy"] = 7012,
- ["CookedMeat"] = 221, ["Compass"] = 3002, ["ClothingTopFalse"] = 5000, ["ClothingBottomFalse"] = 6000,
- ["CivilianClothingTop"] = 5001, ["CivilianClothingBottom"] = 6001, ["ChocolateBar"] = 211, ["ChipsAhoy"] = 213,
- ["ChickenSoup"] = 216, ["CheezIts"] = 203, ["CarWheel"] = 180, ["CamoWoodlandsTop"] = 5007,
- ["CamoWoodlandsBottom"] = 6007, ["CamoUrbanTop"] = 5005, ["CamoUrbanBottom"] = 6005, ["CamoSpecialTop"] = 5009,
- ["CamoSpecialBottom"] = 6009, ["CamoSnowTop"] = 5008, ["CamoSnowBottom"] = 6008, ["CamoJungleTop"] = 5006,
- ["CamoJungleBottom"] = 6006, ["CamoDesertTop"] = 5004, ["CamoDesertBottom"] = 6004, ["CZ75Ammo"] = 40,
- ["CZ75"] = 2010, ["CCO"] = 9001, ["CBJ-MS"] = 2014, ["C4"] = 255, ["BrimmedBrown"] = 7007,
- ["BrimmedBlack"] = 7008, ["Bowler"] = 7005, ["BlueChemlight"] = 3022, ["BloodBag"] = 11, ["Binoculars"] = 3007,
- ["Biker"] = 7006, ["BeefStew"] = 217, ["BeefJerky"] = 210, ["Beans"] = 3, ["Beanie"] = 7011,
- ["BandanaSkull"] = 8014, ["BandanaRenegade"] = 8011, ["BandanaRed"] = 8010, ["BandanaBlack"] = 8002,
- ["BallisticUrban"] = 7018, ["BallisticSpecOps"] = 7019, ["BallisticJungle"] = 7017, ["BallisticGlass"] = 187,
- ["BallisticDesert"] = 7016, ["Auto-5"] = 1025, ["ArmorPlates"] = 188, ["AN-94"] = 1040, ["AKS74U"] = 1041,
- ["AKM"] = 1038, ["AKAmmo75"] = 67, ["AKAmmo45"] = 66, ["AKAmmo30"] = 65, ["AK47Ammo75"] = 50,
- ["AK47Ammo40"] = 49, ["AK47Ammo30"] = 48, ["AK74"] = 1039, ["AK-47"] = 1003, ["AK12"] = 1035,
- ["ACOG"] = 9013, ["LargeCrate"] = 39, ["PP19"] = 1026, ["Patriot"] = 1021
- }
- maindisp.SPAWNING.SELECTALL.MouseButton1Down:connect(function()
- for i,v in next, game.Players:players() do
- SelectedPlayers.SPAWNING[v]=true
- end
- end)
- maindisp.SPAWNING.DESELECTALL.MouseButton1Down:connect(function()
- SelectedPlayers.SPAWNING={}
- end)
- maindisp.SPAWNING.SELECTOTHER.MouseButton1Down:connect(function()
- SelectedPlayers.SPAWNING={}
- for i,v in next, game.Players:players() do
- if v ~= game.Players.LocalPlayer then SelectedPlayers.SPAWNING[v]=true end
- end
- end)
- maindisp.SPAWNING.SELECTLP.MouseButton1Down:connect(function()
- SelectedPlayers.SPAWNING[game.Players.LocalPlayer]=true
- end)
- maindisp.SPAWNING.SELECTGRP.MouseButton1Down:connect(function()
- maindisp.SPAWNING.SELECTGRP.Text = "Not finished yet!"
- wait(4)
- maindisp.SPAWNING.SELECTGRP.Text = "SELECT GROUP"
- end)
- local SelectedSlot = "slot1"
- table.foreach(maindisp.SPAWNING.SLOTS:children(),function(i,v)
- if v:IsA"TextButton" then
- v.MouseButton1Down:connect(function()
- for _,md in next, maindisp.SPAWNING.SLOTS:children() do md.BackgroundColor3 = Color3.new(1,0,0) end
- v.BackgroundColor3 = Color3.new(0,1,0)
- SelectedSlot = v.Text:lower()
- end)
- end
- end)
- maindisp.SPAWNING.LOCALSPAWN.MouseButton1Down:connect(function()
- if game.Lighting.LootDrops:FindFirstChild(maindisp.SPAWNING.ITEM.Text) then
- local new = game.Lighting.LootDrops[maindisp.SPAWNING.ITEM.Text]:Clone()
- new.Parent = workspace
- new:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
- end
- end)
- maindisp.SPAWNING.SERVERSPAWN.MouseButton1Down:connect(function()
- function GetItem(Name)
- for lootName, lootid in pairs(ItemCodes) do
- if string.lower(lootName) == string.lower(Name) then
- local RealName = lootName
- local RealId = lootid
- return(RealId)
- end
- end
- return tonumber(Name)
- end
- for v,i in next, SelectedPlayers.SPAWNING do
- if v ~= nil and v.Parent ~= nil and v:FindFirstChild"playerstats" and v.playerstats:FindFirstChild"slots" then
- game.Lighting.Remote.AddObject:FireServer(v.playerstats.slots[SelectedSlot:lower()],tonumber(GetItem(maindisp.SPAWNING.ITEM.Text)))
- end
- end
- end)
- -- SKIN CREATOR
- maindisp.SKINCREATOR.DESELECTALL.MouseButton1Down:connect(function()
- SelectedPlayers.SKIN={}
- end)
- maindisp.SKINCREATOR.SELECTLP.MouseButton1Down:connect(function()
- SelectedPlayers.SKIN[game.Players.LocalPlayer]=true
- end)
- local SelectedSkin = {1,1,1,1}
- maindisp:WaitForChild"SKINCREATOR"
- table.foreach(maindisp.SKINCREATOR.COLORONE:children(), function(i,v)
- if v:IsA"TextButton" then
- v.MouseButton1Down:connect(function()
- for _,md in next, maindisp.SKINCREATOR.COLORONE:children() do md.BackgroundColor3 = Color3.new(1,0,0) end
- v.BackgroundColor3 = Color3.new(0,1,0)
- SelectedSkin[1] = v.Id.Value
- end)
- end
- end)
- table.foreach(maindisp.SKINCREATOR.COLORTWO:children(), function(i,v)
- if v:IsA"TextButton" then
- v.MouseButton1Down:connect(function()
- for _,md in next, maindisp.SKINCREATOR.COLORTWO:children() do md.BackgroundColor3 = Color3.new(1,0,0) end
- v.BackgroundColor3 = Color3.new(0,1,0)
- SelectedSkin[2] = v.Id.Value
- end)
- end
- end)
- table.foreach(maindisp.SKINCREATOR.COLORONE:children(), function(i,v)
- for _, z in next, v:children() do
- if z.Name:lower() == "id" and z.Name ~= "Red" and z.Value == 1 then
- z:destroy()
- end
- end
- end)
- table.foreach(maindisp.SKINCREATOR.COLORTWO:children(), function(i,v)
- for _, z in next, v:children() do
- if z.Name:lower() == "id" and z.Name ~= "Red" and z.Value == 1 then
- z:destroy()
- end
- end
- end)
- table.foreach(maindisp.SKINCREATOR.MATERIALONE:children(), function(i,v)
- if v:IsA"TextButton" then
- v.MouseButton1Down:connect(function()
- for _,md in next, maindisp.SKINCREATOR.MATERIALONE:children() do md.BackgroundColor3 = Color3.new(1,0,0) end
- v.BackgroundColor3 = Color3.new(0,1,0)
- SelectedSkin[3] = v.Id.Value
- end)
- end
- end)
- table.foreach(maindisp.SKINCREATOR.MATERIALTWO:children(), function(i,v)
- if v:IsA"TextButton" then
- v.MouseButton1Down:connect(function()
- for _,md in next, maindisp.SKINCREATOR.MATERIALTWO:children() do md.BackgroundColor3 = Color3.new(1,0,0) end
- v.BackgroundColor3 = Color3.new(0,1,0)
- SelectedSkin[4] = v.Id.Value
- end)
- end
- end)
- maindisp.SKINCREATOR.GIVESKIN.MouseButton1Down:connect(function()
- for v,i in next, SelectedPlayers.SKIN do
- local function GetNextOpenSkinSlot()
- for i = 1, #v.playerstats.skins:GetChildren() do
- print(i)
- local s = v.playerstats.skins:FindFirstChild("skin"..i)
- print(s)
- if s.Value == 0 then
- return s
- end
- end
- end
- local slot = tostring(GetNextOpenSkinSlot())
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),v.playerstats.skins[slot], SelectedSkin[1])
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),v.playerstats.skins[slot].material, SelectedSkin[3])
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),v.playerstats.skins[slot].secondary, SelectedSkin[2])
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),v.playerstats.skins[slot].secondary.material, SelectedSkin[4])
- end
- end)
- maindisp.SKINCREATOR.SAVESKINS.MouseButton1Down:connect(function()
- local tab = {}
- for i,v in next, game.Players.LocalPlayer.playerstats.skins:children() do
- if v.Value ~= 0 then
- table.insert(tab,{v.Value,v.material.Value,v.secondary.Value,v.secondary.material.Value})
- end
- end
- local json = game:service'HttpService':JSONEncode(tab)
- game:service'CookiesService':SetCookieValue("RapingSkins",json)
- end)
- -- MINIMIZE
- head.Minimize.Draggable = false
- head.Minimize.MouseButton1Down:connect(function()
- maindisp.Visible = not maindisp.Visible
- tabs.Visible = not tabs.Visible
- end)
- -- LOAD SAVED SKINS
- local err,suc = pcall(function()
- if game:service'CookiesService':GetCookieValue("RapingSkins") ~= nil then
- local json = game:service'HttpService':JSONDecode(game:service'CookiesService':GetCookieValue("RapingSkins"))
- for i,v in next, game.Players.LocalPlayer.playerstats.skins:children() do -- Clear Skins
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),v, 0)
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),v.material, 0)
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),v.secondary, 0)
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),v.secondary.material, 0)
- end
- for i,v in next, json do
- local function GetNextOpenSkinSlot()
- return "skin"..i
- end
- local slot = tostring(GetNextOpenSkinSlot())
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),game.Players.LocalPlayer.playerstats.skins[slot], v[1])
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),game.Players.LocalPlayer.playerstats.skins[slot].material, v[2])
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),game.Players.LocalPlayer.playerstats.skins[slot].secondary, v[3])
- game.Lighting.Remote.ChangeValue:FireServer(getkey(),game.Players.LocalPlayer.playerstats.skins[slot].secondary.material, v[4])
- end
- end
- end) if not suc then game:service'CookiesService':SetCookieValue("RapingSkins",game:service'HttpService':JSONEncode({})) end
- -- RENDERSTEPPED
- game:service'RunService'.RenderStepped:connect(function()
- UPDATEVEHLIST()
- UPDATEPLRLIST(maindisp:WaitForChild"PLAYER".PLAYERS,SelectedPlayers.PLAYER)
- UPDATEPLRLIST(maindisp:WaitForChild"SKINCREATOR".PLAYERS,SelectedPlayers.SKIN)
- UPDATEPLRLIST(maindisp:WaitForChild"SPAWNING".PLAYERS,SelectedPlayers.SPAWNING)
- for i,v in next, workspace.Vehicles:children() do
- if GoddedVeh[v.Name] and v:FindFirstChild"Stats" then
- Apoc.ChangeValue(v.Stats.Engine, 10000)
- Apoc.ChangeValue(v.Stats.Hull, 10000)
- Apoc.ChangeValue(v.Stats.Tank, 10000)
- Apoc.ChangeValue(v.Stats.Armor, 10000)
- Apoc.ChangeValue(v.Stats.Fuel, 543)
- end
- end
- end)
Add Comment
Please, Sign In to add comment