denissini15

Main module

Jan 7th, 2020 (edited)
2,705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.91 KB | None | 0 0
  1. local lplr= game:GetService("Players").LocalPlayer
  2. local plrs = game:GetService("Players")
  3.  
  4. local snps = false
  5. pcall(function()
  6. if syn then snps = true end
  7. end)
  8.  
  9.  
  10.  
  11. local ffcoc= game.FindFirstChildOfClass
  12. local ffc = game.FindFirstChild
  13.  
  14.  
  15. local gameids = {}
  16. do
  17.     gameids.ThoseWhoRemain = 187796008
  18.     gameids.Phantom_Forces = 113491250
  19.     gameids.pf2 = 115272207
  20.     if game.GameId ~= gameids.Phantom_Forces then
  21.         gameids.Phantom_Forces = gameids.pf2
  22.     end
  23.     gameids.Arsenal = 111958650
  24.     gameids.Unit = 327709123
  25.     gameids.Apoc2 = 358276974
  26.     if game.GameId == 184068396 then
  27.         gameids.Aegis= 184068396
  28.     else   
  29.         gameids.Aegis = 1078934163
  30.     end
  31.     gameids.BadBuisness = 1168263273
  32.     gameids.badgay = gameids.BadBuisness
  33.     gameids.Eclipsis = 252475658
  34.     gameids.Lost = 597889174
  35.     gameids.counterblox = 115797356
  36.     gameids.Attrition = 367058015
  37.     gameids.Jailbreak = 245662005
  38.     gameids.wfyb = 74218984
  39.     gameids.madpaintball2 = 112819343
  40.     gameids.ace = 913400159
  41.     gameids.fireteam = 261612318
  42.    
  43. end
  44.  
  45. local m = {}
  46. m.getignore = function()
  47.     return {}
  48. end
  49.  
  50. m.getsettings = function()
  51.     local id = game.GameId
  52.     local setting = {}
  53.     setting.PartSize = 0
  54.     setting.Bindable = {}
  55.     setting.Bindable.BulletDrop = 0
  56.     setting.Bindable.BulletSpeed = 3500
  57.     setting.Bindable.calculation = false
  58.     setting.Bindable.AimAssist = true
  59.     setting.Bindable.ESP = true
  60.     setting.Bindable.EspUpdateTime = 0.15
  61.     setting.Bindable.AutoShoot = false
  62.     setting.Bindable.Headshots = 100
  63.     setting.Bindable.Circle =  120
  64.     setting.Bindable.Radar = true
  65.     setting.Bindable.RadarSize = 175
  66.     setting.Bindable.MaxRaycastDistance = 500
  67.     setting.Bindable.UseMouseMove = true
  68.     setting.Bindable.SmartCircle = true
  69.     setting.Bindable.ShowVelocity = false
  70.     if id == gameids.Apoc2 then
  71.         workspace:WaitForChild('Vehicles')
  72.         setting.Bindable.EspUpdateTime = 2
  73.         setting.Bindable.MaxRaycastDistance = 900
  74.         setting.Bindable.AutoShoot = false
  75.         setting.Bindable.AimAssist = true
  76.         setting.Bindable.BulletSpeed = 10^4
  77.         setting.Bindable.calculation=true
  78.         setting.Bindable.BulletDrop = 0.175
  79.         setting.Bindable.Radar = false
  80.     elseif id == gameids.fireteam then
  81.         setting.Bindable.EspUpdateTime = 2
  82.         setting.Bindable.MaxRaycastDistance = 900
  83.         setting.Bindable.AutoShoot = false
  84.         setting.Bindable.AimAssist = true
  85.         setting.Bindable.BulletSpeed = 10^4
  86.         setting.Bindable.calculation= true
  87.         setting.Bindable.BulletDrop = 0.075
  88.         setting.Bindable.Radar = false
  89.     elseif id == gameids.Jailbreak then
  90.         setting.Bindable.Radar = false
  91.         setting.Bindable.AimAssist = true
  92.     elseif id == 187796008 then -- those who remain
  93.         setting.Bindable.MaxRaycastDistance = 200
  94.         setting.Bindable.AutoShoot = true
  95.         setting.Bindable.AimAssist = true
  96.         setting.Bindable.BulletSpeed = 1500
  97.         setting.Bindable.calculation=true
  98.         setting.Bindable.Radar = false
  99.     elseif game.GameId == gameids.badgay then
  100.         setting.Bindable.AutoShoot = false
  101.         setting.Bindable.calculation = true
  102.         setting.Bindable.BulletSpeed = 2700
  103.         setting.Bindable.AimAssist = true
  104.         setting.Bindable.BulletDrop = 0.24
  105.         setting.Bindable.Radar = false
  106.         setting.Bindable.EspUpdateTime = 0.4
  107.     elseif game.GameId == gameids.Phantom_Forces then
  108.         setting.Bindable.calculation = true
  109.         setting.Bindable.BulletSpeed = 2100
  110.         setting.Bindable.AimAssist = true
  111.         setting.Bindable.BulletDrop = 0.2
  112.         setting.Bindable.ESP = true
  113.         setting.Bindable.Circle =  85
  114.         setting.Bindable.Headshots = 67
  115.         setting.PartSize = 0.22
  116.     elseif game.GameId == gameids.Arsenal then
  117.         setting.Bindable.Radar = false
  118.         setting.Bindable.UseMouseMove = false
  119.         setting.Bindable.AimAssist = true
  120.     elseif game.GameId == gameids.Lost then
  121.         setting.Bindable.UseMouseMove = false
  122.         setting.Bindable.Radar = true
  123.         setting.Bindable.RadarSize = 400
  124.         setting.Bindable.calculation = true
  125.         setting.Bindable.BulletSpeed = 3000
  126.         setting.Bindable.BulletDrop = 0.15
  127.     elseif game.GameId == gameids.counterblox then
  128.         setting.Bindable.UseMouseMove = false
  129.         setting.Bindable.Radar = true
  130.         setting.Bindable.RadatSize = 200
  131.         setting.Bindable.AimAssist = true
  132.         setting.PartSize = 0.4
  133.     elseif id == gameids.Attrition then
  134.         setting.Bindable.UseMouseMove = false
  135.         setting.Bindable.Radar = false
  136.         setting.Bindable.RadatSize = 200
  137.         setting.Bindable.AimAssist = true
  138.         setting.Bindable.calculation = true
  139.  
  140.  
  141.         spawn(function()
  142.             local gunname
  143.             local bspeed = 3100
  144.             while wait(.3) do
  145.                 local succ, error = pcall(function()
  146.                     if  lplr.Character and ffcoc(lplr.Character, 'Tool') and ffc(ffcoc(lplr.Character, 'Tool') , 'Settings')then
  147.                         if ffcoc(lplr.Character, 'Tool').Name ~= gunname then
  148.                             --print('setting1')
  149.                             bspeed = require( ffc(ffcoc(lplr.Character, 'Tool') , 'Settings') ).BulletSpeed
  150.                             setting.Bindable.BulletSpeed = bspeed
  151.                             print('set')
  152.                         end
  153.  
  154.                         gunname = ffcoc(lplr.Character, 'Tool').Name
  155.                     end
  156.                 end)
  157.                 if not succ then print(error) end
  158.             end
  159.         end)
  160.  
  161.     elseif id == gameids.Eclipsis then
  162.         setting.Bindable.UseMouseMove = true
  163.         setting.Bindable.Radar = false
  164.         setting.Bindable.RadatSize = 200
  165.         setting.Bindable.AimAssist = true
  166.         setting.Bindable.calculation = false
  167.         setting.Bindable.MaxRaycastDistance = 250
  168.         setting.Bindable.EspUpdateTime = 1
  169.     elseif id == gameids.ace then
  170.         setting.Bindable.calculation = true
  171.         setting.Bindable.BulletSpeed = 12000
  172.         setting.Bindable.AimAssist = true
  173.         setting.Bindable.BulletDrop = 0
  174.         setting.Bindable.ESP = true
  175.         setting.Bindable.Circle =  120
  176.         setting.Bindable.Headshots = 67
  177.         setting.Bindable.UseMouseMove = false
  178.         setting.Bindable.EspUpdateTime = 2
  179.     elseif game.GameId == gameids.madpaintball2 then
  180.         setting.Bindable.AimAssist = true
  181.     elseif game.GameId == 833423526 then -- strucid
  182.         setting.Bindable.AimAssist = true
  183.     end
  184.  
  185.    
  186.  
  187.     return setting
  188. end
  189.  
  190.  
  191. m.typeofnumber = function(n)
  192.     if n>0 then return 1 elseif n==0 then return 0 else return -1 end
  193. end
  194.  
  195. m.lft = function(n1, n2)
  196.     --local t1,t2 = m.typeofnumber(n1), m.typeofnumber(n2)
  197.     if math.abs(n1)>math.abs(n2) then
  198.         return n1
  199.     else
  200.         return n2
  201.     end
  202. end
  203.  
  204. m.LocalCharacter = function()
  205.     return lplr.Character
  206. end
  207. m.IngameSens = function()
  208.     return 1.3
  209. end
  210. m.clonetable = function(t)
  211.     local nt = {}
  212.     for i, v in pairs(t) do
  213.         nt[i]=v
  214.     end
  215.     return nt
  216. end
  217. local randomstrcalltimes = tick()
  218. m.rstr = function(len)
  219.     randomstrcalltimes  = randomstrcalltimes+1
  220.     math.randomseed(randomstrcalltimes)
  221.     len = len or math.random(3, 25)
  222.     local str = ""
  223.     for i=1,len do
  224.         math.randomseed(randomstrcalltimes+i)
  225.         local newchar = string.char(math.random(32, 184))
  226.         str =  str..newchar
  227.     end
  228.     return str
  229. end
  230.  
  231. m.import = function(toimport)
  232.     if type(toimport) == "number" then
  233.         return game:GetObjects("rbxassetid://" .. toimport)[1]
  234.     else
  235.         if snps then
  236.             return loadstring(syn.request({Url = toimport}).Body)()
  237.         end
  238.         return loadstring(game:HttpGetAsync(toimport))()
  239.     end
  240. end
  241.  
  242. m.GetGameName = function()
  243.     local gamename = "Default"
  244.     for i, v in pairs(gameids) do
  245.         if v == game.GameId then gamename = i end
  246.     end
  247.     return gamename
  248. end
  249.  
  250. m.TeamCheck = function(plr)
  251.     if tostring(game.GameId) == tostring(gameids.Unit) then
  252.         if ffc(plr, "TeamC") and plr.TeamC.Value ~= lplr.TeamC.Value then
  253.             return true
  254.         else
  255.             return false
  256.         end
  257.     elseif game.GameId == 633284182 then
  258.         if plr:FindFirstChild("Info") and plr.Info:FindFirstChild("Team") and plr.Info.Team:FindFirstChild("Team") and plr.Info.Team.Team.Value ~= lplr.Info.Team.Team.Value then
  259.             return true
  260.            
  261.         else
  262.             return false
  263.         end
  264.     elseif game.GameId == gameids.Aegis then
  265.         local stats = game:GetService("ReplicatedStorage").PlayerStats:FindFirstChild(plr.Name)
  266.         local lplrstats = game:GetService("ReplicatedStorage").PlayerStats:FindFirstChild(lplr.Name)
  267.         if stats and lplrstats and stats.TeamName.Value ~= lplrstats.TeamName.Value then
  268.             return true
  269.         else
  270.             return false
  271.         end
  272.     elseif game.GameId == gameids.badgay then
  273.         return true
  274.     elseif game.GameId == gameids.Arsenal then
  275.         if #game.Teams:GetChildren()<=1 then
  276.             if plr~=lplr then
  277.                 return true
  278.             end
  279.             return false
  280.            
  281.             elseif lplr.Team~= plr.Team then return true
  282.            
  283.         end
  284.     elseif game.GameId == gameids.wfyb then
  285.         if plr == lplr then return false end
  286.         if (plr.Team == nil or lplr.Team == nil) then return true end
  287.         if plr.Team ~= lplr.Team then return true end
  288.     else
  289.         if (plr.Team == nil or plr.Team.Name ~= lplr.Team.Name) and plr ~= lplr then
  290.             return true
  291.         else
  292.             return false
  293.         end
  294.     end
  295. end
  296. m.GetCharacterExistance = function(plr)
  297.     if plr.Character and ffcoc(plr.Character, "Humanoid") and ffcoc(plr.Character, "Humanoid").Health>0 then
  298.         return true
  299.     end
  300.     return false
  301. end
  302. m.GetPlayers = function()
  303.     local plrs  =  {}
  304.     for i, plr in pairs(game:GetService("Players"):GetPlayers()) do
  305.         if m.TeamCheck(plr) and m.GetCharacterExistance(plr) then
  306.             plrs[#plrs+1] = plr
  307.         end
  308.     end
  309.     return plrs
  310. end
  311. m.GetHead = function(plr)
  312.     return ffc(plr.Character, "Head")
  313. end
  314.  
  315. m.GetTeamColor = function(plr)
  316.     local color = Color3.new(.8, 1, .8)
  317.     if plr.Team then
  318.         color = plr.Team.TeamColor.Color
  319.     end
  320.     return color
  321. end
  322. m.GetCharacters = function()
  323.     local chars = {}
  324.     for  i, plr in pairs(m.GetPlayers()) do
  325.         if m.GetCharacterExistance(plr) and ffc(plr.Character,"Head") then
  326.             chars[#chars+1] = {name = plr.Name, char =plr.Character, teamcolor = m.GetTeamColor(plr)}
  327.         end
  328.     end
  329.     return chars
  330. end
  331. m.GetHealth = function(char, str)
  332.     local hum = ffcoc(char, "Humanoid")
  333.     if hum then
  334.         if str then return "HP:"..math.floor(hum.Health) else return hum.Health end
  335.     end
  336. end
  337. m.GetTargets = function(headpercentage)
  338.     local targets = {}
  339.     for i, plr in pairs(m.GetPlayers()) do
  340.         if math.random(0, 100)<=headpercentage then
  341.             t = m.GetHead(plr)
  342.         else
  343.             t =ffc(plr.Character, "LowerTorso") or ffc(plr.Character, "Torso")
  344.         end
  345.         if t then
  346.             targets[#targets+1] = t
  347.         end
  348.     end
  349.     return targets
  350. end
  351. m.TriggerDeath = function(head)
  352.     local hum = ffcoc(head.Parent, "Humanoid") or ffc(head.Parent, "Humanoid")
  353.     local ret = false
  354.     if hum then
  355.         spawn(function()
  356.             hum.Died:Wait()
  357.             ret = true
  358.         end)
  359.     end
  360.     spawn(function()
  361.         head:GetPropertyChangedSignal("Parent"):Wait()
  362.         ret = true
  363.     end)
  364.     spawn(function()
  365.         repeat wait(.2) until not workspace:IsAncestorOf(head)
  366.         ret = true
  367.     end)
  368.     repeat wait(.1) until ret == true
  369.     return true
  370. end
  371. m.games = gameids
  372.  
  373. if game.GameId == gameids.ThoseWhoRemain then
  374.     m.GetCharacters = function()
  375.         return {}
  376.     end
  377.     m.GetTargets = function()
  378.         local t = {}
  379.         for i,v in pairs(workspace.Infected:GetChildren()) do
  380.             pcall(function()
  381.                 if v.Head then
  382.                     table.insert(t, v.Head)
  383.                 end
  384.             end)
  385.            
  386.         end
  387.         return t
  388.     end
  389.     m.IngameSens = function()
  390.         return 0.00525331
  391.     end
  392. elseif game.GameId == gameids.fireteam then
  393.     m.TeamCheck = function(plr)
  394.  
  395.         if plr.Name == lplr.Name then return false end
  396.  
  397.         local LT = lplr.Info.Team.Team.Value
  398.  
  399.         if ffc(plr, 'Info') and ffc(plr.Info, 'Team') then
  400.             return LT ~= plr.Info.Team.Team.Value
  401.         end
  402.         return false
  403.     end
  404.     m.IngameSens = function()
  405.         return 0.0074672926631244
  406.     end
  407. end
  408. if game.GameId == gameids.Phantom_Forces then
  409.     m.GetHealth = function(char, str)
  410.         if str then
  411.             return ""
  412.         else
  413.             return 100
  414.         end
  415.     end
  416.    
  417.     m.GetTargets = function(headpercentage)
  418.         local targets = {}
  419.         local thead = true
  420.         if headpercentage and headpercentage<100 then
  421.             math.randomseed(tick())
  422.             thead = math.random(1, 100)<headpercentage
  423.         end
  424.        
  425.         local team = lplr.Team.Name
  426.         if team == 'Phantoms' then team = 'Ghosts' else team = 'Phantoms'  end
  427.  
  428.         for i, plr in pairs(workspace.Players[team]:GetChildren()) do
  429.             local t
  430.             if thead then
  431.                 t = ffc(plr, 'Head')
  432.             else
  433.                 t= ffc(plr, 'Torso')
  434.             end
  435.             if t then
  436.                 targets[#targets+1] = t
  437.             end
  438.         end
  439.         return targets
  440.     end
  441.     m.GetCharacters = function()
  442.         local chars = {}
  443.         local team = lplr.Team.Name or 'Phantoms'
  444.         if team == 'Phantoms' then team = 'Ghosts' else team = 'Phantoms'  end
  445.         for icount, plr in pairs(workspace.Players[team]:GetChildren()) do
  446.             chars[#chars+1] = {name = ('Enemy #'..tostring(icount) ); char =plr, teamcolor = Color3.new(.8, 1, .8)}
  447.         end
  448.         return chars
  449.     end
  450.    
  451.     m.TriggerDeath = function(head)
  452.         head.Parent:GetPropertyChangedSignal("Parent"):Wait()
  453.         return true
  454.     end
  455.     m.IngameSens = function()
  456.         return 0.011172804812837
  457.     end
  458.    
  459. elseif game.GameId == gameids.Arsenal then
  460.     m.IngameSens = function()
  461.         return 0.0065442182123661
  462.     end
  463.     m.TriggerDeath = function(head)
  464.         local died = false
  465.         local spp = Vector3.new(-0.3, -396, 1)
  466.         repeat
  467.             local d = head.CFrame.Position - spp; d = d.Magnitude
  468.             if d<20 then died = true return true end
  469.             game:GetService("RunService").RenderStepped:Wait()
  470.         until died == true
  471.         return true
  472.     end
  473.    
  474. elseif game.GameId == gameids.Apoc2 then
  475.     m.TriggerDeath = function(head)
  476.         repeat wait(.2) until not workspace:IsAncestorOf(head) or head.Transparency == 1
  477.         return true
  478.     end
  479.     m.GetHealth = function(char, str)
  480.         return ""
  481.     end
  482.     m.getignore = function()
  483.         local ret = {}
  484.         for i, veh in pairs(workspace.Vehicles.Spawned:GetChildren()) do
  485.             for ii, model in pairs(veh:GetChildren()) do
  486.                 if model.Name~="Collision" and ( model:IsA("BasePart") or model:IsA("Model") ) then
  487.                     table.insert(ret, model)
  488.                 end
  489.             end
  490.         end
  491.         return ret
  492.     end
  493.     m.TeamCheck = function(plr)
  494.         if plr.Name==lplr.Name then
  495.             return false
  496.         end
  497.         if ffcoc(lplr, "PlayerGui") and ffc(ffcoc(lplr, "PlayerGui"), "Interface Main") then
  498.             if plr.Character and plr.Character~= nil and ffc(plr.Character, "Head") and plr.Character.Head.Transparency<1 then
  499.                 for i, v in pairs(ffcoc(lplr, "PlayerGui")["Interface Main"]:GetChildren() ) do
  500.                     if v.Name == "SquadTag" and string.lower(v.Adornee.Parent.Name) == string.lower(plr.Name) then
  501.                         return false
  502.                     end
  503.                 end
  504.                 return true
  505.             end
  506.         else
  507.            
  508.             return true
  509.         end
  510.         return false
  511.     end
  512.     m.GetCharacters = function()
  513.         local chars = {}
  514.         for  i, plr in pairs(m.GetPlayers()) do
  515.             if m.GetCharacterExistance(plr) and ffc(plr.Character,"Head") then
  516.                 chars[#chars+1] = {name = plr.Name, char =plr.Character, teamcolor = m.GetTeamColor(plr)}
  517.             end
  518.         end
  519.         for i, car in pairs(workspace.Vehicles.Spawned:GetChildren()) do
  520.             if ffc(car, 'Collision') then
  521.                 table.insert(chars, {name = car.Name, char = car.Collision, teamcolor = Color3.fromRGB(67, 67, 67)} )
  522.             end
  523.         end
  524.         return chars
  525.     end
  526.     m.IngameSens = function()
  527.         return 0.0034417867660522--0.0042810601885628*1.5
  528.     end
  529. elseif game.GameId == gameids.Jailbreak then
  530.     m.IngameSens = function()
  531.         return 0.0045351416927923
  532.     end
  533. elseif game.GameId == gameids.madpaintball2 then
  534.     m.TeamCheck = function(plr)
  535.         if plr == lplr then return false end
  536.         for i, v in pairs(game:GetService("Workspace").CurrentCamera.VisualContainer.PlayerNameContainer:GetChildren()) do
  537.             if v.Adornee and v.Friendly.Visible == true and plr.Character and plr.Character:IsAncestorOf(v.Adornee) then
  538.                 return false
  539.             end
  540.         end
  541.         return true
  542.     end
  543.     m.IngameSens = function()
  544.         return 0.0033445735131283*1.05
  545.     end
  546. end
  547.  
  548. if game.GameId == gameids.Attrition then
  549.     m.getignore = function()
  550.         return {workspace.Vehicles}
  551.     end
  552. end
  553.  
  554. if game.GameId == gameids.BadBuisness then
  555.    
  556.     local getteamed = function()
  557.         local teamed = {}
  558.         for i, v in pairs(lplr.PlayerGui:GetChildren()) do
  559.             if v.Name == "NameGui" and v.Adornee then
  560.                 teamed[v.Adornee.Parent.Parent.Name] = true
  561.             end
  562.         end
  563.         return teamed
  564.     end
  565.     m.IngameSens = function()
  566.         return 0.0021189559021573--0.0046487151936
  567.     end
  568.     m.GetCharacters  = function()
  569.         local teamed = getteamed()
  570.         local chars= {}
  571.         for i, char in pairs(workspace.Characters:GetChildren()) do
  572.             local distcheck = false
  573.            
  574.             if not teamed[char.Name] and char.Health.Value>0 and ffc(char, "Hitbox") and ffc(char.Hitbox, "Head") then
  575.                 local d = workspace.Camera.CFrame.Position - char.Hitbox.Head.Position; d = d.Magnitude
  576.                 if d >5 then
  577.                     table.insert(chars, {name = "Enemy "..char.Name, ["char"] = char.Hitbox, teamcolor = Color3.new(.8, 1, .8) })
  578.                 end
  579.             end
  580.         end
  581.         return chars
  582.     end
  583.     m.GetHealth = function(c)
  584.         return "HP:"..math.floor(c.Parent.Health.Value)
  585.     end
  586.     m.GetTargets = function(headp)
  587.         local teamed = getteamed()
  588.         local heads = {}
  589.         for i, char in pairs(workspace.Characters:GetChildren()) do
  590.            
  591.             if not teamed[char.Name] and ffc(char, "Hitbox") and char.Health.Value>0 then
  592.                 local dth = workspace.CurrentCamera.CFrame.Position-char.Hitbox:GetModelCFrame().p
  593.                 dth = dth.Magnitude
  594.                 local add = nil
  595.                 if math.random(0, 100)<=headp and ffc(char.Hitbox, "Head") then
  596.                     add = char.Hitbox.Head
  597.                 else
  598.                     add = ffc(char.Hitbox, "Hips")
  599.                 end
  600.                 if dth>5 then
  601.                     table.insert(heads, add)
  602.                 end
  603.             end
  604.         end
  605.         return heads
  606.     end
  607.     m.TriggerDeath = function(head)
  608.         local hpv = head.Parent.Parent.Health
  609.         local par = head.Parent.Parent.Parent
  610.         repeat game:GetService("RunService").RenderStepped:Wait() until par ~= head.Parent.Parent.Parent or hpv.Value <= 0
  611.         return true
  612.     end
  613.     m.LocalCharacter = function()
  614.         local mind = 4
  615.         for i, v in pairs(workspace.Characters:GetChildren()) do
  616.             if ffc(v, "Hitbox") and ffc(v.Hitbox, "Head") then
  617.                 local d =  workspace.CurrentCamera.CFrame.Position - v.Hitbox.Head.Position
  618.                 if d<mind then
  619.                     return v
  620.                 end
  621.             end
  622.         end
  623.     end
  624.     m.getignore = function()
  625.         local ret = { --[[ffc(workspace, "Arms")]] }
  626.         for i, v in pairs(workspace:GetChildren()) do
  627.             if v:IsA("Model") then
  628.                 table.insert(ret, v)
  629.                 --print(v)
  630.             end
  631.         end
  632.         return ret
  633.     end
  634. elseif game.GameId == gameids.ace then
  635.     m.GetCharacters = function()
  636.         local chars = {}
  637.         for  i, plr in pairs(m.GetPlayers()) do
  638.             if m.GetCharacterExistance(plr) and ffc(plr.Character,"Head") and ffc(plr.Character, 'Cosmetics') then
  639.                 chars[#chars+1] = {name = plr.Name, char =plr.Character, teamcolor = m.GetTeamColor(plr)}
  640.             end
  641.         end
  642.         return chars
  643.     end
  644. end
  645.  
  646.  
  647. return m
Add Comment
Please, Sign In to add comment