38 lines
2.4 KiB
Lua
38 lines
2.4 KiB
Lua
-- Prepended to Edit.lua and Visit.lua and Studio.lua and PlaySolo.lua--
|
|
|
|
if true then
|
|
pcall(function() game:SetPlaceID({{ PlaceID }}) end)
|
|
else
|
|
if {{ PlaceID }}>0 then
|
|
pcall(function() game:SetPlaceID({{ PlaceID }}) end)
|
|
end
|
|
end
|
|
|
|
visit = game:GetService("Visit")
|
|
|
|
local message = Instance.new("Message")
|
|
message.Parent = workspace
|
|
message.archivable = false
|
|
|
|
game:GetService("ScriptInformationProvider"):SetAssetUrl("{{ BaseUrl }}/Asset/")
|
|
game:GetService("ContentProvider"):SetThreadPool(16)
|
|
pcall(function() game:GetService("InsertService"):SetFreeModelUrl("{{ BaseUrl }}/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d") end) -- Used for free model search (insert tool)
|
|
pcall(function() game:GetService("InsertService"):SetFreeDecalUrl("{{ BaseUrl }}/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d") end) -- Used for free decal search (insert tool)
|
|
|
|
settings().Diagnostics:LegacyScriptMode()
|
|
|
|
game:GetService("InsertService"):SetBaseSetsUrl("{{ BaseUrl }}/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
|
|
game:GetService("InsertService"):SetUserSetsUrl("{{ BaseUrl }}/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
|
|
game:GetService("InsertService"):SetCollectionUrl("{{ BaseUrl }}/Game/Tools/InsertAsset.ashx?sid=%d")
|
|
game:GetService("InsertService"):SetAssetUrl("{{ BaseUrl }}/Asset/?id=%d")
|
|
game:GetService("InsertService"):SetAssetVersionUrl("{{ BaseUrl }}/Asset/?assetversionid=%d")
|
|
|
|
pcall(function() game:GetService("SocialService"):SetFriendUrl("{{ BaseUrl }}/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d") end)
|
|
pcall(function() game:GetService("SocialService"):SetBestFriendUrl("{{ BaseUrl }}/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d") end)
|
|
pcall(function() game:GetService("SocialService"):SetGroupUrl("{{ BaseUrl }}/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d") end)
|
|
pcall(function() game:GetService("SocialService"):SetGroupRankUrl("{{ BaseUrl }}/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d") end)
|
|
pcall(function() game:GetService("SocialService"):SetGroupRoleUrl("{{ BaseUrl }}/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d") end)
|
|
pcall(function() game:SetCreatorID({{ CreatorID }}, Enum.CreatorType.{{ CreatorType }}) end)
|
|
|
|
pcall(function() game:SetScreenshotInfo("") end)
|
|
pcall(function() game:SetVideoInfo("") end) |