Compress named corescripts with retain-lines darklua generator

This commit is contained in:
Lewin Kelly 2023-04-26 17:19:20 +01:00
parent 05ab4b836c
commit 443ca3f3fe
10 changed files with 498 additions and 474 deletions

View File

@ -1 +1,13 @@
yue ./yue && darklua process ./yue ./processed && rm -f ./yue/*.lua
yue ./yue
echo "Processing corescripts..."
for file in yue/[0-9]*.lua; do
darklua process -c dense.json5 $file processed/$(basename "$file")
done
echo "Processing other corescripts..."
for file in yue/[a-z]*.lua; do
darklua process -c lines.json5 $file processed/$(basename "$file")
done
rm -f ./yue/*.lua

View File

@ -15,5 +15,5 @@
rule: "rename_variables",
globals: ["$default", "$roblox"],
}
],
]
}

13
lines.json5 Normal file
View File

@ -0,0 +1,13 @@
{
rules: [
"remove_spaces",
"group_local_assignment",
"compute_expression",
"remove_unused_if_branch",
"remove_unused_while",
"remove_empty_do",
// "remove_method_definition",
"remove_function_call_parens",
"filter_after_early_return",
]
}

View File

@ -1,9 +1,9 @@
print("[Mercury]: Loaded Host corescript")
print"[Mercury]: Loaded Host corescript"
local placeId,sleeptime,access,url,killID,deathID,timeout,injectScriptAssetID,servicesUrl,libraryRegistrationScriptAssetID
pcall(function()
return game:GetService("ScriptContext"):AddStarterScript(injectScriptAssetID)
return game:GetService"ScriptContext":AddStarterScript(injectScriptAssetID)
end)
game:GetService("RunService"):Run()
game:GetService"RunService":Run()
local waitForChild
waitForChild=function(parent,childName)
while true do
@ -16,7 +16,7 @@ waitForChild = function(parent, childName)
end
local getKillerOfHumanoidIfStillInGame
getKillerOfHumanoidIfStillInGame=function(humanoid)
local tag = humanoid:findFirstChild("creator")
local tag=humanoid:findFirstChild"creator"
if tag then
local killer=tag.Value
if killer.Parent then
@ -26,8 +26,8 @@ getKillerOfHumanoidIfStillInGame = function(humanoid)
end
local onDied
onDied=function(victim,humanoid)
local killer = getKillerOfHumanoidIfStillInGame(humanoid)
local victorId = 0
local killer,
victorId=getKillerOfHumanoidIfStillInGame(humanoid),0
if killer then
victorId=killer.userId
print("STAT: kill by "..tostring(victorId).." of "..tostring(victim.userId))
@ -52,40 +52,40 @@ pcall(function()
return settings().Diagnostics:LegacyScriptMode()
end)
url="_BASE_URL"
local scriptContext = game:GetService("ScriptContext")
local scriptContext=game:GetService"ScriptContext"
pcall(function()
return scriptContext:AddStarterScript(libraryRegistrationScriptAssetID)
end)
scriptContext.ScriptsDisabled=true
game:GetService("ChangeHistoryService"):SetEnabled(false)
local ns = game:GetService("NetworkServer")
game:GetService"ChangeHistoryService":SetEnabled(false)
local ns=game:GetService"NetworkServer"
if(url~=nil)then
pcall(function()
return game:GetService("Players"):SetAbuseReportUrl(tostring(url) .. "/Report/Games.ashx")
return game:GetService"Players":SetAbuseReportUrl(tostring(url).."/Report/Games.ashx")
end)
pcall(function()
return game:GetService("ScriptInformationProvider"):SetAssetUrl(tostring(url) .. "/Asset/")
return game:GetService"ScriptInformationProvider":SetAssetUrl(tostring(url).."/Asset/")
end)
pcall(function()
return game:GetService("ContentProvider"):SetBaseUrl(tostring(url) .. "/")
return game:GetService"ContentProvider":SetBaseUrl(tostring(url).."/")
end)
if(access~=nil)then
do
local _with_0 = game:GetService("BadgeService")
local _with_0=game:GetService"BadgeService"
_with_0:SetAwardBadgeUrl(tostring(url).."/Game/Badge/AwardBadge.ashx?UserID=%d&BadgeID=%d&PlaceID=%d&"..tostring(access))
_with_0:SetHasBadgeUrl(tostring(url).."/Game/Badge/HasBadge.ashx?UserID=%d&BadgeID=%d&"..tostring(access))
_with_0:SetIsBadgeDisabledUrl(tostring(url).."/Game/Badge/IsBadgeDisabled.ashx?BadgeID=%d&PlaceID=%d&"..tostring(access))
end
do
local _with_0 = game:GetService("FriendService")
local _with_0=game:GetService"FriendService"
_with_0:SetMakeFriendUrl(tostring(servicesUrl).."/Friend/CreateFriend?firstUserId=%d&secondUserId=%d&"..tostring(access))
_with_0:SetBreakFriendUrl(tostring(servicesUrl).."/Friend/BreakFriend?firstUserId=%d&secondUserId=%d&"..tostring(access))
_with_0:SetGetFriendsUrl(tostring(servicesUrl).."/Friend/AreFriends?userId=%d&"..tostring(access))
end
end
game:GetService("BadgeService"):SetIsBadgeLegalUrl("")
game:GetService"BadgeService":SetIsBadgeLegalUrl""
do
local _with_0 = game:GetService("InsertService")
local _with_0=game:GetService"InsertService"
_with_0:SetBaseSetsUrl(tostring(url).."/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
_with_0:SetUserSetsUrl(tostring(url).."/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
_with_0:SetCollectionUrl(tostring(url).."/Game/Tools/InsertAsset.ashx?sid=%d")
@ -102,7 +102,7 @@ pcall(function()
end)
end
pcall(function()
return game:GetService("NetworkServer"):SetIsPlayerAuthenticationRequired(true)
return game:GetService"NetworkServer":SetIsPlayerAuthenticationRequired(true)
end)
settings().Diagnostics.LuaRamLimit=0
if(placeId~=nil)and(killID~=nil)and(deathID~=nil)and(url~=nil)then
@ -115,7 +115,7 @@ if (placeId ~= nil) and (killID ~= nil) and (deathID ~= nil) and (url ~= nil) th
end)
end
end
game:GetService("Players").ChildAdded:connect(function(player)
game:GetService"Players".ChildAdded:connect(function(player)
createDeathMonitor(player)
return player.Changed:connect(function(property)
if property=="Character"then
@ -124,14 +124,14 @@ if (placeId ~= nil) and (killID ~= nil) and (deathID ~= nil) and (url ~= nil) th
end)
end)
end
game:GetService("Players").PlayerAdded:connect(function(player)
game:GetService"Players".PlayerAdded:connect(function(player)
print("Player "..tostring(player.userId).." added")
if url and access and placeId and player and player.userId then
game:HttpGet(tostring(url).."/Game/ClientPresence.ashx?action=connect&"..tostring(access).."&PlaceID="..tostring(placeId).."&UserID="..tostring(player.userId))
return game:HttpGet(tostring(url).."/Game/PlaceVisit.ashx?UserID="..tostring(player.userId).."&AssociatedPlaceID="..tostring(placeId).."&"..tostring(access))
end
end)
game:GetService("Players").PlayerRemoving:connect(function(player)
game:GetService"Players".PlayerRemoving:connect(function(player)
print("Player "..tostring(player.userId).." leaving")
if url and access and placeId and player and player.userId then
return game:HttpGet(tostring(url).."/Game/ClientPresence.ashx?action=disconnect&"..tostring(access).."&PlaceID="..tostring(placeId).."&UserID="..tostring(player.userId))
@ -143,10 +143,10 @@ if (placeId ~= nil) and (url ~= nil) then
end
if _MAP_LOCATION_EXISTS then
wait()
game:Load("_MAP_LOCATION")
game:Load"_MAP_LOCATION"
end
ns:Start(_SERVER_PORT,sleeptime)
game:GetService("Visit"):SetPing("_SERVER_PRESENCE_URL", 30)
game:GetService"Visit":SetPing("_SERVER_PRESENCE_URL",30)
if timeout then
scriptContext:SetTimeout(timeout)
end

View File

@ -1,9 +1,9 @@
print("[Mercury]: Loaded Join corescript");
-- MultiplayerSharedScript.lua inserted here ------ Prepended to Join.lua --
print"[Mercury]: Loaded Join corescript"-- MultiplayerSharedScript.lua inserted here ------ Prepended to Join.lua --
pcall(function()
return game:SetPlaceID(_PLACE_ID,false)
end)
local isTouchDevice = Game:GetService("UserInputService").TouchEnabled
local isTouchDevice=Game:GetService"UserInputService".TouchEnabled
settings()["Game Options"].CollisionSoundEnabled=true
pcall(function()
settings().Rendering.EnableFRM=true
@ -22,49 +22,49 @@ if threadSleepTime == nil then
threadSleepTime=15
end
local test=_IS_STUDIO_JOIN
print("! Joining game '_PLACE_ID' place _PLACE_ID at _SERVER_ADDRESS")
game:GetService("ChangeHistoryService"):SetEnabled(false)
game:GetService("ContentProvider"):SetThreadPool(16)
print"! Joining game '_PLACE_ID' place _PLACE_ID at _SERVER_ADDRESS"
game:GetService"ChangeHistoryService":SetEnabled(false)
game:GetService"ContentProvider":SetThreadPool(16)
do
local _with_0 = game:GetService("InsertService")
_with_0:SetBaseSetsUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
_with_0:SetUserSetsUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
_with_0:SetCollectionUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d")
_with_0:SetAssetUrl("http://banland.xyz/Asset/?id=%d")
_with_0:SetAssetVersionUrl("http://www.roblox.com/Asset/?assetversionid=%d")
local _with_0=game:GetService"InsertService"
_with_0:SetBaseSetsUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base"
_with_0:SetUserSetsUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d"
_with_0:SetCollectionUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d"
_with_0:SetAssetUrl"http://banland.xyz/Asset/?id=%d"
_with_0:SetAssetVersionUrl"http://www.roblox.com/Asset/?assetversionid=%d"
end
do
local _with_0 = game:GetService("SocialService")
local _with_0=game:GetService"SocialService"
pcall(function()
return _with_0:SetFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d")
return _with_0:SetFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
end)
pcall(function()
return _with_0:SetBestFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d")
return _with_0:SetBestFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
end)
pcall(function()
return _with_0:SetGroupUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d")
return _with_0:SetGroupUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
end)
pcall(function()
return _with_0:SetGroupRankUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d")
return _with_0:SetGroupRankUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
end)
pcall(function()
return _with_0:SetGroupRoleUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d")
return _with_0:SetGroupRoleUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
end)
end
pcall(function()
return game:GetService("GamePassService"):SetPlayerHasPassUrl("http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d")
return game:GetService"GamePassService":SetPlayerHasPassUrl"http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
end)
pcall(function()
return game:GetService("MarketplaceService"):SetProductInfoUrl("https://banland.xyz/marketplace/productinfo?assetId=%d")
return game:GetService"MarketplaceService":SetProductInfoUrl"https://banland.xyz/marketplace/productinfo?assetId=%d"
end)
pcall(function()
return game:GetService("MarketplaceService"):SetPlayerOwnsAssetUrl("https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d")
return game:GetService"MarketplaceService":SetPlayerOwnsAssetUrl"https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
end)
pcall(function()
return game:SetCreatorID(_CREATOR_ID,Enum.CreatorType.User)
end)
pcall(function()
return game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble)
return game:GetService"Players":SetChatStyle(Enum.ChatStyle.ClassicAndBubble)
end)
local waitingForCharacter=false
pcall(function()
@ -72,15 +72,15 @@ pcall(function()
settings().Network.MtuOverride=1400
end
end)
client = game:GetService("NetworkClient")
visit = game:GetService("Visit")
client=game:GetService"NetworkClient"
visit=game:GetService"Visit"
setMessage=function(message)
return game:SetMessage((function()
if not false then
return message
else
return "Teleporting ..."
end
return game:SetMessage((function()do
return message end
end)())
end
showErrorWindow=function(message,_,_)
@ -89,7 +89,7 @@ end
reportError=function(err,message)
print("***ERROR*** "..tostring(err))
if not test then
visit:SetUploadUrl("")
visit:SetUploadUrl""
end
client:disconnect()
wait(4)
@ -111,11 +111,11 @@ requestCharacter = function(replicator)
return connection:disconnect()
end
end)
setMessage("Requesting character")
setMessage"Requesting character"
local success,err
success,err=pcall(function()
replicator:RequestCharacter()
setMessage("Waiting for character")
setMessage"Waiting for character"
waitingForCharacter=true
end)
if not success then
@ -124,18 +124,18 @@ requestCharacter = function(replicator)
end
end
onConnectionAccepted=function(url,replicator)
local connectResolved = true
local waitingForMarker = true
local success, err
local connectResolved,
waitingForMarker,
success,err=true,true,nil,nil
success,err=pcall(function()
if not test then
visit:SetPing("_PING_URL",30)
end
if not false then
game:SetMessageBrickCount()
else
setMessage("Teleporting ...")
end
end do
game:SetMessageBrickCount()end
replicator.Disconnection:connect(onDisconnection)
local marker=replicator:SendMarker()
return marker.Received:connect(function()
@ -161,7 +161,7 @@ onConnectionRejected = function()
end
local idled=false
onPlayerIdled=function(time)
if time > 20 * 60 then
if time>12E2 then
showErrorWindow(string.format("You were disconnected for being idle %d minutes",time/60),"Idle","Idle")
client:disconnect()
if not idled then
@ -174,7 +174,7 @@ pcall(function()
end)
local success,err=pcall(function()
game:SetRemoteBuildMode(true)
setMessage("Connecting to Server")
setMessage"Connecting to Server"
client.ConnectionAccepted:connect(onConnectionAccepted)
client.ConnectionRejected:connect(onConnectionRejected)
connectionFailed=client.ConnectionFailed:connect(onConnectionFailed)
@ -183,17 +183,17 @@ local success, err = pcall(function()
return client:PlayerConnect(_USER_ID,"_SERVER_ADDRESS",_SERVER_PORT,0,threadSleepTime)
end)
if not playerConnectSucces then
player = game:GetService("Players"):CreateLocalPlayer(_USER_ID)
player=game:GetService"Players":CreateLocalPlayer(_USER_ID)
client:Connect("_SERVER_ADDRESS",_SERVER_PORT,0,threadSleepTime)
end
if not test then
delay(300,function()
while false do
pcall(function()
return game:HttpPost("https://banland.xyz/auth/renew", "renew")
end)
wait(300)
end
end)
end
do
@ -215,7 +215,7 @@ pcall(function()
end)
player.CharacterAppearance="_CHAR_APPEARANCE"
if not test then
return visit:SetUploadUrl("")
return visit:SetUploadUrl""
end
end)
if not success then
@ -225,8 +225,8 @@ if not test then
loadfile(("")("",-1,0))
end
pcall(function()
return game:SetScreenshotInfo("")
return game:SetScreenshotInfo""
end)
return pcall(function()
return game:SetVideoInfo('<?xml version="1.0"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007"><media:group><media:title type="plain"><![CDATA[ROBLOX Place]]></media:title><media:description type="plain"><![CDATA[ For more games visit http://www.roblox.com]]></media:description><media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Games</media:category><media:keywords>ROBLOX, video, free game, online virtual world</media:keywords></media:group></entry>')
return game:SetVideoInfo'<?xml version="1.0"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007"><media:group><media:title type="plain"><![CDATA[ROBLOX Place]]></media:title><media:description type="plain"><![CDATA[ For more games visit http://www.roblox.com]]></media:description><media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Games</media:category><media:keywords>ROBLOX, video, free game, online virtual world</media:keywords></media:group></entry>'
end)

View File

@ -1,59 +1,59 @@
print("[Mercury]: Loaded Studio corescript")
print"[Mercury]: Loaded Studio corescript"
do
local _with_0 = game:GetService("InsertService")
local _with_0=game:GetService"InsertService"
pcall(function()
return _with_0:SetFreeModelUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d")
return _with_0:SetFreeModelUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d"
end)
pcall(function()
return _with_0:SetFreeDecalUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d")
return _with_0:SetFreeDecalUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d"
end)
game:GetService("ScriptInformationProvider"):SetAssetUrl("http://banland.xyz/Asset/")
_with_0:SetBaseSetsUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
_with_0:SetUserSetsUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
_with_0:SetCollectionUrl("http://banland.xyz/Game/Tools/InsertAsset.ashx?sid=%d")
_with_0:SetAssetUrl("http://banland.xyz/Asset/?id=%d")
_with_0:SetAssetVersionUrl("http://www.roblox.com/Asset/?assetversionid=%d")
game:GetService"ScriptInformationProvider":SetAssetUrl"http://banland.xyz/Asset/"
_with_0:SetBaseSetsUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?nsets=10&type=base"
_with_0:SetUserSetsUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d"
_with_0:SetCollectionUrl"http://banland.xyz/Game/Tools/InsertAsset.ashx?sid=%d"
_with_0:SetAssetUrl"http://banland.xyz/Asset/?id=%d"
_with_0:SetAssetVersionUrl"http://www.roblox.com/Asset/?assetversionid=%d"
_with_0:SetTrustLevel(0)
end
do
local _with_0 = game:GetService("SocialService")
local _with_0=game:GetService"SocialService"
pcall(function()
return _with_0:SetFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d")
return _with_0:SetFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
end)
pcall(function()
return _with_0:SetBestFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d")
return _with_0:SetBestFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
end)
pcall(function()
return _with_0:SetGroupUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d")
return _with_0:SetGroupUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
end)
pcall(function()
return _with_0:SetGroupRankUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d")
return _with_0:SetGroupRankUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
end)
pcall(function()
return _with_0:SetGroupRoleUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d")
return _with_0:SetGroupRoleUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
end)
end
pcall(function()
return game:GetService("GamePassService"):SetPlayerHasPassUrl("http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d")
return game:GetService"GamePassService":SetPlayerHasPassUrl"http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
end)
do
local _with_0 = game:GetService("MarketplaceService")
local _with_0=game:GetService"MarketplaceService"
pcall(function()
return _with_0:SetProductInfoUrl("https://banland.xyz/marketplace/productinfo?assetId=%d")
return _with_0:SetProductInfoUrl"https://banland.xyz/marketplace/productinfo?assetId=%d"
end)
pcall(function()
return _with_0:SetDevProductInfoUrl("https://banland.xyz/marketplace/productDetails?productId=%d")
return _with_0:SetDevProductInfoUrl"https://banland.xyz/marketplace/productDetails?productId=%d"
end)
pcall(function()
return _with_0:SetPlayerOwnsAssetUrl("https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d")
return _with_0:SetPlayerOwnsAssetUrl"https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
end)
end
local result,_
result,_=pcall(function()
return game:GetService("ScriptContext"):AddStarterScript(37801172)
return game:GetService"ScriptContext":AddStarterScript(37801172)
end)
if not result then
return pcall(function()
return game:GetService("ScriptContext"):AddCoreScript(37801172, game:GetService("ScriptContext", "StarterScript"))
return game:GetService"ScriptContext":AddCoreScript(37801172,game:GetService("ScriptContext","StarterScript"))
end)
end

View File

@ -1,59 +1,59 @@
print("[Mercury]: Loaded Visit corescript")
if true then
print"[Mercury]: Loaded Visit corescript"do
pcall(function()
return game:SetPlaceID(_PLACE_ID)
end)
end
local visit = game:GetService("Visit")
local message = Instance.new("Message")
end)end
local visit,
message=game:GetService"Visit",Instance.new"Message"
message.Parent=workspace
message.archivable=false
game:GetService("ScriptInformationProvider"):SetAssetUrl("http://banland.xyz/Asset/")
game:GetService("ContentProvider"):SetThreadPool(16)
game:GetService"ScriptInformationProvider":SetAssetUrl"http://banland.xyz/Asset/"
game:GetService"ContentProvider":SetThreadPool(16)
pcall(function()
return game:GetService("InsertService"):SetFreeModelUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d")
return game:GetService"InsertService":SetFreeModelUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d"
end)
pcall(function()
return game:GetService("InsertService"):SetFreeDecalUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d")
return game:GetService"InsertService":SetFreeDecalUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d"
end)
settings().Diagnostics:LegacyScriptMode()
do
local _with_0 = game:GetService("InsertService")
_with_0:SetBaseSetsUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
_with_0:SetUserSetsUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
_with_0:SetCollectionUrl("http://www.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d")
_with_0:SetAssetUrl("http://banland.xyz/Asset/?id=%d")
_with_0:SetAssetVersionUrl("http://www.roblox.com/Asset/?assetversionid=%d")
local _with_0=game:GetService"InsertService"
_with_0:SetBaseSetsUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base"
_with_0:SetUserSetsUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d"
_with_0:SetCollectionUrl"http://www.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d"
_with_0:SetAssetUrl"http://banland.xyz/Asset/?id=%d"
_with_0:SetAssetVersionUrl"http://www.roblox.com/Asset/?assetversionid=%d"
end
do
local _with_0 = game:GetService("SocialService")
local _with_0=game:GetService"SocialService"
pcall(function()
return _with_0:SetFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d")
return _with_0:SetFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
end)
pcall(function()
return _with_0:SetBestFriendUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d")
return _with_0:SetBestFriendUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
end)
pcall(function()
return _with_0:SetGroupUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d")
return _with_0:SetGroupUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
end)
pcall(function()
return _with_0:SetGroupRankUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d")
return _with_0:SetGroupRankUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
end)
pcall(function()
return _with_0:SetGroupRoleUrl("http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d")
return _with_0:SetGroupRoleUrl"http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
end)
end
pcall(function()
return game:GetService("GamePassService"):SetPlayerHasPassUrl("http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d")
return game:GetService"GamePassService":SetPlayerHasPassUrl"http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
end)
pcall(function()
return game:SetCreatorID(0,Enum.CreatorType.User)
end)
pcall(function()
return game:SetScreenshotInfo("")
return game:SetScreenshotInfo""
end)
pcall(function()
return game:SetVideoInfo("")
return game:SetVideoInfo""
end)
pcall(function()
settings().Rendering.EnableFRM=true
@ -61,38 +61,38 @@ end)
pcall(function()
settings()["Task Scheduler"].PriorityMethod=Enum.PriorityMethod.AccumulatedError
end)
game:GetService("ChangeHistoryService"):SetEnabled(false)
game:GetService"ChangeHistoryService":SetEnabled(false)
pcall(function()
return game:GetService("Players"):SetBuildUserPermissionsUrl("http://banland.xyz//Game/BuildActionPermissionCheck.ashx?assetId=0&userId=%d&isSolo=true")
return game:GetService"Players":SetBuildUserPermissionsUrl"http://banland.xyz//Game/BuildActionPermissionCheck.ashx?assetId=0&userId=%d&isSolo=true"
end)
workspace:SetPhysicsThrottleEnabled(true)
local addedBuildTools = false
local screenGui = game:GetService("CoreGui"):FindFirstChild("RobloxGui")
local doVisit
local addedBuildTools,
screenGui,
doVisit=false,game:GetService"CoreGui":FindFirstChild"RobloxGui",nil
doVisit=function()
message.Text = "Loading Game"
if false then
game:Load("")
message.Text="Loading Game"do
pcall(function()
return visit:SetUploadUrl("")
end)
else
pcall(function()
return visit:SetUploadUrl("")
end)
end
return visit:SetUploadUrl""
end)end
message.Text="Running"
game:GetService("RunService"):Run()
message.Text = "Creating Player"
if false then
player = game:GetService("Players"):CreateLocalPlayer(1)
player.Name = [====[Guest _GUEST_NUMBER]====]
else
player = game:GetService("Players"):CreateLocalPlayer(0)
end
game:GetService"RunService":Run()
message.Text="Creating Player"do
player=game:GetService"Players":CreateLocalPlayer(0)end
player.CharacterAppearance=""
local propExists = false
local canAutoLoadChar = false
local propExists,
canAutoLoadChar=false,false
propExists=pcall(function()
canAutoLoadChar=game.Players.CharacterAutoLoads
end)
@ -107,24 +107,24 @@ pcall(function()
pcall(function()
return player:SetAccountAge(0)
end)
if false then
message.Text = "Setting Ping"
visit:SetPing("http://banland.xyz/Game/ClientPresence.ashx?version=old&PlaceID=_PLACE_ID", 300)
message.Text = "Sending Stats"
return game:HttpGet("")
end
end
local success,err=pcall(doVisit)
if not addedBuildTools then
do
local _with_0 = Instance.new("StringValue")
local _with_0=Instance.new"StringValue"
_with_0.Name="PlayerName"
_with_0.Value=player.Name
_with_0.RobloxLocked=true
_with_0.Parent=screenGui
end
pcall(function()
return game:GetService("ScriptContext"):AddCoreScript(59431535, screenGui, "BuildToolsScript")
return game:GetService"ScriptContext":AddCoreScript(59431535,screenGui,"BuildToolsScript")
end)
addedBuildTools=true
end
@ -132,14 +132,14 @@ if success then
message.Parent=nil
else
print(err)
if false then
pcall(function()
return visit:SetUploadUrl("")
end)
end
wait(5)
message.Text="Error on visit: "..tostring(err)
if false then
return game:HttpPost("http://banland.xyz/Error/Lua.ashx?", "Visit.lua: " .. tostring(err))
end
end

View File

@ -1,5 +1,5 @@
import "macros" as { $ }
print "[Mercury]: Loaded Join corescript"
import "macros" as { $ }
-- functions --------------------------
-- onPlayerAdded = (player) ->

View File

@ -1,5 +1,4 @@
print "[Mercury]: Loaded Studio corescript"
-- Setup studio cmd bar & load core scripts
with game\GetService "InsertService"

View File

@ -1,5 +1,5 @@
-- Prepended to Edit.lua and Visit.lua and Studio.lua and PlaySolo.lua--
print "[Mercury]: Loaded Visit corescript"
-- Prepended to Edit.lua and Visit.lua and Studio.lua and PlaySolo.lua--
if true
try