Skip to content

Commit

Permalink
Fix issue of debuggers, pentesting tools, script analysers and exploi…
Browse files Browse the repository at this point in the history
…t simulators kicking people in Studio. (#1617)

* Fix studio dumb

Sceleratis

* Fix typo

* Fix conditions

* Remove unnecessary warning

* Remove unnecessary warn
  • Loading branch information
ccuser44 authored Nov 13, 2024
1 parent 45f3bae commit 3f5589a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions MainModule/Client/Core/Anti.luau
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,13 @@ return function(Vargs, GetEnv)
if NetworkClient and action ~= "_" then
pcall(Send, "D".."e".."t".."e".."c".."t".."e".."d", action, tostring(info)..(isXbox and " - On Xbox" or isMobile and " - On mobile" or ""))
task.wait(0.5)
if action == "k".."i".."c".."k" then
if not isStudio then
if nocrash then
Player:Kick(":"..":".." ".."A".."d".."o".."n".."i".."s".." ".."A".."n".."t".."i".." ".."C".."h".."e".."a".."t"..":"..":".."\n".. tostring(info)); -- service.Players.LocalPlayer
else
Disconnect(info)
end
if action == "k".."i".."c".."k" and not isStudio then
if nocrash then
Player:Kick(":"..":".." ".."A".."d".."o".."n".."i".."s".." ".."A".."n".."t".."i".." ".."C".."h".."e".."a".."t"..":"..":".."\n".. tostring(info)); -- service.Players.LocalPlayer
else
Disconnect(info)
end
elseif action == "c".."r".."a".."s".."h" then
elseif action == "c".."r".."a".."s".."h" and not isStudio then
Kill(info)
end
end
Expand Down Expand Up @@ -329,12 +327,12 @@ return function(Vargs, GetEnv)
pcall(metamethod, rawGame, proxyDetector)

if callstackInvalid or success or success2 or success3 then
return true
return not isStudio
elseif not errorMessages["namecallInstance"] then
errorMessages["namecallInstance"] = {err, err2, err3}
end

return not compareTables(errorMessages["namecallInstance"], {err, err2, err3})
return not compareTables(errorMessages["namecallInstance"], {err, err2, err3}) and not isStudio
end},
indexEnum = table.freeze{"kick", function()
local callstackInvalid = false
Expand Down

0 comments on commit 3f5589a

Please sign in to comment.