add gs
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
local PlaceId, baseUrl, authToken = ...
|
||||
|
||||
local ContentProvider = game:GetService("ContentProvider")
|
||||
game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.All, false);
|
||||
|
||||
pcall(function() game:GetService("ContentProvider"):SetBaseUrl(baseUrl) end)
|
||||
game:GetService("ScriptContext").ScriptsDisabled = true
|
||||
|
||||
local LoadSuccess, ErrorMessage = pcall(function()
|
||||
game:Load(baseUrl .. "/asset/?id=" .. tostring(PlaceId) .. "&access=" .. authToken)
|
||||
end)
|
||||
if not LoadSuccess then
|
||||
return ErrorMessage
|
||||
end
|
||||
return true
|
||||
Reference in New Issue
Block a user