Fix mc errors and improve host and join scripts
This commit is contained in:
parent
d396ddaaea
commit
a93b2d060f
|
|
@ -47,7 +47,7 @@ local smallScreenThreshold = 450
|
||||||
|
|
||||||
-- user facing images
|
-- user facing images
|
||||||
local function assetUrl(id: number)
|
local function assetUrl(id: number)
|
||||||
return `https://banland.xyz/asset?id={id}`
|
return `http://banland.xyz/asset?id={id}`
|
||||||
end
|
end
|
||||||
|
|
||||||
local errorImageUrl = assetUrl(42557901)
|
local errorImageUrl = assetUrl(42557901)
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,7 @@ function initializeDeveloperConsole()
|
||||||
Position = UDim2.new(0, 0, 0.5, -8),
|
Position = UDim2.new(0, 0, 0.5, -8),
|
||||||
Rotation = 180,
|
Rotation = 180,
|
||||||
Size = UDim2.new(1, 0, 0, 16),
|
Size = UDim2.new(1, 0, 0, 16),
|
||||||
Image = "https://banland.xyz/Asset?id=151205881",
|
Image = "http://banland.xyz/Asset?id=151205881",
|
||||||
}
|
}
|
||||||
|
|
||||||
local Dev_DownButton = Create "ImageButton" {
|
local Dev_DownButton = Create "ImageButton" {
|
||||||
|
|
@ -286,7 +286,7 @@ function initializeDeveloperConsole()
|
||||||
Position = UDim2.new(0, 3, 0, 3),
|
Position = UDim2.new(0, 3, 0, 3),
|
||||||
Size = UDim2.new(0, 14, 0, 14),
|
Size = UDim2.new(0, 14, 0, 14),
|
||||||
Rotation = 180,
|
Rotation = 180,
|
||||||
Image = "https://banland.xyz/Asset?id=151205813",
|
Image = "http://banland.xyz/Asset?id=151205813",
|
||||||
}
|
}
|
||||||
|
|
||||||
local Dev_UpButton = Create "ImageButton" {
|
local Dev_UpButton = Create "ImageButton" {
|
||||||
|
|
@ -304,7 +304,7 @@ function initializeDeveloperConsole()
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Position = UDim2.new(0, 3, 0, 3),
|
Position = UDim2.new(0, 3, 0, 3),
|
||||||
Size = UDim2.new(0, 14, 0, 14),
|
Size = UDim2.new(0, 14, 0, 14),
|
||||||
Image = "https://banland.xyz/Asset?id=151205813",
|
Image = "http://banland.xyz/Asset?id=151205813",
|
||||||
}
|
}
|
||||||
|
|
||||||
local Dev_TextBox = Create "Frame" {
|
local Dev_TextBox = Create "Frame" {
|
||||||
|
|
@ -341,7 +341,7 @@ function initializeDeveloperConsole()
|
||||||
Position = UDim2.new(0, 0, 0, 0),
|
Position = UDim2.new(0, 0, 0, 0),
|
||||||
Size = UDim2.new(1, 0, 1, 0),
|
Size = UDim2.new(1, 0, 1, 0),
|
||||||
Rotation = 0,
|
Rotation = 0,
|
||||||
Image = "https://banland.xyz/Asset?id=152093917",
|
Image = "http://banland.xyz/Asset?id=152093917",
|
||||||
}
|
}
|
||||||
|
|
||||||
local Dev_ResizeButton = Create "ImageButton" {
|
local Dev_ResizeButton = Create "ImageButton" {
|
||||||
|
|
@ -360,7 +360,7 @@ function initializeDeveloperConsole()
|
||||||
Position = UDim2.new(0, 6, 0, 6),
|
Position = UDim2.new(0, 6, 0, 6),
|
||||||
Size = UDim2.new(0.8, 0, 0.8, 0),
|
Size = UDim2.new(0.8, 0, 0.8, 0),
|
||||||
Rotation = 135,
|
Rotation = 135,
|
||||||
Image = "https://banland.xyz/Asset?id=151205813",
|
Image = "http://banland.xyz/Asset?id=151205813",
|
||||||
}
|
}
|
||||||
|
|
||||||
Create "TextButton" {
|
Create "TextButton" {
|
||||||
|
|
@ -415,7 +415,7 @@ function initializeDeveloperConsole()
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Position = UDim2.new(0, 3, 0, 3),
|
Position = UDim2.new(0, 3, 0, 3),
|
||||||
Size = UDim2.new(0, 14, 0, 14),
|
Size = UDim2.new(0, 14, 0, 14),
|
||||||
Image = "https://banland.xyz/Asset?id=151205852",
|
Image = "http://banland.xyz/Asset?id=151205852",
|
||||||
}
|
}
|
||||||
|
|
||||||
Create "TextButton" {
|
Create "TextButton" {
|
||||||
|
|
|
||||||
|
|
@ -71,40 +71,36 @@ else
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
if game.CoreGui.Version >= 3 and game.PlaceId ~= 130815926 then --todo: remove placeid hack for halloween
|
-- Backpack Builder, creates most of the backpack gui
|
||||||
-- Backpack Builder, creates most of the backpack gui
|
scriptContext:AddCoreScript(
|
||||||
scriptContext:AddCoreScript(
|
53878047,
|
||||||
53878047,
|
screenGui,
|
||||||
screenGui,
|
"CoreScripts/BackpackScripts/BackpackBuilder"
|
||||||
"CoreScripts/BackpackScripts/BackpackBuilder"
|
)
|
||||||
)
|
|
||||||
|
|
||||||
waitForChild(screenGui, "CurrentLoadout")
|
waitForChild(screenGui, "CurrentLoadout")
|
||||||
waitForChild(screenGui, "Backpack")
|
waitForChild(screenGui, "Backpack")
|
||||||
local Backpack = screenGui.Backpack
|
local Backpack = screenGui.Backpack
|
||||||
|
|
||||||
-- Manager handles all big backpack state changes, other scripts subscribe to this and do things accordingly
|
-- Manager handles all big backpack state changes, other scripts subscribe to this and do things accordingly
|
||||||
if game.CoreGui.Version >= 7 then
|
scriptContext:AddCoreScript(
|
||||||
scriptContext:AddCoreScript(
|
89449093,
|
||||||
89449093,
|
Backpack,
|
||||||
Backpack,
|
"CoreScripts/BackpackScripts/BackpackManager"
|
||||||
"CoreScripts/BackpackScripts/BackpackManager"
|
)
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Backpack Gear (handles all backpack gear tab stuff)
|
-- Backpack Gear (handles all backpack gear tab stuff)
|
||||||
game:GetService("ScriptContext"):AddCoreScript(
|
scriptContext:AddCoreScript(
|
||||||
89449008,
|
89449008,
|
||||||
Backpack,
|
Backpack,
|
||||||
"CoreScripts/BackpackScripts/BackpackGear"
|
"CoreScripts/BackpackScripts/BackpackGear"
|
||||||
)
|
)
|
||||||
-- Loadout Script, used for gear hotkeys
|
-- Loadout Script, used for gear hotkeys
|
||||||
scriptContext:AddCoreScript(
|
scriptContext:AddCoreScript(
|
||||||
53878057,
|
53878057,
|
||||||
screenGui.CurrentLoadout,
|
screenGui.CurrentLoadout,
|
||||||
"CoreScripts/BackpackScripts/LoadoutScript"
|
"CoreScripts/BackpackScripts/LoadoutScript"
|
||||||
)
|
)
|
||||||
end
|
|
||||||
|
|
||||||
local IsPersonalServer = not not game.Workspace:FindFirstChild "PSVariable"
|
local IsPersonalServer = not not game.Workspace:FindFirstChild "PSVariable"
|
||||||
if IsPersonalServer then
|
if IsPersonalServer then
|
||||||
|
|
|
||||||
|
|
@ -149,13 +149,13 @@ RbxGui.CreateStyledMessageDialog = function(title, message, style, buttons)
|
||||||
styleImage.Position = UDim2.new(0, 5, 0, 15)
|
styleImage.Position = UDim2.new(0, 5, 0, 15)
|
||||||
if style == "error" or style == "Error" then
|
if style == "error" or style == "Error" then
|
||||||
styleImage.Size = UDim2.new(0, 71, 0, 71)
|
styleImage.Size = UDim2.new(0, 71, 0, 71)
|
||||||
styleImage.Image = "https://banland.xyz/asset?id=42565285"
|
styleImage.Image = "http://banland.xyz/asset?id=42565285"
|
||||||
elseif style == "notify" or style == "Notify" then
|
elseif style == "notify" or style == "Notify" then
|
||||||
styleImage.Size = UDim2.new(0, 71, 0, 71)
|
styleImage.Size = UDim2.new(0, 71, 0, 71)
|
||||||
styleImage.Image = "https://banland.xyz/asset?id=42604978"
|
styleImage.Image = "http://banland.xyz/asset?id=42604978"
|
||||||
elseif style == "confirm" or style == "Confirm" then
|
elseif style == "confirm" or style == "Confirm" then
|
||||||
styleImage.Size = UDim2.new(0, 74, 0, 76)
|
styleImage.Size = UDim2.new(0, 74, 0, 76)
|
||||||
styleImage.Image = "https://banland.xyz/asset?id=42557901"
|
styleImage.Image = "http://banland.xyz/asset?id=42557901"
|
||||||
else
|
else
|
||||||
return RbxGui.CreateMessageDialog(title, message, buttons)
|
return RbxGui.CreateMessageDialog(title, message, buttons)
|
||||||
end
|
end
|
||||||
|
|
@ -264,7 +264,7 @@ RbxGui.CreateDropDownMenu = function(items, onSelect, forRoblox)
|
||||||
local dropDownIcon = Instance.new "ImageLabel"
|
local dropDownIcon = Instance.new "ImageLabel"
|
||||||
dropDownIcon.Name = "Icon"
|
dropDownIcon.Name = "Icon"
|
||||||
dropDownIcon.Active = false
|
dropDownIcon.Active = false
|
||||||
dropDownIcon.Image = "https://banland.xyz/asset/?id=45732894"
|
dropDownIcon.Image = "http://banland.xyz/asset/?id=45732894"
|
||||||
dropDownIcon.BackgroundTransparency = 1
|
dropDownIcon.BackgroundTransparency = 1
|
||||||
dropDownIcon.Size = UDim2.new(0, 11, 0, 6)
|
dropDownIcon.Size = UDim2.new(0, 11, 0, 6)
|
||||||
dropDownIcon.Position = UDim2.new(1, -11, 0.5, -2)
|
dropDownIcon.Position = UDim2.new(1, -11, 0.5, -2)
|
||||||
|
|
@ -1533,7 +1533,7 @@ RbxGui.CreateScrollingFrame = function(orderList, scrollStyle)
|
||||||
local scrollStamp = 0
|
local scrollStamp = 0
|
||||||
|
|
||||||
local scrollDrag = Instance.new "ImageButton"
|
local scrollDrag = Instance.new "ImageButton"
|
||||||
scrollDrag.Image = "https://banland.xyz/asset/?id=61367186"
|
scrollDrag.Image = "http://banland.xyz/asset/?id=61367186"
|
||||||
scrollDrag.Size = UDim2.new(1, 0, 0, 16)
|
scrollDrag.Size = UDim2.new(1, 0, 0, 16)
|
||||||
scrollDrag.BackgroundTransparency = 1
|
scrollDrag.BackgroundTransparency = 1
|
||||||
scrollDrag.Name = "ScrollDrag"
|
scrollDrag.Name = "ScrollDrag"
|
||||||
|
|
@ -2964,7 +2964,7 @@ RbxGui.CreateSetPanel = function(
|
||||||
local cancelImage = Instance.new "ImageLabel"
|
local cancelImage = Instance.new "ImageLabel"
|
||||||
cancelImage.Name = "CancelImage"
|
cancelImage.Name = "CancelImage"
|
||||||
cancelImage.BackgroundTransparency = 1
|
cancelImage.BackgroundTransparency = 1
|
||||||
cancelImage.Image = "https://banland.xyz/asset?id=54135717"
|
cancelImage.Image = "http://banland.xyz/asset?id=54135717"
|
||||||
cancelImage.Position = UDim2.new(0, -2, 0, -2)
|
cancelImage.Position = UDim2.new(0, -2, 0, -2)
|
||||||
cancelImage.Size = UDim2.new(0, 16, 0, 16)
|
cancelImage.Size = UDim2.new(0, 16, 0, 16)
|
||||||
cancelImage.ZIndex = 6
|
cancelImage.ZIndex = 6
|
||||||
|
|
@ -3200,7 +3200,7 @@ RbxGui.CreateSetPanel = function(
|
||||||
local function createDropDownMenuButton(parent)
|
local function createDropDownMenuButton(parent)
|
||||||
local dropDownButton = Instance.new "ImageButton"
|
local dropDownButton = Instance.new "ImageButton"
|
||||||
dropDownButton.Name = "DropDownButton"
|
dropDownButton.Name = "DropDownButton"
|
||||||
dropDownButton.Image = "https://banland.xyz/asset/?id=67581509"
|
dropDownButton.Image = "http://banland.xyz/asset/?id=67581509"
|
||||||
dropDownButton.BackgroundTransparency = 1
|
dropDownButton.BackgroundTransparency = 1
|
||||||
dropDownButton.Size = UDim2.new(0, 16, 0, 16)
|
dropDownButton.Size = UDim2.new(0, 16, 0, 16)
|
||||||
dropDownButton.Position = UDim2.new(1, -24, 0, 6)
|
dropDownButton.Position = UDim2.new(1, -24, 0, 6)
|
||||||
|
|
@ -3766,58 +3766,58 @@ RbxGui.CreateTerrainMaterialSelector = function(size, position)
|
||||||
materialToImageMap[v] = {}
|
materialToImageMap[v] = {}
|
||||||
if v == "Grass" then
|
if v == "Grass" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=56563112"
|
"http://banland.xyz/asset/?id=56563112"
|
||||||
elseif v == "Sand" then
|
elseif v == "Sand" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=62356652"
|
"http://banland.xyz/asset/?id=62356652"
|
||||||
elseif v == "Brick" then
|
elseif v == "Brick" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=65961537"
|
"http://banland.xyz/asset/?id=65961537"
|
||||||
elseif v == "Granite" then
|
elseif v == "Granite" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532153"
|
"http://banland.xyz/asset/?id=67532153"
|
||||||
elseif v == "Asphalt" then
|
elseif v == "Asphalt" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532038"
|
"http://banland.xyz/asset/?id=67532038"
|
||||||
elseif v == "Iron" then
|
elseif v == "Iron" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532093"
|
"http://banland.xyz/asset/?id=67532093"
|
||||||
elseif v == "Aluminum" then
|
elseif v == "Aluminum" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67531995"
|
"http://banland.xyz/asset/?id=67531995"
|
||||||
elseif v == "Gold" then
|
elseif v == "Gold" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532118"
|
"http://banland.xyz/asset/?id=67532118"
|
||||||
elseif v == "Plastic (red)" then
|
elseif v == "Plastic (red)" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67531848"
|
"http://banland.xyz/asset/?id=67531848"
|
||||||
elseif v == "Plastic (blue)" then
|
elseif v == "Plastic (blue)" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67531924"
|
"http://banland.xyz/asset/?id=67531924"
|
||||||
elseif v == "Plank" then
|
elseif v == "Plank" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532015"
|
"http://banland.xyz/asset/?id=67532015"
|
||||||
elseif v == "Log" then
|
elseif v == "Log" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532051"
|
"http://banland.xyz/asset/?id=67532051"
|
||||||
elseif v == "Gravel" then
|
elseif v == "Gravel" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532206"
|
"http://banland.xyz/asset/?id=67532206"
|
||||||
elseif v == "Cinder Block" then
|
elseif v == "Cinder Block" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532103"
|
"http://banland.xyz/asset/?id=67532103"
|
||||||
elseif v == "Stone Wall" then
|
elseif v == "Stone Wall" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67531804"
|
"http://banland.xyz/asset/?id=67531804"
|
||||||
elseif v == "Concrete" then
|
elseif v == "Concrete" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=67532059"
|
"http://banland.xyz/asset/?id=67532059"
|
||||||
elseif v == "Water" then
|
elseif v == "Water" then
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=81407474"
|
"http://banland.xyz/asset/?id=81407474"
|
||||||
else
|
else
|
||||||
materialToImageMap[v].Regular =
|
materialToImageMap[v].Regular =
|
||||||
"https://banland.xyz/asset/?id=66887593" -- fill in the rest here!!
|
"http://banland.xyz/asset/?id=66887593" -- fill in the rest here!!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -3938,7 +3938,7 @@ end
|
||||||
|
|
||||||
RbxGui.CreateLoadingFrame = function(name, size, position)
|
RbxGui.CreateLoadingFrame = function(name, size, position)
|
||||||
game:GetService("ContentProvider")
|
game:GetService("ContentProvider")
|
||||||
:Preload "https://banland.xyz/asset/?id=35238053"
|
:Preload "http://banland.xyz/asset/?id=35238053"
|
||||||
|
|
||||||
local loadingFrame = Instance.new "Frame"
|
local loadingFrame = Instance.new "Frame"
|
||||||
loadingFrame.Name = "LoadingFrame"
|
loadingFrame.Name = "LoadingFrame"
|
||||||
|
|
@ -3965,7 +3965,7 @@ RbxGui.CreateLoadingFrame = function(name, size, position)
|
||||||
|
|
||||||
local loadingGreenBar = Instance.new "ImageLabel"
|
local loadingGreenBar = Instance.new "ImageLabel"
|
||||||
loadingGreenBar.Name = "LoadingGreenBar"
|
loadingGreenBar.Name = "LoadingGreenBar"
|
||||||
loadingGreenBar.Image = "https://banland.xyz/asset/?id=35238053"
|
loadingGreenBar.Image = "http://banland.xyz/asset/?id=35238053"
|
||||||
loadingGreenBar.Position = UDim2.new(0, 0, 0, 0)
|
loadingGreenBar.Position = UDim2.new(0, 0, 0, 0)
|
||||||
loadingGreenBar.Size = UDim2.new(0, 0, 1, 0)
|
loadingGreenBar.Size = UDim2.new(0, 0, 1, 0)
|
||||||
loadingGreenBar.Visible = false
|
loadingGreenBar.Visible = false
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -10,9 +10,9 @@ print "[Mercury]: Loaded corescript 48488235"
|
||||||
local ADMINS = {
|
local ADMINS = {
|
||||||
taskmanager = 1,
|
taskmanager = 1,
|
||||||
heliodex = 1,
|
heliodex = 1,
|
||||||
multako = "https://banland.xyz/asset?id=6923328292",
|
multako = "http://banland.xyz/asset?id=6923328292",
|
||||||
mercury = 1,
|
mercury = 1,
|
||||||
pizzaboxer = "https://banland.xyz/asset?id=6917566633",
|
pizzaboxer = "http://banland.xyz/asset?id=6917566633",
|
||||||
}
|
}
|
||||||
|
|
||||||
local Images = {
|
local Images = {
|
||||||
|
|
@ -87,7 +87,7 @@ end
|
||||||
local function getMembershipTypeIcon(membershipType, playerName)
|
local function getMembershipTypeIcon(membershipType, playerName)
|
||||||
if ADMINS[string.lower(playerName)] ~= nil then
|
if ADMINS[string.lower(playerName)] ~= nil then
|
||||||
if ADMINS[string.lower(playerName)] == 1 then
|
if ADMINS[string.lower(playerName)] == 1 then
|
||||||
return "https://banland.xyz/asset?id=6923330951"
|
return "http://banland.xyz/asset?id=6923330951"
|
||||||
end
|
end
|
||||||
return ADMINS[string.lower(playerName)]
|
return ADMINS[string.lower(playerName)]
|
||||||
elseif membershipType == Enum.MembershipType.None then
|
elseif membershipType == Enum.MembershipType.None then
|
||||||
|
|
@ -110,11 +110,11 @@ local function getFriendStatusIcon(friendStatus)
|
||||||
then
|
then
|
||||||
return ""
|
return ""
|
||||||
elseif friendStatus == Enum.FriendStatus.Friend then
|
elseif friendStatus == Enum.FriendStatus.Friend then
|
||||||
return "https://banland.xyz/asset?id=99749771"
|
return "http://banland.xyz/asset?id=99749771"
|
||||||
elseif friendStatus == Enum.FriendStatus.FriendRequestSent then
|
elseif friendStatus == Enum.FriendStatus.FriendRequestSent then
|
||||||
return "https://banland.xyz/asset?id=99776888"
|
return "http://banland.xyz/asset?id=99776888"
|
||||||
elseif friendStatus == Enum.FriendStatus.FriendRequestReceived then
|
elseif friendStatus == Enum.FriendStatus.FriendRequestReceived then
|
||||||
return "https://banland.xyz/asset?id=99776838"
|
return "http://banland.xyz/asset?id=99776838"
|
||||||
else
|
else
|
||||||
error(`Unknown FriendStatus {friendStatus}`)
|
error(`Unknown FriendStatus {friendStatus}`)
|
||||||
end
|
end
|
||||||
|
|
@ -155,20 +155,20 @@ local function MakePopupButton(nparent, ntext, index, last)
|
||||||
Parent = nparent,
|
Parent = nparent,
|
||||||
}
|
}
|
||||||
if index == 0 then
|
if index == 0 then
|
||||||
tobj.Image = "https://banland.xyz/asset?id=97108784"
|
tobj.Image = "http://banland.xyz/asset?id=97108784"
|
||||||
elseif last then
|
elseif last then
|
||||||
if index % 2 == 1 then
|
if index % 2 == 1 then
|
||||||
tobj.Image = "https://banland.xyz/asset?id="
|
tobj.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.LightPopupBottom
|
.. Images.LightPopupBottom
|
||||||
else
|
else
|
||||||
tobj.Image = "https://banland.xyz/asset?id="
|
tobj.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.DarkPopupBottom
|
.. Images.DarkPopupBottom
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if index % 2 == 1 then
|
if index % 2 == 1 then
|
||||||
tobj.Image = "https://banland.xyz/asset?id=97112126"
|
tobj.Image = "http://banland.xyz/asset?id=97112126"
|
||||||
else
|
else
|
||||||
tobj.Image = "https://banland.xyz/asset?id=97109338"
|
tobj.Image = "http://banland.xyz/asset?id=97109338"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return tobj
|
return tobj
|
||||||
|
|
@ -219,7 +219,7 @@ HeaderFrame = Create "Frame" {
|
||||||
Position = UDim2.new(0, 0, 0, 0),
|
Position = UDim2.new(0, 0, 0, 0),
|
||||||
Size = UDim2.new(1, 0, 0.07, 0),
|
Size = UDim2.new(1, 0, 0.07, 0),
|
||||||
Parent = MainFrame,
|
Parent = MainFrame,
|
||||||
MakeBackgroundGuiObj "https://banland.xyz/asset?id=94692054",
|
MakeBackgroundGuiObj "http://banland.xyz/asset?id=94692054",
|
||||||
}
|
}
|
||||||
local HeaderFrameHeight = HeaderFrame.Size.Y.Scale
|
local HeaderFrameHeight = HeaderFrame.Size.Y.Scale
|
||||||
local MaximizeButton = Create "ImageButton" {
|
local MaximizeButton = Create "ImageButton" {
|
||||||
|
|
@ -276,7 +276,7 @@ local BottomFrame = Create "Frame" {
|
||||||
Position = UDim2.new(0, 0, 0.07, 0),
|
Position = UDim2.new(0, 0, 0.07, 0),
|
||||||
Size = UDim2.new(1, 0, 0.03, 0),
|
Size = UDim2.new(1, 0, 0.03, 0),
|
||||||
Parent = BottomShiftFrame,
|
Parent = BottomShiftFrame,
|
||||||
MakeBackgroundGuiObj "https://banland.xyz/asset?id=94754966",
|
MakeBackgroundGuiObj "http://banland.xyz/asset?id=94754966",
|
||||||
}
|
}
|
||||||
local ExtendButton = Create "ImageButton" {
|
local ExtendButton = Create "ImageButton" {
|
||||||
Name = "bigbutton",
|
Name = "bigbutton",
|
||||||
|
|
@ -291,7 +291,7 @@ local ExtendTab = Create "ImageButton" {
|
||||||
Name = "extendTab",
|
Name = "extendTab",
|
||||||
Active = true,
|
Active = true,
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Image = "https://banland.xyz/asset?id=94692731",
|
Image = "http://banland.xyz/asset?id=94692731",
|
||||||
Position = UDim2.new(0.608, 0, 0.3, 0),
|
Position = UDim2.new(0.608, 0, 0.3, 0),
|
||||||
Size = UDim2.new(0.3, 0, 0.7, 0),
|
Size = UDim2.new(0.3, 0, 0.7, 0),
|
||||||
Parent = BottomFrame,
|
Parent = BottomFrame,
|
||||||
|
|
@ -443,7 +443,7 @@ local MiddleBGTemplate = Create "Frame" {
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Position = UDim2.new(100, 0, 0.07, 0),
|
Position = UDim2.new(100, 0, 0.07, 0),
|
||||||
Size = UDim2.new(0.5, 0, 0.025, 0), --UDim2.new(1, 0, .03, 0),
|
Size = UDim2.new(0.5, 0, 0.025, 0), --UDim2.new(1, 0, .03, 0),
|
||||||
MakeBackgroundGuiObj "https://banland.xyz/asset?id=94692025",
|
MakeBackgroundGuiObj "http://banland.xyz/asset?id=94692025",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- REPORT ABUSE OBJECTS
|
-- REPORT ABUSE OBJECTS
|
||||||
|
|
@ -474,7 +474,7 @@ local AbuseSettingsFrame = Create "Frame" {
|
||||||
Size = UDim2.new(1, 0, 1, 0),
|
Size = UDim2.new(1, 0, 1, 0),
|
||||||
Active = true,
|
Active = true,
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
MakeBackgroundGuiObj "https://banland.xyz/asset?id=96488767", -- 96480351'),
|
MakeBackgroundGuiObj "http://banland.xyz/asset?id=96488767", -- 96480351'),
|
||||||
Create "TextLabel" {
|
Create "TextLabel" {
|
||||||
Name = "Title",
|
Name = "Title",
|
||||||
Text = "Report Abuse",
|
Text = "Report Abuse",
|
||||||
|
|
@ -553,7 +553,7 @@ local SubmitReportButton = Create "ImageButton" {
|
||||||
Position = UDim2.new(0.5, -200, 1, -80),
|
Position = UDim2.new(0.5, -200, 1, -80),
|
||||||
Size = UDim2.new(0, 150, 0, 50),
|
Size = UDim2.new(0, 150, 0, 50),
|
||||||
AutoButtonColor = false,
|
AutoButtonColor = false,
|
||||||
Image = "https://banland.xyz/asset?id=96502438", -- 96501119',
|
Image = "http://banland.xyz/asset?id=96502438", -- 96501119',
|
||||||
Parent = AbuseSettingsFrame,
|
Parent = AbuseSettingsFrame,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -563,7 +563,7 @@ local CancelReportButton = Create "ImageButton" {
|
||||||
Position = UDim2.new(0.5, 50, 1, -80),
|
Position = UDim2.new(0.5, 50, 1, -80),
|
||||||
Size = UDim2.new(0, 150, 0, 50),
|
Size = UDim2.new(0, 150, 0, 50),
|
||||||
AutoButtonColor = true,
|
AutoButtonColor = true,
|
||||||
Image = "https://banland.xyz/asset?id=96500683",
|
Image = "http://banland.xyz/asset?id=96500683",
|
||||||
Parent = AbuseSettingsFrame,
|
Parent = AbuseSettingsFrame,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -599,7 +599,7 @@ local CalmingAbuseBox = Create "Frame" {
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Position = UDim2.new(0.25, 0, 0.300000012, 0),
|
Position = UDim2.new(0.25, 0, 0.300000012, 0),
|
||||||
Size = UDim2.new(0.5, 0, 0.370000005, 0),
|
Size = UDim2.new(0.5, 0, 0.370000005, 0),
|
||||||
MakeBackgroundGuiObj "https://banland.xyz/asset?id=96506233",
|
MakeBackgroundGuiObj "http://banland.xyz/asset?id=96506233",
|
||||||
Create "TextLabel" {
|
Create "TextLabel" {
|
||||||
Name = "Header",
|
Name = "Header",
|
||||||
Position = UDim2.new(0, 10, 0.05, 0),
|
Position = UDim2.new(0, 10, 0.05, 0),
|
||||||
|
|
@ -632,7 +632,7 @@ local CalmingAbuseBox = Create "Frame" {
|
||||||
Position = UDim2.new(0.5, -75, 1, -80),
|
Position = UDim2.new(0.5, -75, 1, -80),
|
||||||
Size = UDim2.new(0, 150, 0, 50),
|
Size = UDim2.new(0, 150, 0, 50),
|
||||||
AutoButtonColor = true,
|
AutoButtonColor = true,
|
||||||
Image = "https://banland.xyz/asset?id=96507959",
|
Image = "http://banland.xyz/asset?id=96507959",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
local NormalAbuseBox = Create "Frame" {
|
local NormalAbuseBox = Create "Frame" {
|
||||||
|
|
@ -640,7 +640,7 @@ local NormalAbuseBox = Create "Frame" {
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Position = UDim2.new(0.25, 0, 0.300000012, 0),
|
Position = UDim2.new(0.25, 0, 0.300000012, 0),
|
||||||
Size = UDim2.new(0.5, 0, 0.370000005, 0),
|
Size = UDim2.new(0.5, 0, 0.370000005, 0),
|
||||||
MakeBackgroundGuiObj "https://banland.xyz/asset?id=96506233",
|
MakeBackgroundGuiObj "http://banland.xyz/asset?id=96506233",
|
||||||
Create "TextLabel" {
|
Create "TextLabel" {
|
||||||
Name = "Header",
|
Name = "Header",
|
||||||
Position = UDim2.new(0, 10, 0.05, 0),
|
Position = UDim2.new(0, 10, 0.05, 0),
|
||||||
|
|
@ -673,7 +673,7 @@ local NormalAbuseBox = Create "Frame" {
|
||||||
Position = UDim2.new(0.5, -75, 1, -80),
|
Position = UDim2.new(0.5, -75, 1, -80),
|
||||||
Size = UDim2.new(0, 150, 0, 50),
|
Size = UDim2.new(0, 150, 0, 50),
|
||||||
AutoButtonColor = true,
|
AutoButtonColor = true,
|
||||||
Image = "https://banland.xyz/asset?id=96507959",
|
Image = "http://banland.xyz/asset?id=96507959",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -693,7 +693,7 @@ local debugFrame = Create "Frame" {
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Position = UDim2.new(0.25, 0, 0.300000012, 0),
|
Position = UDim2.new(0.25, 0, 0.300000012, 0),
|
||||||
Size = UDim2.new(0.5, 0, 0.370000005, 0),
|
Size = UDim2.new(0.5, 0, 0.370000005, 0),
|
||||||
MakeBackgroundGuiObj "https://banland.xyz/asset?id=96506233",
|
MakeBackgroundGuiObj "http://banland.xyz/asset?id=96506233",
|
||||||
}
|
}
|
||||||
local debugOutput = Create "TextLabel" {
|
local debugOutput = Create "TextLabel" {
|
||||||
BackgroundTransparency = 0.8,
|
BackgroundTransparency = 0.8,
|
||||||
|
|
@ -746,8 +746,9 @@ local RbxGui = assert(LoadLibrary "RbxGui")
|
||||||
local DefaultEntriesOnScreen = 8
|
local DefaultEntriesOnScreen = 8
|
||||||
|
|
||||||
for _, i in pairs(Images) do
|
for _, i in pairs(Images) do
|
||||||
Game:GetService("ContentProvider")
|
Game:GetService("ContentProvider"):Preload(
|
||||||
:Preload(`https://banland.xyz/asset?id={i}`)
|
`http://banland.xyz/asset?id={i}`
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- ordered array of 'score data', each entry has:
|
-- ordered array of 'score data', each entry has:
|
||||||
|
|
@ -1014,25 +1015,24 @@ local function HighlightMyRank(
|
||||||
MemberButton,
|
MemberButton,
|
||||||
AdminButton
|
AdminButton
|
||||||
)
|
)
|
||||||
BanPlayerButton.Image =
|
BanPlayerButton.Image = `http://banland.xyz/asset?id={Images.LightPopupMid}`
|
||||||
`https://banland.xyz/asset?id={Images.LightPopupMid}`
|
VisitorButton.Image = `http://banland.xyz/asset?id={Images.DarkPopupMid}`
|
||||||
VisitorButton.Image = `https://banland.xyz/asset?id={Images.DarkPopupMid}`
|
MemberButton.Image = `http://banland.xyz/asset?id={Images.LightPopupMid}`
|
||||||
MemberButton.Image = `https://banland.xyz/asset?id={Images.LightPopupMid}`
|
AdminButton.Image = `http://banland.xyz/asset?id={Images.DarkPopupBottom}`
|
||||||
AdminButton.Image = `https://banland.xyz/asset?id={Images.DarkPopupBottom}`
|
|
||||||
|
|
||||||
local rank = player.PersonalServerRank
|
local rank = player.PersonalServerRank
|
||||||
if rank <= PrivilegeLevel.Banned then
|
if rank <= PrivilegeLevel.Banned then
|
||||||
BanPlayerButton.Image =
|
BanPlayerButton.Image =
|
||||||
`https://banland.xyz/asset?id={Images.LightBluePopupMid}`
|
`http://banland.xyz/asset?id={Images.LightBluePopupMid}`
|
||||||
elseif rank <= PrivilegeLevel.Visitor then
|
elseif rank <= PrivilegeLevel.Visitor then
|
||||||
VisitorButton.Image =
|
VisitorButton.Image =
|
||||||
`https://banland.xyz/asset?id={Images.DarkBluePopupMid}`
|
`http://banland.xyz/asset?id={Images.DarkBluePopupMid}`
|
||||||
elseif rank <= PrivilegeLevel.Member then
|
elseif rank <= PrivilegeLevel.Member then
|
||||||
MemberButton.Image =
|
MemberButton.Image =
|
||||||
`https://banland.xyz/asset?id={Images.LightBluePopupMid}`
|
`http://banland.xyz/asset?id={Images.LightBluePopupMid}`
|
||||||
elseif rank <= PrivilegeLevel.Admin then
|
elseif rank <= PrivilegeLevel.Admin then
|
||||||
AdminButton.Image =
|
AdminButton.Image =
|
||||||
`https://banland.xyz/asset?id={Images.DarkBluePopupBottom}`
|
`http://banland.xyz/asset?id={Images.DarkBluePopupBottom}`
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -1071,7 +1071,7 @@ end
|
||||||
local function CloseAbuseDialog()
|
local function CloseAbuseDialog()
|
||||||
AbuseName = nil
|
AbuseName = nil
|
||||||
SubmitReportButton.Active = false
|
SubmitReportButton.Active = false
|
||||||
SubmitReportButton.Image = "https://banland.xyz/asset?id=96502438" -- 96501119',
|
SubmitReportButton.Image = "http://banland.xyz/asset?id=96502438" -- 96501119',
|
||||||
AbuseDescriptionBox:Destroy()
|
AbuseDescriptionBox:Destroy()
|
||||||
CalmingAbuseBox.Parent = nil
|
CalmingAbuseBox.Parent = nil
|
||||||
NormalAbuseBox.Parent = nil
|
NormalAbuseBox.Parent = nil
|
||||||
|
|
@ -1153,7 +1153,7 @@ local function InitReportAbuse()
|
||||||
AbuseName = abuseText
|
AbuseName = abuseText
|
||||||
if AbuseName and SelectedPlayer then
|
if AbuseName and SelectedPlayer then
|
||||||
SubmitReportButton.Active = true
|
SubmitReportButton.Active = true
|
||||||
SubmitReportButton.Image = "https://banland.xyz/asset?id=96501119"
|
SubmitReportButton.Image = "http://banland.xyz/asset?id=96501119"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -1449,16 +1449,16 @@ local function UpdateMaximize()
|
||||||
BASE_TWEEN * 1.2,
|
BASE_TWEEN * 1.2,
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
HeaderFrame.Background.Image = "https://banland.xyz/asset?id="
|
HeaderFrame.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.LargeHeader
|
.. Images.LargeHeader
|
||||||
BottomFrame.Background.Image = "https://banland.xyz/asset?id="
|
BottomFrame.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.LargeBottom
|
.. Images.LargeBottom
|
||||||
for index, i in ipairs(MiddleFrameBackgrounds) do
|
for index, i in ipairs(MiddleFrameBackgrounds) do
|
||||||
if (index % 2) ~= 1 then
|
if (index % 2) ~= 1 then
|
||||||
i.Background.Image = "https://banland.xyz/asset?id="
|
i.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.LargeDark
|
.. Images.LargeDark
|
||||||
else
|
else
|
||||||
i.Background.Image = "https://banland.xyz/asset?id="
|
i.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.LargeLight
|
.. Images.LargeLight
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -1519,16 +1519,16 @@ local function UpdateMaximize()
|
||||||
BASE_TWEEN * 1.2,
|
BASE_TWEEN * 1.2,
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
HeaderFrame.Background.Image = "https://banland.xyz/asset?id="
|
HeaderFrame.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.NormalHeader
|
.. Images.NormalHeader
|
||||||
BottomFrame.Background.Image = "https://banland.xyz/asset?id="
|
BottomFrame.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.NormalBottom
|
.. Images.NormalBottom
|
||||||
for index, i in ipairs(MiddleFrameBackgrounds) do
|
for index, i in ipairs(MiddleFrameBackgrounds) do
|
||||||
if index % 2 ~= 1 then
|
if index % 2 ~= 1 then
|
||||||
i.Background.Image = "https://banland.xyz/asset?id="
|
i.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.midDark
|
.. Images.midDark
|
||||||
else
|
else
|
||||||
i.Background.Image = "https://banland.xyz/asset?id="
|
i.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.midLight
|
.. Images.midLight
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -1997,7 +1997,7 @@ UpdateMinimize = function()
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
FocusFrame.Size = UDim2.new(1, 0, HeaderFrameHeight, 0)
|
FocusFrame.Size = UDim2.new(1, 0, HeaderFrameHeight, 0)
|
||||||
ExtendTab.Image = "https://banland.xyz/asset?id=94692731"
|
ExtendTab.Image = "http://banland.xyz/asset?id=94692731"
|
||||||
else
|
else
|
||||||
if not IsMaximized.Value then
|
if not IsMaximized.Value then
|
||||||
MainFrame:TweenSizeAndPosition(
|
MainFrame:TweenSizeAndPosition(
|
||||||
|
|
@ -2022,7 +2022,7 @@ UpdateMinimize = function()
|
||||||
)
|
)
|
||||||
BottomFrame.Position = UDim2.new(0, 0, bottomPositon, 0)
|
BottomFrame.Position = UDim2.new(0, 0, bottomPositon, 0)
|
||||||
FocusFrame.Size = UDim2.new(1, 0, bottomPositon + HeaderFrameHeight, 0)
|
FocusFrame.Size = UDim2.new(1, 0, bottomPositon + HeaderFrameHeight, 0)
|
||||||
ExtendTab.Image = "https://banland.xyz/asset?id=94825585"
|
ExtendTab.Image = "http://banland.xyz/asset?id=94825585"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -2617,18 +2617,18 @@ local function AddMiddleBGFrame()
|
||||||
UDim2.new(0.5, 0, (#MiddleFrameBackgrounds * nBGFrame.Size.Y.Scale), 0)
|
UDim2.new(0.5, 0, (#MiddleFrameBackgrounds * nBGFrame.Size.Y.Scale), 0)
|
||||||
if (#MiddleFrameBackgrounds + 1) % 2 ~= 1 then
|
if (#MiddleFrameBackgrounds + 1) % 2 ~= 1 then
|
||||||
if IsMaximized.Value then
|
if IsMaximized.Value then
|
||||||
nBGFrame.Background.Image = "https://banland.xyz/asset?id="
|
nBGFrame.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.LargeDark
|
.. Images.LargeDark
|
||||||
else
|
else
|
||||||
nBGFrame.Background.Image = "https://banland.xyz/asset?id="
|
nBGFrame.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.midDark
|
.. Images.midDark
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if IsMaximized.Value then
|
if IsMaximized.Value then
|
||||||
nBGFrame.Background.Image = "https://banland.xyz/asset?id="
|
nBGFrame.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.LargeLight
|
.. Images.LargeLight
|
||||||
else
|
else
|
||||||
nBGFrame.Background.Image = "https://banland.xyz/asset?id="
|
nBGFrame.Background.Image = "http://banland.xyz/asset?id="
|
||||||
.. Images.midLight
|
.. Images.midLight
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ function makeFriend(fromPlayer, toPlayer)
|
||||||
|
|
||||||
popup.PopupText.Text = `Accept Friend Request from {fromPlayer.Name}?`
|
popup.PopupText.Text = `Accept Friend Request from {fromPlayer.Name}?`
|
||||||
popup.PopupImage.Image =
|
popup.PopupImage.Image =
|
||||||
`https://banland.xyz/thumbs/avatar.ashx?userId={fromPlayer.userId}&x=352&y=352`
|
`http://banland.xyz/thumbs/avatar.ashx?userId={fromPlayer.userId}&x=352&y=352`
|
||||||
|
|
||||||
showTwoButtons()
|
showTwoButtons()
|
||||||
popup.Visible = true
|
popup.Visible = true
|
||||||
|
|
@ -114,7 +114,7 @@ game.Players.FriendRequestEvent:connect(function(fromPlayer, toPlayer, event)
|
||||||
game:GetService("GuiService"):SendNotification(
|
game:GetService("GuiService"):SendNotification(
|
||||||
"You are Friends",
|
"You are Friends",
|
||||||
`With {toPlayer.Name}!`,
|
`With {toPlayer.Name}!`,
|
||||||
`https://banland.xyz/thumbs/avatar.ashx?userId={toPlayer.userId}&x=48&y=48`,
|
`http://banland.xyz/thumbs/avatar.ashx?userId={toPlayer.userId}&x=48&y=48`,
|
||||||
5,
|
5,
|
||||||
function() end
|
function() end
|
||||||
)
|
)
|
||||||
|
|
@ -127,7 +127,7 @@ game.Players.FriendRequestEvent:connect(function(fromPlayer, toPlayer, event)
|
||||||
game:GetService("GuiService"):SendNotification(
|
game:GetService("GuiService"):SendNotification(
|
||||||
"Friend Request",
|
"Friend Request",
|
||||||
`From {fromPlayer.Name}`,
|
`From {fromPlayer.Name}`,
|
||||||
`https://banland.xyz/thumbs/avatar.ashx?userId={fromPlayer.userId}&x=48&y=48`,
|
`http://banland.xyz/thumbs/avatar.ashx?userId={fromPlayer.userId}&x=48&y=48`,
|
||||||
8,
|
8,
|
||||||
function()
|
function()
|
||||||
makeFriend(fromPlayer, toPlayer)
|
makeFriend(fromPlayer, toPlayer)
|
||||||
|
|
@ -137,7 +137,7 @@ game.Players.FriendRequestEvent:connect(function(fromPlayer, toPlayer, event)
|
||||||
game:GetService("GuiService"):SendNotification(
|
game:GetService("GuiService"):SendNotification(
|
||||||
"You are Friends",
|
"You are Friends",
|
||||||
`With {fromPlayer.Name}!`,
|
`With {fromPlayer.Name}!`,
|
||||||
`https://banland.xyz/thumbs/avatar.ashx?userId={fromPlayer.userId}&x=48&y=48`,
|
`http://banland.xyz/thumbs/avatar.ashx?userId={fromPlayer.userId}&x=48&y=48`,
|
||||||
5,
|
5,
|
||||||
function() end
|
function() end
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ popupImage.Parent = popupFrame
|
||||||
local backing = Instance.new "ImageLabel"
|
local backing = Instance.new "ImageLabel"
|
||||||
backing.BackgroundTransparency = 1
|
backing.BackgroundTransparency = 1
|
||||||
backing.Size = UDim2.new(1, 0, 1, 0)
|
backing.Size = UDim2.new(1, 0, 1, 0)
|
||||||
backing.Image = "https://banland.xyz/asset/?id=47574181"
|
backing.Image = "http://banland.xyz/asset/?id=47574181"
|
||||||
backing.Name = "Backing"
|
backing.Name = "Backing"
|
||||||
backing.ZIndex = 2
|
backing.ZIndex = 2
|
||||||
backing.Parent = popupImage
|
backing.Parent = popupImage
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,6 @@ print "[Mercury]: Loaded corescript 53878047"
|
||||||
-- This script creates almost all gui elements found in the backpack (warning: there are a lot!)
|
-- This script creates almost all gui elements found in the backpack (warning: there are a lot!)
|
||||||
-- TODO: automate this process
|
-- TODO: automate this process
|
||||||
|
|
||||||
if game.CoreGui.Version < 3 then
|
|
||||||
return
|
|
||||||
end -- peace out if we aren't using the right client
|
|
||||||
|
|
||||||
local ContentProvider = game:GetService "ContentProvider"
|
local ContentProvider = game:GetService "ContentProvider"
|
||||||
local UserInputService = game:GetService "UserInputService"
|
local UserInputService = game:GetService "UserInputService"
|
||||||
|
|
||||||
|
|
@ -55,7 +51,7 @@ CurrentLoadout.Parent = gui
|
||||||
local CLBackground = Instance.new "ImageLabel"
|
local CLBackground = Instance.new "ImageLabel"
|
||||||
CLBackground.Name = "Background"
|
CLBackground.Name = "Background"
|
||||||
CLBackground.Size = UDim2.new(1.2, 0, 1.2, 0)
|
CLBackground.Size = UDim2.new(1.2, 0, 1.2, 0)
|
||||||
CLBackground.Image = "https://banland.xyz/asset/?id=96536002"
|
CLBackground.Image = "http://banland.xyz/asset/?id=96536002"
|
||||||
CLBackground.BackgroundTransparency = 1
|
CLBackground.BackgroundTransparency = 1
|
||||||
CLBackground.Position = UDim2.new(-0.1, 0, -0.1, 0)
|
CLBackground.Position = UDim2.new(-0.1, 0, -0.1, 0)
|
||||||
CLBackground.ZIndex = 0.0
|
CLBackground.ZIndex = 0.0
|
||||||
|
|
@ -65,7 +61,7 @@ CLBackground.Visible = false
|
||||||
local BackgroundUp = Instance.new "ImageLabel"
|
local BackgroundUp = Instance.new "ImageLabel"
|
||||||
BackgroundUp.Size = UDim2.new(1, 0, 0.025, 1)
|
BackgroundUp.Size = UDim2.new(1, 0, 0.025, 1)
|
||||||
BackgroundUp.Position = UDim2.new(0, 0, 0, 0)
|
BackgroundUp.Position = UDim2.new(0, 0, 0, 0)
|
||||||
BackgroundUp.Image = "https://banland.xyz/asset/?id=97662207"
|
BackgroundUp.Image = "http://banland.xyz/asset/?id=97662207"
|
||||||
BackgroundUp.BackgroundTransparency = 1
|
BackgroundUp.BackgroundTransparency = 1
|
||||||
BackgroundUp.Parent = CLBackground
|
BackgroundUp.Parent = CLBackground
|
||||||
|
|
||||||
|
|
@ -79,7 +75,7 @@ BackpackButton.RobloxLocked = true
|
||||||
BackpackButton.Visible = false
|
BackpackButton.Visible = false
|
||||||
BackpackButton.Name = "BackpackButton"
|
BackpackButton.Name = "BackpackButton"
|
||||||
BackpackButton.BackgroundTransparency = 1
|
BackpackButton.BackgroundTransparency = 1
|
||||||
BackpackButton.Image = "https://banland.xyz/asset/?id=97617958"
|
BackpackButton.Image = "http://banland.xyz/asset/?id=97617958"
|
||||||
BackpackButton.Position = UDim2.new(0.5, -60, 1, -108)
|
BackpackButton.Position = UDim2.new(0.5, -60, 1, -108)
|
||||||
BackpackButton.Size = UDim2.new(0, 120, 0, 18)
|
BackpackButton.Size = UDim2.new(0, 120, 0, 18)
|
||||||
waitForChild(gui, "ControlFrame")
|
waitForChild(gui, "ControlFrame")
|
||||||
|
|
@ -138,14 +134,14 @@ TempSlot.ZIndex = 3.0
|
||||||
local slotBackground = Instance.new "ImageLabel"
|
local slotBackground = Instance.new "ImageLabel"
|
||||||
slotBackground.Name = "Background"
|
slotBackground.Name = "Background"
|
||||||
slotBackground.BackgroundTransparency = 1
|
slotBackground.BackgroundTransparency = 1
|
||||||
slotBackground.Image = "https://banland.xyz/asset/?id=97613075"
|
slotBackground.Image = "http://banland.xyz/asset/?id=97613075"
|
||||||
slotBackground.Size = UDim2.new(1, 0, 1, 0)
|
slotBackground.Size = UDim2.new(1, 0, 1, 0)
|
||||||
slotBackground.Parent = TempSlot
|
slotBackground.Parent = TempSlot
|
||||||
|
|
||||||
local HighLight = Instance.new "ImageLabel"
|
local HighLight = Instance.new "ImageLabel"
|
||||||
HighLight.Name = "Highlight"
|
HighLight.Name = "Highlight"
|
||||||
HighLight.BackgroundTransparency = 1
|
HighLight.BackgroundTransparency = 1
|
||||||
HighLight.Image = "https://banland.xyz/asset/?id=97643886"
|
HighLight.Image = "http://banland.xyz/asset/?id=97643886"
|
||||||
HighLight.Size = UDim2.new(1, 0, 1, 0)
|
HighLight.Size = UDim2.new(1, 0, 1, 0)
|
||||||
--HighLight.Parent = TempSlot
|
--HighLight.Parent = TempSlot
|
||||||
HighLight.Visible = false
|
HighLight.Visible = false
|
||||||
|
|
@ -304,24 +300,6 @@ InventoryButton.Active = true
|
||||||
InventoryButton.ZIndex = 3
|
InventoryButton.ZIndex = 3
|
||||||
InventoryButton.Parent = Tabs
|
InventoryButton.Parent = Tabs
|
||||||
|
|
||||||
-- if game.CoreGui.Version >= 8 then
|
|
||||||
-- local WardrobeButton = Instance.new "TextButton"
|
|
||||||
-- WardrobeButton.RobloxLocked = true
|
|
||||||
-- WardrobeButton.Name = "WardrobeButton"
|
|
||||||
-- WardrobeButton.Size = UDim2.new(0, 90, 0, 30)
|
|
||||||
-- WardrobeButton.Position = UDim2.new(0, 77, 1, -31)
|
|
||||||
-- WardrobeButton.BackgroundColor3 = Color3.new(0, 0, 0)
|
|
||||||
-- WardrobeButton.BorderColor3 = Color3.new(1, 1, 1)
|
|
||||||
-- WardrobeButton.Font = Enum.Font.ArialBold
|
|
||||||
-- WardrobeButton.FontSize = Enum.FontSize.Size18
|
|
||||||
-- WardrobeButton.Text = "Wardrobe"
|
|
||||||
-- WardrobeButton.AutoButtonColor = false
|
|
||||||
-- WardrobeButton.TextColor3 = Color3.new(1, 1, 1)
|
|
||||||
-- WardrobeButton.Selected = false
|
|
||||||
-- WardrobeButton.Active = true
|
|
||||||
-- WardrobeButton.Parent = Tabs
|
|
||||||
-- end
|
|
||||||
|
|
||||||
local closeButton = Instance.new "TextButton"
|
local closeButton = Instance.new "TextButton"
|
||||||
closeButton.RobloxLocked = true
|
closeButton.RobloxLocked = true
|
||||||
closeButton.Name = "CloseButton"
|
closeButton.Name = "CloseButton"
|
||||||
|
|
@ -339,8 +317,8 @@ closeButton.Modal = true
|
||||||
local XImage = Instance.new "ImageLabel"
|
local XImage = Instance.new "ImageLabel"
|
||||||
XImage.RobloxLocked = true
|
XImage.RobloxLocked = true
|
||||||
XImage.Name = "XImage"
|
XImage.Name = "XImage"
|
||||||
ContentProvider:Preload "https://banland.xyz/asset/?id=75547445"
|
ContentProvider:Preload "http://banland.xyz/asset/?id=75547445"
|
||||||
XImage.Image = "https://banland.xyz/asset/?id=75547445" --TODO: move to rbxasset
|
XImage.Image = "http://banland.xyz/asset/?id=75547445" --TODO: move to rbxasset
|
||||||
XImage.BackgroundTransparency = 1
|
XImage.BackgroundTransparency = 1
|
||||||
XImage.Position = UDim2.new(-0.25, -1, -0.25, -1)
|
XImage.Position = UDim2.new(-0.25, -1, -0.25, -1)
|
||||||
XImage.Size = UDim2.new(1.5, 2, 1.5, 2)
|
XImage.Size = UDim2.new(1.5, 2, 1.5, 2)
|
||||||
|
|
@ -442,7 +420,7 @@ GearButton.Parent = GearGrid
|
||||||
slotBackground = Instance.new "ImageLabel"
|
slotBackground = Instance.new "ImageLabel"
|
||||||
slotBackground.Name = "Background"
|
slotBackground.Name = "Background"
|
||||||
slotBackground.BackgroundTransparency = 1
|
slotBackground.BackgroundTransparency = 1
|
||||||
slotBackground.Image = "https://banland.xyz/asset/?id=97613075"
|
slotBackground.Image = "http://banland.xyz/asset/?id=97613075"
|
||||||
slotBackground.Size = UDim2.new(1, 0, 1, 0)
|
slotBackground.Size = UDim2.new(1, 0, 1, 0)
|
||||||
slotBackground.Parent = GearButton
|
slotBackground.Parent = GearButton
|
||||||
|
|
||||||
|
|
@ -618,426 +596,4 @@ AttributeThreeImage.BackgroundColor3 = Color3.new(0, 0.5, 0.5)
|
||||||
AttributeThreeImage.Position = UDim2.new(0.75, 0, 0, 0)
|
AttributeThreeImage.Position = UDim2.new(0.75, 0, 0, 0)
|
||||||
AttributeThreeImage.Parent = GearIcons
|
AttributeThreeImage.Parent = GearIcons
|
||||||
|
|
||||||
------------------------------- WARDROBE -------------------------------------------------------
|
-- wardrobe is gone lmao
|
||||||
if game.CoreGui.Version < 8 then
|
|
||||||
-- no need for this to stick around, we aren't ready for wardrobe
|
|
||||||
script:remove()
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local function makeCharFrame(frameName, parent)
|
|
||||||
local frame = Instance.new "Frame"
|
|
||||||
frame.RobloxLocked = true
|
|
||||||
frame.Size = UDim2.new(1, 0, 1, -70)
|
|
||||||
frame.Position = UDim2.new(0, 0, 0, 20)
|
|
||||||
frame.Name = frameName
|
|
||||||
frame.BackgroundTransparency = 1
|
|
||||||
frame.Parent = parent
|
|
||||||
frame.Visible = false
|
|
||||||
return frame
|
|
||||||
end
|
|
||||||
local function makeZone(zoneName, image, size, position, parent)
|
|
||||||
local zone = Instance.new "ImageLabel"
|
|
||||||
zone.RobloxLocked = true
|
|
||||||
zone.Name = zoneName
|
|
||||||
zone.Image = image
|
|
||||||
zone.Size = size
|
|
||||||
zone.BackgroundTransparency = 1
|
|
||||||
zone.Position = position
|
|
||||||
zone.Parent = parent
|
|
||||||
return zone
|
|
||||||
end
|
|
||||||
local function makeStyledButton(buttonName, size, position, parent, buttonStyle)
|
|
||||||
local button = Instance.new "ImageButton"
|
|
||||||
button.RobloxLocked = true
|
|
||||||
button.Name = buttonName
|
|
||||||
button.Size = size
|
|
||||||
button.Position = position
|
|
||||||
if buttonStyle then
|
|
||||||
button.Style = buttonStyle
|
|
||||||
else
|
|
||||||
button.BackgroundColor3 = Color3.new(0, 0, 0)
|
|
||||||
button.BorderColor3 = Color3.new(1, 1, 1)
|
|
||||||
end
|
|
||||||
button.Parent = parent
|
|
||||||
return button
|
|
||||||
end
|
|
||||||
local function makeTextLabel(TextLabelName, text, position, parent)
|
|
||||||
local label = Instance.new "TextLabel"
|
|
||||||
label.RobloxLocked = true
|
|
||||||
label.BackgroundTransparency = 1
|
|
||||||
label.Size = UDim2.new(0, 32, 0, 14)
|
|
||||||
label.Name = TextLabelName
|
|
||||||
label.Font = Enum.Font.Arial
|
|
||||||
label.TextColor3 = Color3.new(1, 1, 1)
|
|
||||||
label.FontSize = Enum.FontSize.Size14
|
|
||||||
label.Text = text
|
|
||||||
label.Position = position
|
|
||||||
label.Parent = parent
|
|
||||||
end
|
|
||||||
|
|
||||||
local Wardrobe = Instance.new "Frame"
|
|
||||||
Wardrobe.Name = "Wardrobe"
|
|
||||||
Wardrobe.RobloxLocked = true
|
|
||||||
Wardrobe.BackgroundTransparency = 1
|
|
||||||
Wardrobe.Visible = false
|
|
||||||
Wardrobe.Size = UDim2.new(1, 0, 1, 0)
|
|
||||||
Wardrobe.Parent = Backpack
|
|
||||||
|
|
||||||
local AssetList = Instance.new "Frame"
|
|
||||||
AssetList.RobloxLocked = true
|
|
||||||
AssetList.Name = "AssetList"
|
|
||||||
AssetList.Position = UDim2.new(0, 4, 0, 5)
|
|
||||||
AssetList.Size = UDim2.new(0, 85, 1, -5)
|
|
||||||
AssetList.BackgroundTransparency = 1
|
|
||||||
AssetList.Visible = true
|
|
||||||
AssetList.Parent = Wardrobe
|
|
||||||
|
|
||||||
local PreviewAssetFrame = Instance.new "Frame"
|
|
||||||
PreviewAssetFrame.RobloxLocked = true
|
|
||||||
PreviewAssetFrame.Name = "PreviewAssetFrame"
|
|
||||||
PreviewAssetFrame.BackgroundTransparency = 1
|
|
||||||
PreviewAssetFrame.Position = UDim2.new(1, -240, 0, 30)
|
|
||||||
PreviewAssetFrame.Size = UDim2.new(0, 250, 0, 250)
|
|
||||||
PreviewAssetFrame.Parent = Wardrobe
|
|
||||||
|
|
||||||
local PreviewAssetBacking = Instance.new "TextButton"
|
|
||||||
PreviewAssetBacking.RobloxLocked = true
|
|
||||||
PreviewAssetBacking.Name = "PreviewAssetBacking"
|
|
||||||
PreviewAssetBacking.Active = false
|
|
||||||
PreviewAssetBacking.Text = ""
|
|
||||||
PreviewAssetBacking.AutoButtonColor = false
|
|
||||||
PreviewAssetBacking.Size = UDim2.new(1, 0, 1, 0)
|
|
||||||
PreviewAssetBacking.Style = Enum.ButtonStyle.RobloxButton
|
|
||||||
PreviewAssetBacking.Visible = false
|
|
||||||
PreviewAssetBacking.ZIndex = 9
|
|
||||||
PreviewAssetBacking.Parent = PreviewAssetFrame
|
|
||||||
|
|
||||||
local PreviewAssetImage = Instance.new "ImageLabel"
|
|
||||||
PreviewAssetImage.RobloxLocked = true
|
|
||||||
PreviewAssetImage.Name = "PreviewAssetImage"
|
|
||||||
PreviewAssetImage.BackgroundTransparency = 0.8
|
|
||||||
PreviewAssetImage.Position = UDim2.new(0.5, -100, 0, 0)
|
|
||||||
PreviewAssetImage.Size = UDim2.new(0, 200, 0, 200)
|
|
||||||
PreviewAssetImage.BorderSizePixel = 0
|
|
||||||
PreviewAssetImage.ZIndex = 10
|
|
||||||
PreviewAssetImage.Parent = PreviewAssetBacking
|
|
||||||
|
|
||||||
local AssetNameLabel = Instance.new "TextLabel"
|
|
||||||
AssetNameLabel.Name = "AssetNameLabel"
|
|
||||||
AssetNameLabel.RobloxLocked = true
|
|
||||||
AssetNameLabel.BackgroundTransparency = 1
|
|
||||||
AssetNameLabel.Position = UDim2.new(0, 0, 1, -20)
|
|
||||||
AssetNameLabel.Size = UDim2.new(0.5, 0, 0, 24)
|
|
||||||
AssetNameLabel.ZIndex = 10
|
|
||||||
AssetNameLabel.Font = Enum.Font.Arial
|
|
||||||
AssetNameLabel.Text = ""
|
|
||||||
AssetNameLabel.TextColor3 = Color3.new(1, 1, 1)
|
|
||||||
AssetNameLabel.TextScaled = true
|
|
||||||
AssetNameLabel.Parent = PreviewAssetBacking
|
|
||||||
|
|
||||||
local AssetTypeLabel = AssetNameLabel:clone()
|
|
||||||
AssetTypeLabel.RobloxLocked = true
|
|
||||||
AssetTypeLabel.Name = "AssetTypeLabel"
|
|
||||||
AssetTypeLabel.TextScaled = false
|
|
||||||
AssetTypeLabel.FontSize = Enum.FontSize.Size18
|
|
||||||
AssetTypeLabel.Position = UDim2.new(0.5, 3, 1, -20)
|
|
||||||
AssetTypeLabel.Parent = PreviewAssetBacking
|
|
||||||
|
|
||||||
local PreviewButton = Instance.new "TextButton"
|
|
||||||
PreviewButton.RobloxLocked = true
|
|
||||||
PreviewButton.Name = "PreviewButton"
|
|
||||||
PreviewButton.Text = "Rotate"
|
|
||||||
PreviewButton.BackgroundColor3 = Color3.new(0, 0, 0)
|
|
||||||
PreviewButton.BackgroundTransparency = 0.5
|
|
||||||
PreviewButton.BorderColor3 = Color3.new(1, 1, 1)
|
|
||||||
PreviewButton.Position = UDim2.new(1.2, -62, 1, -50)
|
|
||||||
PreviewButton.Size = UDim2.new(0, 125, 0, 50)
|
|
||||||
PreviewButton.Font = Enum.Font.ArialBold
|
|
||||||
PreviewButton.FontSize = Enum.FontSize.Size24
|
|
||||||
PreviewButton.TextColor3 = Color3.new(1, 1, 1)
|
|
||||||
PreviewButton.TextWrapped = true
|
|
||||||
PreviewButton.TextStrokeTransparency = 0
|
|
||||||
PreviewButton.Parent = Wardrobe
|
|
||||||
|
|
||||||
local CharacterPane = Instance.new "Frame"
|
|
||||||
CharacterPane.RobloxLocked = true
|
|
||||||
CharacterPane.Name = "CharacterPane"
|
|
||||||
CharacterPane.Position = UDim2.new(1, -220, 0, 32)
|
|
||||||
CharacterPane.Size = UDim2.new(0, 220, 1, -40)
|
|
||||||
CharacterPane.BackgroundTransparency = 1
|
|
||||||
CharacterPane.Visible = true
|
|
||||||
CharacterPane.Parent = Wardrobe
|
|
||||||
|
|
||||||
--CharacterPane Children
|
|
||||||
local FaceFrame = makeCharFrame("FacesFrame", CharacterPane)
|
|
||||||
ContentProvider:Preload "https://banland.xyz/asset/?id=75460621"
|
|
||||||
makeZone(
|
|
||||||
"FaceZone",
|
|
||||||
"https://banland.xyz/asset/?id=75460621",
|
|
||||||
UDim2.new(0, 157, 0, 137),
|
|
||||||
UDim2.new(0.5, -78, 0.5, -68),
|
|
||||||
FaceFrame
|
|
||||||
)
|
|
||||||
makeStyledButton(
|
|
||||||
"Face",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, -32, 0.5, -135),
|
|
||||||
FaceFrame
|
|
||||||
)
|
|
||||||
|
|
||||||
local HeadFrame = makeCharFrame("HeadsFrame", CharacterPane)
|
|
||||||
makeZone(
|
|
||||||
"FaceZone",
|
|
||||||
"https://banland.xyz/asset/?id=75460621",
|
|
||||||
UDim2.new(0, 157, 0, 137),
|
|
||||||
UDim2.new(0.5, -78, 0.5, -68),
|
|
||||||
HeadFrame
|
|
||||||
)
|
|
||||||
makeStyledButton(
|
|
||||||
"Head",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, -32, 0.5, -135),
|
|
||||||
HeadFrame
|
|
||||||
)
|
|
||||||
|
|
||||||
local HatsFrame = makeCharFrame("HatsFrame", CharacterPane)
|
|
||||||
ContentProvider:Preload "https://banland.xyz/asset/?id=75457888"
|
|
||||||
local HatsZone = makeZone(
|
|
||||||
"HatsZone",
|
|
||||||
"https://banland.xyz/asset/?id=75457888",
|
|
||||||
UDim2.new(0, 186, 0, 184),
|
|
||||||
UDim2.new(0.5, -93, 0.5, -100),
|
|
||||||
HatsFrame
|
|
||||||
)
|
|
||||||
makeStyledButton(
|
|
||||||
"Hat1Button",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0, -1, 0, -1),
|
|
||||||
HatsZone,
|
|
||||||
Enum.ButtonStyle.RobloxButton
|
|
||||||
)
|
|
||||||
makeStyledButton(
|
|
||||||
"Hat2Button",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0, 63, 0, -1),
|
|
||||||
HatsZone,
|
|
||||||
Enum.ButtonStyle.RobloxButton
|
|
||||||
)
|
|
||||||
makeStyledButton(
|
|
||||||
"Hat3Button",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0, 127, 0, -1),
|
|
||||||
HatsZone,
|
|
||||||
Enum.ButtonStyle.RobloxButton
|
|
||||||
)
|
|
||||||
|
|
||||||
local PantsFrame = makeCharFrame("PantsFrame", CharacterPane)
|
|
||||||
ContentProvider:Preload "https://banland.xyz/asset/?id=75457920"
|
|
||||||
makeZone(
|
|
||||||
"PantsZone",
|
|
||||||
"https://banland.xyz/asset/?id=75457920",
|
|
||||||
UDim2.new(0, 121, 0, 99),
|
|
||||||
UDim2.new(0.5, -60, 0.5, -100),
|
|
||||||
PantsFrame
|
|
||||||
)
|
|
||||||
|
|
||||||
local pantFrame = Instance.new "Frame"
|
|
||||||
pantFrame.RobloxLocked = true
|
|
||||||
pantFrame.Size = UDim2.new(0, 25, 0, 56)
|
|
||||||
pantFrame.Position = UDim2.new(0.5, -26, 0.5, 0)
|
|
||||||
pantFrame.BackgroundColor3 = Color3.new(0, 0, 0)
|
|
||||||
pantFrame.BorderColor3 = Color3.new(1, 1, 1)
|
|
||||||
pantFrame.Name = "PantFrame"
|
|
||||||
pantFrame.Parent = PantsFrame
|
|
||||||
|
|
||||||
local otherPantFrame = pantFrame:clone()
|
|
||||||
otherPantFrame.Position = UDim2.new(0.5, 3, 0.5, 0)
|
|
||||||
otherPantFrame.RobloxLocked = true
|
|
||||||
otherPantFrame.Parent = PantsFrame
|
|
||||||
|
|
||||||
local CurrentPants = Instance.new "ImageButton"
|
|
||||||
CurrentPants.RobloxLocked = true
|
|
||||||
CurrentPants.BackgroundTransparency = 1
|
|
||||||
CurrentPants.ZIndex = 2
|
|
||||||
CurrentPants.Name = "CurrentPants"
|
|
||||||
CurrentPants.Position = UDim2.new(0.5, -31, 0.5, -4)
|
|
||||||
CurrentPants.Size = UDim2.new(0, 54, 0, 59)
|
|
||||||
CurrentPants.Parent = PantsFrame
|
|
||||||
|
|
||||||
local MeshFrame = makeCharFrame("PackagesFrame", CharacterPane)
|
|
||||||
local torsoButton = makeStyledButton(
|
|
||||||
"TorsoMeshButton",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, -32, 0.5, -110),
|
|
||||||
MeshFrame,
|
|
||||||
Enum.ButtonStyle.RobloxButton
|
|
||||||
)
|
|
||||||
makeTextLabel("TorsoLabel", "Torso", UDim2.new(0.5, -16, 0, -25), torsoButton)
|
|
||||||
local leftLegButton = makeStyledButton(
|
|
||||||
"LeftLegMeshButton",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, 0, 0.5, -25),
|
|
||||||
MeshFrame,
|
|
||||||
Enum.ButtonStyle.RobloxButton
|
|
||||||
)
|
|
||||||
makeTextLabel(
|
|
||||||
"LeftLegLabel",
|
|
||||||
"Left Leg",
|
|
||||||
UDim2.new(0.5, -16, 0, -25),
|
|
||||||
leftLegButton
|
|
||||||
)
|
|
||||||
local rightLegButton = makeStyledButton(
|
|
||||||
"RightLegMeshButton",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, -64, 0.5, -25),
|
|
||||||
MeshFrame,
|
|
||||||
Enum.ButtonStyle.RobloxButton
|
|
||||||
)
|
|
||||||
makeTextLabel(
|
|
||||||
"RightLegLabel",
|
|
||||||
"Right Leg",
|
|
||||||
UDim2.new(0.5, -16, 0, -25),
|
|
||||||
rightLegButton
|
|
||||||
)
|
|
||||||
local rightArmButton = makeStyledButton(
|
|
||||||
"RightArmMeshButton",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, -96, 0.5, -110),
|
|
||||||
MeshFrame,
|
|
||||||
Enum.ButtonStyle.RobloxButton
|
|
||||||
)
|
|
||||||
makeTextLabel(
|
|
||||||
"RightArmLabel",
|
|
||||||
"Right Arm",
|
|
||||||
UDim2.new(0.5, -16, 0, -25),
|
|
||||||
rightArmButton
|
|
||||||
)
|
|
||||||
local leftArmButton = makeStyledButton(
|
|
||||||
"LeftArmMeshButton",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, 32, 0.5, -110),
|
|
||||||
MeshFrame,
|
|
||||||
Enum.ButtonStyle.RobloxButton
|
|
||||||
)
|
|
||||||
makeTextLabel(
|
|
||||||
"LeftArmLabel",
|
|
||||||
"Left Arm",
|
|
||||||
UDim2.new(0.5, -16, 0, -25),
|
|
||||||
leftArmButton
|
|
||||||
)
|
|
||||||
|
|
||||||
local TShirtFrame = makeCharFrame("T-ShirtsFrame", CharacterPane)
|
|
||||||
ContentProvider:Preload "https://banland.xyz/asset/?id=75460642"
|
|
||||||
makeZone(
|
|
||||||
"TShirtZone",
|
|
||||||
"https://banland.xyz/asset/?id=75460642",
|
|
||||||
UDim2.new(0, 121, 0, 154),
|
|
||||||
UDim2.new(0.5, -60, 0.5, -100),
|
|
||||||
TShirtFrame
|
|
||||||
)
|
|
||||||
makeStyledButton(
|
|
||||||
"TShirtButton",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, -32, 0.5, -64),
|
|
||||||
TShirtFrame
|
|
||||||
)
|
|
||||||
|
|
||||||
local ShirtFrame = makeCharFrame("ShirtsFrame", CharacterPane)
|
|
||||||
makeZone(
|
|
||||||
"ShirtZone",
|
|
||||||
"https://banland.xyz/asset/?id=75460642",
|
|
||||||
UDim2.new(0, 121, 0, 154),
|
|
||||||
UDim2.new(0.5, -60, 0.5, -100),
|
|
||||||
ShirtFrame
|
|
||||||
)
|
|
||||||
makeStyledButton(
|
|
||||||
"ShirtButton",
|
|
||||||
UDim2.new(0, 64, 0, 64),
|
|
||||||
UDim2.new(0.5, -32, 0.5, -64),
|
|
||||||
ShirtFrame
|
|
||||||
)
|
|
||||||
|
|
||||||
local ColorFrame = makeCharFrame("ColorFrame", CharacterPane)
|
|
||||||
ContentProvider:Preload "https://banland.xyz/asset/?id=76049888"
|
|
||||||
local ColorZone = makeZone(
|
|
||||||
"ColorZone",
|
|
||||||
"https://banland.xyz/asset/?id=76049888",
|
|
||||||
UDim2.new(0, 120, 0, 150),
|
|
||||||
UDim2.new(0.5, -60, 0.5, -100),
|
|
||||||
ColorFrame
|
|
||||||
)
|
|
||||||
makeStyledButton(
|
|
||||||
"Head",
|
|
||||||
UDim2.new(0.26, 0, 0.19, 0),
|
|
||||||
UDim2.new(0.37, 0, 0.02, 0),
|
|
||||||
ColorZone
|
|
||||||
).AutoButtonColor =
|
|
||||||
false
|
|
||||||
makeStyledButton(
|
|
||||||
"LeftArm",
|
|
||||||
UDim2.new(0.19, 0, 0.36, 0),
|
|
||||||
UDim2.new(0.78, 0, 0.26, 0),
|
|
||||||
ColorZone
|
|
||||||
).AutoButtonColor =
|
|
||||||
false
|
|
||||||
makeStyledButton(
|
|
||||||
"RightArm",
|
|
||||||
UDim2.new(0.19, 0, 0.36, 0),
|
|
||||||
UDim2.new(0.025, 0, 0.26, 0),
|
|
||||||
ColorZone
|
|
||||||
).AutoButtonColor =
|
|
||||||
false
|
|
||||||
makeStyledButton(
|
|
||||||
"Torso",
|
|
||||||
UDim2.new(0.43, 0, 0.36, 0),
|
|
||||||
UDim2.new(0.28, 0, 0.26, 0),
|
|
||||||
ColorZone
|
|
||||||
).AutoButtonColor =
|
|
||||||
false
|
|
||||||
makeStyledButton(
|
|
||||||
"RightLeg",
|
|
||||||
UDim2.new(0.19, 0, 0.31, 0),
|
|
||||||
UDim2.new(0.275, 0, 0.67, 0),
|
|
||||||
ColorZone
|
|
||||||
).AutoButtonColor =
|
|
||||||
false
|
|
||||||
makeStyledButton(
|
|
||||||
"LeftLeg",
|
|
||||||
UDim2.new(0.19, 0, 0.31, 0),
|
|
||||||
UDim2.new(0.525, 0, 0.67, 0),
|
|
||||||
ColorZone
|
|
||||||
).AutoButtonColor =
|
|
||||||
false
|
|
||||||
|
|
||||||
-- Character Panel label (shows what category we are currently browsing)
|
|
||||||
local CategoryLabel = Instance.new "TextLabel"
|
|
||||||
CategoryLabel.RobloxLocked = true
|
|
||||||
CategoryLabel.Name = "CategoryLabel"
|
|
||||||
CategoryLabel.BackgroundTransparency = 1
|
|
||||||
CategoryLabel.Font = Enum.Font.ArialBold
|
|
||||||
CategoryLabel.FontSize = Enum.FontSize.Size18
|
|
||||||
CategoryLabel.Position = UDim2.new(0, 0, 0, -7)
|
|
||||||
CategoryLabel.Size = UDim2.new(1, 0, 0, 20)
|
|
||||||
CategoryLabel.TextXAlignment = Enum.TextXAlignment.Center
|
|
||||||
CategoryLabel.Text = "All"
|
|
||||||
CategoryLabel.TextColor3 = Color3.new(1, 1, 1)
|
|
||||||
CategoryLabel.Parent = CharacterPane
|
|
||||||
|
|
||||||
--Save Button
|
|
||||||
local SaveButton = Instance.new "TextButton"
|
|
||||||
SaveButton.RobloxLocked = true
|
|
||||||
SaveButton.Name = "SaveButton"
|
|
||||||
SaveButton.Size = UDim2.new(0.6, 0, 0, 50)
|
|
||||||
SaveButton.Position = UDim2.new(0.2, 0, 1, -50)
|
|
||||||
SaveButton.Style = Enum.ButtonStyle.RobloxButton
|
|
||||||
SaveButton.Selected = false
|
|
||||||
SaveButton.Font = Enum.Font.ArialBold
|
|
||||||
SaveButton.FontSize = Enum.FontSize.Size18
|
|
||||||
SaveButton.Text = "Save"
|
|
||||||
SaveButton.TextColor3 = Color3.new(1, 1, 1)
|
|
||||||
SaveButton.Parent = CharacterPane
|
|
||||||
|
|
||||||
-- no need for this to stick around
|
|
||||||
|
|
||||||
script:Destroy()
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,6 @@
|
||||||
-- CoreGui.RobloxGui.CurrentLoadout.CoreScripts/BackpackScript
|
-- CoreGui.RobloxGui.CurrentLoadout.CoreScripts/BackpackScript
|
||||||
print "[Mercury]: Loaded corescript 53878057"
|
print "[Mercury]: Loaded corescript 53878057"
|
||||||
|
|
||||||
if game.CoreGui.Version < 3 then
|
|
||||||
return
|
|
||||||
end -- peace out if we aren't using the right client
|
|
||||||
|
|
||||||
-- A couple of necessary functions
|
-- A couple of necessary functions
|
||||||
local function waitForChild(instance, name)
|
local function waitForChild(instance, name)
|
||||||
while not instance:FindFirstChild(name) do
|
while not instance:FindFirstChild(name) do
|
||||||
|
|
|
||||||
|
|
@ -853,7 +853,7 @@ RbxStamper.GetStampModel = function(assetId, terrainShape, useAssetVersionId)
|
||||||
local inverseCornerWedgeMesh = Instance.new "SpecialMesh"
|
local inverseCornerWedgeMesh = Instance.new "SpecialMesh"
|
||||||
inverseCornerWedgeMesh.MeshType = "FileMesh"
|
inverseCornerWedgeMesh.MeshType = "FileMesh"
|
||||||
inverseCornerWedgeMesh.MeshId =
|
inverseCornerWedgeMesh.MeshId =
|
||||||
"https://banland.xyz/asset?id=66832495"
|
"http://banland.xyz/asset?id=66832495"
|
||||||
inverseCornerWedgeMesh.Scale = Vector3.new(2, 2, 2)
|
inverseCornerWedgeMesh.Scale = Vector3.new(2, 2, 2)
|
||||||
inverseCornerWedgeMesh.Parent = newTerrainPiece
|
inverseCornerWedgeMesh.Parent = newTerrainPiece
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,6 @@
|
||||||
-- CoreGui.RobloxGui.Backpack.CoreScripts/BackpackScripts/Back (2?)
|
-- CoreGui.RobloxGui.Backpack.CoreScripts/BackpackScripts/Back (2?)
|
||||||
print "[Mercury]: Loaded corescript 89449093"
|
print "[Mercury]: Loaded corescript 89449093"
|
||||||
|
|
||||||
-- This script manages context switches in the backpack (Gear to Wardrobe, etc.) and player state changes. Also manages global functions across different tabs (currently only search)
|
|
||||||
if game.CoreGui.Version < 7 then
|
|
||||||
return
|
|
||||||
end -- peace out if we aren't using the right client
|
|
||||||
|
|
||||||
local GuiService = game:GetService "GuiService"
|
local GuiService = game:GetService "GuiService"
|
||||||
|
|
||||||
-- basic functions
|
-- basic functions
|
||||||
|
|
@ -45,10 +40,6 @@ waitForChild(backpack.Tabs, "InventoryButton")
|
||||||
local inventoryButton = backpack.Tabs.InventoryButton
|
local inventoryButton = backpack.Tabs.InventoryButton
|
||||||
|
|
||||||
local wardrobeButton
|
local wardrobeButton
|
||||||
-- if game.CoreGui.Version >= 8 then
|
|
||||||
-- waitForChild(backpack.Tabs, "WardrobeButton")
|
|
||||||
-- wardrobeButton = backpack.Tabs.WardrobeButton
|
|
||||||
-- end
|
|
||||||
waitForChild(backpack.Parent, "ControlFrame")
|
waitForChild(backpack.Parent, "ControlFrame")
|
||||||
local backpackButton =
|
local backpackButton =
|
||||||
waitForChild(backpack.Parent.ControlFrame, "BackpackButton")
|
waitForChild(backpack.Parent.ControlFrame, "BackpackButton")
|
||||||
|
|
@ -215,7 +206,7 @@ function showBackpack()
|
||||||
backpackOpenEvent:Fire(currentTab)
|
backpackOpenEvent:Fire(currentTab)
|
||||||
canToggle = true
|
canToggle = true
|
||||||
readyForNextEvent = true
|
readyForNextEvent = true
|
||||||
backpackButton.Image = "https://banland.xyz/asset/?id=97644093"
|
backpackButton.Image = "http://banland.xyz/asset/?id=97644093"
|
||||||
backpackButton.Position =
|
backpackButton.Position =
|
||||||
UDim2.new(0.5, -60, 1, -backpackSize.Y.Offset - 103)
|
UDim2.new(0.5, -60, 1, -backpackSize.Y.Offset - 103)
|
||||||
end)
|
end)
|
||||||
|
|
@ -240,7 +231,7 @@ function toggleBackpack()
|
||||||
backpackIsOpen = not backpackIsOpen
|
backpackIsOpen = not backpackIsOpen
|
||||||
|
|
||||||
if backpackIsOpen then
|
if backpackIsOpen then
|
||||||
loadoutBackground.Image = "https://banland.xyz/asset/?id=97623721"
|
loadoutBackground.Image = "http://banland.xyz/asset/?id=97623721"
|
||||||
loadoutBackground.Position = UDim2.new(-0.03, 0, -0.17, 0)
|
loadoutBackground.Position = UDim2.new(-0.03, 0, -0.17, 0)
|
||||||
loadoutBackground.Size = UDim2.new(1.05, 0, 1.25, 0)
|
loadoutBackground.Size = UDim2.new(1.05, 0, 1.25, 0)
|
||||||
loadoutBackground.ZIndex = 2.0
|
loadoutBackground.ZIndex = 2.0
|
||||||
|
|
@ -250,8 +241,8 @@ function toggleBackpack()
|
||||||
backpackButton.Position = UDim2.new(0.5, -60, 1, -44)
|
backpackButton.Position = UDim2.new(0.5, -60, 1, -44)
|
||||||
loadoutBackground.Visible = false
|
loadoutBackground.Visible = false
|
||||||
backpackButton.Selected = false
|
backpackButton.Selected = false
|
||||||
backpackButton.Image = "https://banland.xyz/asset/?id=97617958"
|
backpackButton.Image = "http://banland.xyz/asset/?id=97617958"
|
||||||
loadoutBackground.Image = "https://banland.xyz/asset/?id=96536002"
|
loadoutBackground.Image = "http://banland.xyz/asset/?id=96536002"
|
||||||
loadoutBackground.Position = UDim2.new(-0.1, 0, -0.1, 0)
|
loadoutBackground.Position = UDim2.new(-0.1, 0, -0.1, 0)
|
||||||
loadoutBackground.Size = UDim2.new(1.2, 0, 1.2, 0)
|
loadoutBackground.Size = UDim2.new(1.2, 0, 1.2, 0)
|
||||||
hideBackpack()
|
hideBackpack()
|
||||||
|
|
@ -443,18 +434,6 @@ inventoryButton.MouseLeave:connect(function()
|
||||||
mouseLeaveTab(inventoryButton)
|
mouseLeaveTab(inventoryButton)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- if game.CoreGui.Version >= 8 then
|
|
||||||
-- wardrobeButton.MouseButton1Click:connect(function()
|
|
||||||
-- newTabClicked "wardrobe"
|
|
||||||
-- end)
|
|
||||||
-- wardrobeButton.MouseEnter:connect(function()
|
|
||||||
-- mouseOverTab(wardrobeButton)
|
|
||||||
-- end)
|
|
||||||
-- wardrobeButton.MouseLeave:connect(function()
|
|
||||||
-- mouseLeaveTab(wardrobeButton)
|
|
||||||
-- end)
|
|
||||||
-- end
|
|
||||||
|
|
||||||
closeButton.MouseButton1Click:connect(closeBackpack)
|
closeButton.MouseButton1Click:connect(closeBackpack)
|
||||||
|
|
||||||
screen.Changed:connect(function(prop)
|
screen.Changed:connect(function(prop)
|
||||||
|
|
|
||||||
|
|
@ -1415,7 +1415,7 @@ function Chat:CreateSafeChatGui()
|
||||||
Size = UDim2.new(0, 44, 0, 31),
|
Size = UDim2.new(0, 44, 0, 31),
|
||||||
Position = UDim2.new(0, 1, 0.35, 0),
|
Position = UDim2.new(0, 1, 0.35, 0),
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Image = "https://banland.xyz/asset/?id=97080365",
|
Image = "http://banland.xyz/asset/?id=97080365",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1462,7 +1462,7 @@ function Chat:CreateTouchButton()
|
||||||
Size = UDim2.new(1, 0, 1, 0),
|
Size = UDim2.new(1, 0, 1, 0),
|
||||||
Position = UDim2.new(0, 0, 0, 0),
|
Position = UDim2.new(0, 0, 0, 0),
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Image = "https://banland.xyz/asset/?id=97078724",
|
Image = "http://banland.xyz/asset/?id=97078724",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
self.TapToChatLabel = self.ChatTouchFrame.ChatLabel
|
self.TapToChatLabel = self.ChatTouchFrame.ChatLabel
|
||||||
|
|
@ -1567,7 +1567,7 @@ function Chat:CreateGui()
|
||||||
|
|
||||||
Gui.Create "ImageLabel" {
|
Gui.Create "ImageLabel" {
|
||||||
Name = "Background",
|
Name = "Background",
|
||||||
Image = "https://banland.xyz/asset/?id=97120937", --96551212';
|
Image = "http://banland.xyz/asset/?id=97120937", --96551212';
|
||||||
Size = UDim2.new(1.3, 0, 1.64, 0),
|
Size = UDim2.new(1.3, 0, 1.64, 0),
|
||||||
Position = UDim2.new(0, 0, 0, 0),
|
Position = UDim2.new(0, 0, 0, 0),
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
|
|
|
||||||
132
luau/host.luau
132
luau/host.luau
|
|
@ -1,10 +1,8 @@
|
||||||
print "[Mercury]: Loaded Host corescript"
|
print "[Mercury]: Loaded Host corescript"
|
||||||
-- Start Game Script Arguments
|
-- Start Game Script Arguments
|
||||||
local placeId, sleeptime, access, url, killID, deathID, timeout, injectScriptAssetID, servicesUrl, libraryRegistrationScriptAssetID
|
|
||||||
|
|
||||||
local InsertService = game:GetService "InsertService"
|
local InsertService = game:GetService "InsertService"
|
||||||
local BadgeService = game:GetService "BadgeService"
|
local BadgeService = game:GetService "BadgeService"
|
||||||
local FriendService = game:GetService "FriendService"
|
|
||||||
local ScriptContext = game:GetService "ScriptContext"
|
local ScriptContext = game:GetService "ScriptContext"
|
||||||
local RunService = game:GetService "RunService"
|
local RunService = game:GetService "RunService"
|
||||||
local ScriptInformationProvider = game:GetService "ScriptInformationProvider"
|
local ScriptInformationProvider = game:GetService "ScriptInformationProvider"
|
||||||
|
|
@ -17,9 +15,9 @@ local Visit = game:GetService "Visit"
|
||||||
local NetworkServer = game:GetService "NetworkServer"
|
local NetworkServer = game:GetService "NetworkServer"
|
||||||
|
|
||||||
-- StartGame --
|
-- StartGame --
|
||||||
pcall(function()
|
-- pcall(function()
|
||||||
ScriptContext:AddStarterScript(injectScriptAssetID)
|
-- ScriptContext:AddStarterScript(injectScriptAssetID)
|
||||||
end)
|
-- end)
|
||||||
RunService:Run()
|
RunService:Run()
|
||||||
|
|
||||||
-- REQUIRES: StartGanmeSharedArgs.txt
|
-- REQUIRES: StartGanmeSharedArgs.txt
|
||||||
|
|
@ -27,7 +25,7 @@ RunService:Run()
|
||||||
|
|
||||||
------------------- UTILITY FUNCTIONS --------------------------
|
------------------- UTILITY FUNCTIONS --------------------------
|
||||||
|
|
||||||
function waitForChild(parent, childName)
|
local function waitForChild(parent, childName)
|
||||||
while true do
|
while true do
|
||||||
local child = parent:findFirstChild(childName)
|
local child = parent:findFirstChild(childName)
|
||||||
if child then
|
if child then
|
||||||
|
|
@ -39,7 +37,7 @@ end
|
||||||
|
|
||||||
-- returns the player object that killed this humanoid
|
-- returns the player object that killed this humanoid
|
||||||
-- returns nil if the killer is no longer in the game
|
-- returns nil if the killer is no longer in the game
|
||||||
function getKillerOfHumanoidIfStillInGame(humanoid)
|
local function getKillerOfHumanoidIfStillInGame(humanoid)
|
||||||
-- check for kill tag on humanoid - may be more than one - todo: deal with this
|
-- check for kill tag on humanoid - may be more than one - todo: deal with this
|
||||||
local tag = humanoid:findFirstChild "creator"
|
local tag = humanoid:findFirstChild "creator"
|
||||||
|
|
||||||
|
|
@ -55,16 +53,16 @@ function getKillerOfHumanoidIfStillInGame(humanoid)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- send kill and death stats when a player dies
|
-- send kill and death stats when a player dies
|
||||||
function onDied(victim, humanoid)
|
local function onDied(victim, humanoid)
|
||||||
local killer = getKillerOfHumanoidIfStillInGame(humanoid)
|
local killer = getKillerOfHumanoidIfStillInGame(humanoid)
|
||||||
local victorId = 0
|
local victorId = 0
|
||||||
if killer then
|
if killer then
|
||||||
victorId = killer.userId
|
victorId = killer.userId
|
||||||
print(`STAT: kill by {victorId} of {victim.userId}`)
|
print(`STAT: kill by {victorId} of {victim.userId}`)
|
||||||
game:HttpGet(`{url}/Game/Knockouts.ashx?UserID={victorId}&{access}`)
|
game:HttpGet(`{url}/Game/Knockouts.ashx?UserID={victorId}`)
|
||||||
end
|
end
|
||||||
print(`STAT: death of {victim.userId} by {victorId}`)
|
print(`STAT: death of {victim.userId} by {victorId}`)
|
||||||
game:HttpGet(`{url}/Game/Wipeouts.ashx?UserID={victim.userId}&{access}`)
|
game:HttpGet(`{url}/Game/Wipeouts.ashx?UserID={victim.userId}`)
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------END UTILITY FUNCTIONS -------------------------
|
-----------------------------------END UTILITY FUNCTIONS -------------------------
|
||||||
|
|
@ -93,11 +91,11 @@ end)
|
||||||
|
|
||||||
-----------------------------------START GAME SHARED SCRIPT------------------------------
|
-----------------------------------START GAME SHARED SCRIPT------------------------------
|
||||||
|
|
||||||
url = "_BASE_URL"
|
local url = "_BASE_URL"
|
||||||
|
|
||||||
pcall(function()
|
-- pcall(function()
|
||||||
ScriptContext:AddStarterScript(libraryRegistrationScriptAssetID)
|
-- ScriptContext:AddStarterScript(libraryRegistrationScriptAssetID)
|
||||||
end)
|
-- end)
|
||||||
ScriptContext.ScriptsDisabled = true
|
ScriptContext.ScriptsDisabled = true
|
||||||
|
|
||||||
-- game:SetPlaceID(nil, false)
|
-- game:SetPlaceID(nil, false)
|
||||||
|
|
@ -120,27 +118,27 @@ if url ~= nil then
|
||||||
-- end)
|
-- end)
|
||||||
|
|
||||||
-- BadgeService:SetPlaceId(placeId)
|
-- BadgeService:SetPlaceId(placeId)
|
||||||
if access ~= nil then
|
-- if access ~= nil then
|
||||||
BadgeService:SetAwardBadgeUrl(
|
-- BadgeService:SetAwardBadgeUrl(
|
||||||
`{url}/Game/Badge/AwardBadge.ashx?UserID=%d&BadgeID=%d&PlaceID=%d&{access}`
|
-- `{url}/Game/Badge/AwardBadge.ashx?UserID=%d&BadgeID=%d&PlaceID=%d&{access}`
|
||||||
)
|
-- )
|
||||||
BadgeService:SetHasBadgeUrl(
|
-- BadgeService:SetHasBadgeUrl(
|
||||||
`{url}/Game/Badge/HasBadge.ashx?UserID=%d&BadgeID=%d&{access}`
|
-- `{url}/Game/Badge/HasBadge.ashx?UserID=%d&BadgeID=%d&{access}`
|
||||||
)
|
-- )
|
||||||
BadgeService:SetIsBadgeDisabledUrl(
|
-- BadgeService:SetIsBadgeDisabledUrl(
|
||||||
`{url}/Game/Badge/IsBadgeDisabled.ashx?BadgeID=%d&PlaceID=%d&{access}`
|
-- `{url}/Game/Badge/IsBadgeDisabled.ashx?BadgeID=%d&PlaceID=%d&{access}`
|
||||||
)
|
-- )
|
||||||
|
|
||||||
FriendService:SetMakeFriendUrl(
|
-- FriendService:SetMakeFriendUrl(
|
||||||
`{servicesUrl}/Friend/CreateFriend?firstUserId=%d&secondUserId=%d&{access}`
|
-- `{servicesUrl}/Friend/CreateFriend?firstUserId=%d&secondUserId=%d&{access}`
|
||||||
)
|
-- )
|
||||||
FriendService:SetBreakFriendUrl(
|
-- FriendService:SetBreakFriendUrl(
|
||||||
`{servicesUrl}/Friend/BreakFriend?firstUserId=%d&secondUserId=%d&{access}`
|
-- `{servicesUrl}/Friend/BreakFriend?firstUserId=%d&secondUserId=%d&{access}`
|
||||||
)
|
-- )
|
||||||
FriendService:SetGetFriendsUrl(
|
-- FriendService:SetGetFriendsUrl(
|
||||||
`{servicesUrl}/Friend/AreFriends?userId={access}`
|
-- `{servicesUrl}/Friend/AreFriends?userId={access}`
|
||||||
)
|
-- )
|
||||||
end
|
-- end
|
||||||
BadgeService:SetIsBadgeLegalUrl ""
|
BadgeService:SetIsBadgeLegalUrl ""
|
||||||
InsertService:SetBaseSetsUrl(
|
InsertService:SetBaseSetsUrl(
|
||||||
`{url}/Game/Tools/InsertAsset.ashx?nsets=10&type=base`
|
`{url}/Game/Tools/InsertAsset.ashx?nsets=10&type=base`
|
||||||
|
|
@ -152,17 +150,17 @@ if url ~= nil then
|
||||||
InsertService:SetAssetUrl(`{url}/asset?id=%d`)
|
InsertService:SetAssetUrl(`{url}/asset?id=%d`)
|
||||||
InsertService:SetAssetVersionUrl(`{url}/Asset/?assetversionid=%d`)
|
InsertService:SetAssetVersionUrl(`{url}/Asset/?assetversionid=%d`)
|
||||||
|
|
||||||
pcall(function()
|
-- pcall(function()
|
||||||
loadfile(`{url}/Game/LoadPlaceInfo.ashx?PlaceId={placeId}`)()
|
-- loadfile(`{url}/Game/LoadPlaceInfo.ashx?PlaceId={placeId}`)()
|
||||||
end)
|
-- end)
|
||||||
|
|
||||||
pcall(function()
|
-- pcall(function()
|
||||||
if access then
|
-- if access then
|
||||||
loadfile(
|
-- loadfile(
|
||||||
`{url}/Game/PlaceSpecificScript.ashx?PlaceId={placeId}&{access}`
|
-- `{url}/Game/PlaceSpecificScript.ashx?PlaceId={placeId}&{access}`
|
||||||
)()
|
-- )()
|
||||||
end
|
-- end
|
||||||
end)
|
-- end)
|
||||||
end
|
end
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
|
|
@ -196,33 +194,33 @@ end
|
||||||
Players.PlayerAdded:connect(function(player)
|
Players.PlayerAdded:connect(function(player)
|
||||||
print(`Player {player.userId} added`)
|
print(`Player {player.userId} added`)
|
||||||
|
|
||||||
if url and access and placeId and player and player.userId then
|
-- if url and access and placeId and player and player.userId then
|
||||||
game:HttpGet(
|
-- game:HttpGet(
|
||||||
`{url}/Game/ClientPresence.ashx?action=connect&{access}&PlaceID={placeId}&UserID={player.userId}`
|
-- `{url}/Game/ClientPresence.ashx?action=connect&{access}&PlaceID={placeId}&UserID={player.userId}`
|
||||||
)
|
-- )
|
||||||
game:HttpGet(
|
-- game:HttpGet(
|
||||||
`{url}/Game/PlaceVisit.ashx?UserID={player.userId}&AssociatedPlaceID={placeId}&{access}`
|
-- `{url}/Game/PlaceVisit.ashx?UserID={player.userId}&AssociatedPlaceID={placeId}&{access}`
|
||||||
)
|
-- )
|
||||||
end
|
-- end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Players.PlayerRemoving:connect(function(player)
|
Players.PlayerRemoving:connect(function(player)
|
||||||
print(`Player {player.userId} leaving`)
|
print(`Player {player.userId} leaving`)
|
||||||
|
|
||||||
if url and access and placeId and player and player.userId then
|
-- if url and access and placeId and player and player.userId then
|
||||||
game:HttpGet(
|
-- game:HttpGet(
|
||||||
`{url}/Game/ClientPresence.ashx?action=disconnect&{access}&PlaceID={placeId}&UserID={player.userId}`
|
-- `{url}/Game/ClientPresence.ashx?action=disconnect&{access}&PlaceID={placeId}&UserID={player.userId}`
|
||||||
)
|
-- )
|
||||||
end
|
-- end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if placeId ~= nil and url ~= nil then
|
-- if placeId ~= nil and url ~= nil then
|
||||||
-- yield so that file load happens in the heartbeat thread
|
-- -- yield so that file load happens in the heartbeat thread
|
||||||
wait()
|
-- wait()
|
||||||
|
|
||||||
-- load the game
|
-- -- load the game
|
||||||
game:Load(`{url}/asset/?id={placeId}`)
|
-- game:Load(`{url}/asset/?id={placeId}`)
|
||||||
end
|
-- end
|
||||||
|
|
||||||
if _MAP_LOCATION_EXISTS then
|
if _MAP_LOCATION_EXISTS then
|
||||||
-- yield so that file load happens in the heartbeat thread
|
-- yield so that file load happens in the heartbeat thread
|
||||||
|
|
@ -233,13 +231,13 @@ if _MAP_LOCATION_EXISTS then
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Now start the connection
|
-- Now start the connection
|
||||||
NetworkServer:Start(_SERVER_PORT, sleeptime)
|
NetworkServer:Start(_SERVER_PORT)
|
||||||
|
|
||||||
Visit:SetPing("_SERVER_PRESENCE_URL", 30)
|
Visit:SetPing("_SERVER_PRESENCE_URL", 30)
|
||||||
|
|
||||||
if timeout then
|
-- if timeout then
|
||||||
ScriptContext:SetTimeout(timeout)
|
-- ScriptContext:SetTimeout(timeout)
|
||||||
end
|
-- end
|
||||||
ScriptContext.ScriptsDisabled = false
|
ScriptContext.ScriptsDisabled = false
|
||||||
|
|
||||||
-- delay(1, function()
|
-- delay(1, function()
|
||||||
|
|
|
||||||
144
luau/join.luau
144
luau/join.luau
|
|
@ -11,8 +11,6 @@ local Visit = game:GetService "Visit"
|
||||||
|
|
||||||
local player, connectionFailed
|
local player, connectionFailed
|
||||||
|
|
||||||
-- MultiplayerSharedScript.lua inserted here ------ Prepended to Join.lua --
|
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
game:SetPlaceID(_PLACE_ID, false)
|
game:SetPlaceID(_PLACE_ID, false)
|
||||||
end)
|
end)
|
||||||
|
|
@ -38,47 +36,44 @@ pcall(function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- arguments ---------------------------------------
|
-- arguments ---------------------------------------
|
||||||
local threadSleepTime = ...
|
-- (there aren't any)
|
||||||
|
local threadSleepTime = 15
|
||||||
|
|
||||||
if threadSleepTime == nil then
|
-- local test = _IS_STUDIO_JOIN -- unused
|
||||||
threadSleepTime = 15
|
|
||||||
end
|
|
||||||
|
|
||||||
local test = _IS_STUDIO_JOIN
|
|
||||||
|
|
||||||
print "! Joining game '_PLACE_ID' place _PLACE_ID at _SERVER_ADDRESS"
|
print "! Joining game '_PLACE_ID' place _PLACE_ID at _SERVER_ADDRESS"
|
||||||
|
|
||||||
ChangeHistoryService:SetEnabled(false)
|
ChangeHistoryService:SetEnabled(false)
|
||||||
ContentProvider:SetThreadPool(16)
|
ContentProvider:SetThreadPool(16)
|
||||||
InsertService:SetBaseSetsUrl "https://banland.xyz/game/tools/insertasset?nsets=10&type=base"
|
InsertService:SetBaseSetsUrl "http://banland.xyz/game/tools/insertasset?nsets=10&type=base"
|
||||||
InsertService:SetUserSetsUrl "https://banland.xyz/game/tools/insertasset?nsets=20&type=user&userid=%d"
|
InsertService:SetUserSetsUrl "http://banland.xyz/game/tools/insertasset?nsets=20&type=user&userid=%d"
|
||||||
InsertService:SetCollectionUrl "https://banland.xyz/game/tools/insertasset?sid=%d"
|
InsertService:SetCollectionUrl "http://banland.xyz/game/tools/insertasset?sid=%d"
|
||||||
InsertService:SetAssetUrl "https://banland.xyz/asset?id=%d"
|
InsertService:SetAssetUrl "http://banland.xyz/asset?id=%d"
|
||||||
InsertService:SetAssetVersionUrl "https://banland.xyz/asset?assetversionid=%d"
|
InsertService:SetAssetVersionUrl "http://banland.xyz/asset?assetversionid=%d"
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetFriendUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
SocialService:SetFriendUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetBestFriendUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
SocialService:SetBestFriendUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
SocialService:SetGroupUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupRankUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
SocialService:SetGroupRankUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupRoleUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
SocialService:SetGroupRoleUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
GamePassService:SetPlayerHasPassUrl "https://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
GamePassService:SetPlayerHasPassUrl "http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
MarketplaceService:SetProductInfoUrl "https://banland.xyz/marketplace/productinfo?assetId=%d"
|
MarketplaceService:SetProductInfoUrl "http://banland.xyz/marketplace/productinfo?assetId=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
MarketplaceService:SetPlayerOwnsAssetUrl "https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
|
MarketplaceService:SetPlayerOwnsAssetUrl "http://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
game:SetCreatorID(_CREATOR_ID, Enum.CreatorType.User)
|
game:SetCreatorID(_CREATOR_ID, Enum.CreatorType.User)
|
||||||
|
|
@ -89,7 +84,6 @@ pcall(function()
|
||||||
Players:SetChatStyle(Enum.ChatStyle.ClassicAndBubble)
|
Players:SetChatStyle(Enum.ChatStyle.ClassicAndBubble)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
waitingForCharacter = false
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
if settings().Network.MtuOverride == 0 then
|
if settings().Network.MtuOverride == 0 then
|
||||||
settings().Network.MtuOverride = 1400
|
settings().Network.MtuOverride = 1400
|
||||||
|
|
@ -97,74 +91,78 @@ pcall(function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- functions ---------------------------------------
|
-- functions ---------------------------------------
|
||||||
function setMessage(message: string)
|
local loadingState = 0
|
||||||
|
local function setLoadingMessage(message: string)
|
||||||
-- todo: animated "..."
|
-- todo: animated "..."
|
||||||
|
local dots = ""
|
||||||
|
loadingState += 1
|
||||||
|
local currentLoadingState = loadingState
|
||||||
|
Spawn(function()
|
||||||
|
while loadingState == currentLoadingState do
|
||||||
|
game:SetMessage(message .. dots)
|
||||||
|
wait(0.3)
|
||||||
|
dots ..= "."
|
||||||
|
if dots == "...." then
|
||||||
|
dots = ""
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
local function setMessage(message: string)
|
||||||
|
loadingState += 1
|
||||||
game:SetMessage(message)
|
game:SetMessage(message)
|
||||||
end
|
end
|
||||||
|
|
||||||
function showErrorWindow(message, _, _)
|
local function reportError(err)
|
||||||
game:SetMessage(message)
|
|
||||||
end
|
|
||||||
|
|
||||||
function reportError(err, message)
|
|
||||||
print("***ERROR*** " .. err)
|
print("***ERROR*** " .. err)
|
||||||
if not test then
|
Visit:SetUploadUrl ""
|
||||||
Visit:SetUploadUrl ""
|
|
||||||
end
|
|
||||||
Client:Disconnect()
|
Client:Disconnect()
|
||||||
wait(4)
|
wait(4)
|
||||||
showErrorWindow("Error: " .. err, message, "Other")
|
setMessage("Error: " .. err)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- called when the client connection closes
|
-- called when the client connection closes
|
||||||
function onDisconnection(_, lostConnection)
|
local function onDisconnection(_, lostConnection)
|
||||||
if lostConnection then
|
if lostConnection then
|
||||||
showErrorWindow(
|
setMessage "You have lost the connection to the game"
|
||||||
"You have lost the connection to the game",
|
|
||||||
"LostConnection",
|
|
||||||
"LostConnection"
|
|
||||||
)
|
|
||||||
else
|
else
|
||||||
showErrorWindow("This game has shut down", "Kick", "Kick")
|
setMessage "This game has shut down"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function requestCharacter(replicator)
|
local function requestCharacter(replicator)
|
||||||
-- prepare code for when the Character appears
|
-- prepare code for when the Character appears
|
||||||
local connection
|
local connection
|
||||||
connection = player.Changed:connect(function(property)
|
connection = player.Changed:connect(function(property)
|
||||||
if property == "Character" then
|
if property == "Character" then
|
||||||
|
loadingState += 1
|
||||||
game:ClearMessage()
|
game:ClearMessage()
|
||||||
waitingForCharacter = false
|
|
||||||
connection:disconnect()
|
connection:disconnect()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
setMessage "Requesting character"
|
setLoadingMessage "Requesting character"
|
||||||
|
|
||||||
local success, err = pcall(function()
|
local success, err = pcall(function()
|
||||||
replicator:RequestCharacter()
|
replicator:RequestCharacter()
|
||||||
setMessage "Waiting for character"
|
setLoadingMessage "Waiting for character"
|
||||||
waitingForCharacter = true
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if not success then
|
if not success then
|
||||||
reportError(err, "W4C")
|
reportError(err)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- called when the client connection is established
|
-- called when the client connection is established
|
||||||
function onConnectionAccepted(_, replicator)
|
local function onConnectionAccepted(_, replicator)
|
||||||
connectResolved = true
|
|
||||||
|
|
||||||
local waitingForMarker = true
|
local waitingForMarker = true
|
||||||
|
|
||||||
local success, err = pcall(function()
|
local success, err = pcall(function()
|
||||||
if not test then
|
Visit:SetPing("_PING_URL", 30)
|
||||||
Visit:SetPing("_PING_URL", 30)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
loadingState += 1
|
||||||
game:SetMessageBrickCount()
|
game:SetMessageBrickCount()
|
||||||
|
|
||||||
replicator.Disconnection:connect(onDisconnection)
|
replicator.Disconnection:connect(onDisconnection)
|
||||||
|
|
@ -179,7 +177,7 @@ function onConnectionAccepted(_, replicator)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if not success then
|
if not success then
|
||||||
reportError(err, "ConnectionAccepted")
|
reportError(err)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -192,39 +190,25 @@ function onConnectionAccepted(_, replicator)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- called when the client connection fails
|
-- called when the client connection fails
|
||||||
function onConnectionFailed(_, err)
|
local function onConnectionFailed(_, err)
|
||||||
showErrorWindow(
|
setMessage(`Failed to connect to the place. (ID={err})`)
|
||||||
`Failed to connect to the Game. (ID={err})`,
|
|
||||||
`ID{err}`,
|
|
||||||
"Other"
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- called when the client connection is rejected
|
-- called when the client connection is rejected
|
||||||
function onConnectionRejected()
|
function onConnectionRejected()
|
||||||
connectionFailed:disconnect()
|
connectionFailed:disconnect()
|
||||||
showErrorWindow(
|
setMessage "This place is not available. Please try another"
|
||||||
"This game is not available. Please try another",
|
|
||||||
"WrongVersion",
|
|
||||||
"WrongVersion"
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local idled = false
|
local function onPlayerIdled(idleTime)
|
||||||
function onPlayerIdled(idleTime)
|
|
||||||
if idleTime > 20 * 60 then
|
if idleTime > 20 * 60 then
|
||||||
showErrorWindow(
|
setMessage(
|
||||||
string.format(
|
string.format(
|
||||||
"You were disconnected for being idle %d minutes",
|
"You were disconnected for being idle %d minutes",
|
||||||
idleTime / 60
|
idleTime / 60
|
||||||
),
|
)
|
||||||
"Idle",
|
|
||||||
"Idle"
|
|
||||||
)
|
)
|
||||||
Client:disconnect()
|
Client:disconnect()
|
||||||
if not idled then
|
|
||||||
idled = true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -236,7 +220,7 @@ end)
|
||||||
local success, err = pcall(function()
|
local success, err = pcall(function()
|
||||||
game:SetRemoteBuildMode(true)
|
game:SetRemoteBuildMode(true)
|
||||||
|
|
||||||
setMessage "Connecting to Server"
|
setLoadingMessage "Connecting to server"
|
||||||
Client.ConnectionAccepted:connect(onConnectionAccepted)
|
Client.ConnectionAccepted:connect(onConnectionAccepted)
|
||||||
Client.ConnectionRejected:connect(onConnectionRejected)
|
Client.ConnectionRejected:connect(onConnectionRejected)
|
||||||
connectionFailed = Client.ConnectionFailed:connect(onConnectionFailed)
|
connectionFailed = Client.ConnectionFailed:connect(onConnectionFailed)
|
||||||
|
|
@ -274,24 +258,20 @@ local success, err = pcall(function()
|
||||||
player.Name = [========[_USER_NAME]========]
|
player.Name = [========[_USER_NAME]========]
|
||||||
end)
|
end)
|
||||||
player.CharacterAppearance = "_CHAR_APPEARANCE"
|
player.CharacterAppearance = "_CHAR_APPEARANCE"
|
||||||
if not test then
|
Visit:SetUploadUrl ""
|
||||||
Visit:SetUploadUrl ""
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if not success then
|
if not success then
|
||||||
reportError(err, "CreatePlayer")
|
reportError(err)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not test then
|
-- TODO: Async get?
|
||||||
-- TODO: Async get?
|
loadfile ""("", -1, 0)
|
||||||
loadfile ""("", -1, 0)
|
|
||||||
end
|
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
game:SetScreenshotInfo ""
|
game:SetScreenshotInfo ""
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
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[Mercury Place]]></media:title><media:description type="plain"><![CDATA[ For more games visit https://banland.xyz]]></media:description><media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Games</media:category><media:keywords>Mercury, video, free game, online virtual world</media:keywords></media:group></entry>'
|
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[Mercury Place]]></media:title><media:description type="plain"><![CDATA[ For more games visit http://banland.xyz]]></media:description><media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Games</media:category><media:keywords>Mercury, video, free game, online virtual world</media:keywords></media:group></entry>'
|
||||||
end)
|
end)
|
||||||
-- use single quotes here because the video info string may have unescaped double quotes
|
-- use single quotes here because the video info string may have unescaped double quotes
|
||||||
|
|
|
||||||
|
|
@ -7,46 +7,46 @@ local ScriptInformationProvider = game:GetService "ScriptInformationProvider"
|
||||||
local ScriptContext = game:GetService "ScriptContext"
|
local ScriptContext = game:GetService "ScriptContext"
|
||||||
-- Setup studio cmd bar & load core scripts
|
-- Setup studio cmd bar & load core scripts
|
||||||
pcall(function()
|
pcall(function()
|
||||||
InsertService:SetFreeModelUrl "https://banland.xyz/game/tools/insertasset?type=fm&q=%s&pg=%d&rs=%d"
|
InsertService:SetFreeModelUrl "http://banland.xyz/game/tools/insertasset?type=fm&q=%s&pg=%d&rs=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
InsertService:SetFreeDecalUrl "https://banland.xyz/game/tools/insertasset?type=fd&q=%s&pg=%d&rs=%d"
|
InsertService:SetFreeDecalUrl "http://banland.xyz/game/tools/insertasset?type=fd&q=%s&pg=%d&rs=%d"
|
||||||
end)
|
end)
|
||||||
|
|
||||||
ScriptInformationProvider:SetAssetUrl "https://banland.xyz/asset/"
|
ScriptInformationProvider:SetAssetUrl "http://banland.xyz/asset/"
|
||||||
InsertService:SetBaseSetsUrl "https://banland.xyz/game/tools/insertasset?nsets=10&type=base"
|
InsertService:SetBaseSetsUrl "http://banland.xyz/game/tools/insertasset?nsets=10&type=base"
|
||||||
InsertService:SetUserSetsUrl "https://banland.xyz/game/tools/insertasset?nsets=20&type=user&userid=%d"
|
InsertService:SetUserSetsUrl "http://banland.xyz/game/tools/insertasset?nsets=20&type=user&userid=%d"
|
||||||
InsertService:SetCollectionUrl "https://banland.xyz/game/tools/insertasset?sid=%d"
|
InsertService:SetCollectionUrl "http://banland.xyz/game/tools/insertasset?sid=%d"
|
||||||
InsertService:SetAssetUrl "https://banland.xyz/asset/?id=%d"
|
InsertService:SetAssetUrl "http://banland.xyz/asset/?id=%d"
|
||||||
InsertService:SetAssetVersionUrl "https://banland.xyz/asset/?assetversionid=%d"
|
InsertService:SetAssetVersionUrl "http://banland.xyz/asset/?assetversionid=%d"
|
||||||
InsertService:SetTrustLevel(0)
|
InsertService:SetTrustLevel(0)
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetFriendUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
SocialService:SetFriendUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetBestFriendUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
SocialService:SetBestFriendUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
SocialService:SetGroupUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupRankUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
SocialService:SetGroupRankUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupRoleUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
SocialService:SetGroupRoleUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
GamePassService:SetPlayerHasPassUrl "https://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
GamePassService:SetPlayerHasPassUrl "http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
MarketplaceService:SetProductInfoUrl "https://banland.xyz/marketplace/productinfo?assetId=%d"
|
MarketplaceService:SetProductInfoUrl "http://banland.xyz/marketplace/productinfo?assetId=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
MarketplaceService:SetDevProductInfoUrl "https://banland.xyz/marketplace/productDetails?productId=%d"
|
MarketplaceService:SetDevProductInfoUrl "http://banland.xyz/marketplace/productDetails?productId=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
MarketplaceService:SetPlayerOwnsAssetUrl "https://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
|
MarketplaceService:SetPlayerOwnsAssetUrl "http://banland.xyz/ownership/hasasset?userId=%d&assetId=%d"
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local result, _ = pcall(function()
|
local result, _ = pcall(function()
|
||||||
|
|
|
||||||
|
|
@ -24,40 +24,40 @@ local message = Instance.new "Message"
|
||||||
message.Parent = workspace
|
message.Parent = workspace
|
||||||
message.archivable = false
|
message.archivable = false
|
||||||
|
|
||||||
ScriptInformationProvider:SetAssetUrl "https://banland.xyz/Asset/"
|
ScriptInformationProvider:SetAssetUrl "http://banland.xyz/Asset/"
|
||||||
ContentProvider:SetThreadPool(16)
|
ContentProvider:SetThreadPool(16)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
InsertService:SetFreeModelUrl "https://banland.xyz/game/tools/insertasset?type=fm&q=%s&pg=%d&rs=%d"
|
InsertService:SetFreeModelUrl "http://banland.xyz/game/tools/insertasset?type=fm&q=%s&pg=%d&rs=%d"
|
||||||
end) -- Used for free model search (insert tool)
|
end) -- Used for free model search (insert tool)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
InsertService:SetFreeDecalUrl "https://banland.xyz/game/tools/insertasset?type=fd&q=%s&pg=%d&rs=%d"
|
InsertService:SetFreeDecalUrl "http://banland.xyz/game/tools/insertasset?type=fd&q=%s&pg=%d&rs=%d"
|
||||||
end) -- Used for free decal search (insert tool)
|
end) -- Used for free decal search (insert tool)
|
||||||
|
|
||||||
settings().Diagnostics:LegacyScriptMode()
|
settings().Diagnostics:LegacyScriptMode()
|
||||||
|
|
||||||
InsertService:SetBaseSetsUrl "https://banland.xyz/game/tools/insertasset?nsets=10&type=base"
|
InsertService:SetBaseSetsUrl "http://banland.xyz/game/tools/insertasset?nsets=10&type=base"
|
||||||
InsertService:SetUserSetsUrl "https://banland.xyz/game/tools/insertasset?nsets=20&type=user&userid=%d"
|
InsertService:SetUserSetsUrl "http://banland.xyz/game/tools/insertasset?nsets=20&type=user&userid=%d"
|
||||||
InsertService:SetCollectionUrl "https://banland.xyz/game/tools/insertasset?sid=%d"
|
InsertService:SetCollectionUrl "http://banland.xyz/game/tools/insertasset?sid=%d"
|
||||||
InsertService:SetAssetUrl "https://banland.xyz/Asset/?id=%d"
|
InsertService:SetAssetUrl "http://banland.xyz/Asset/?id=%d"
|
||||||
InsertService:SetAssetVersionUrl "https://banland.xyz/Asset/?assetversionid=%d"
|
InsertService:SetAssetVersionUrl "http://banland.xyz/Asset/?assetversionid=%d"
|
||||||
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetFriendUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
SocialService:SetFriendUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetBestFriendUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
SocialService:SetBestFriendUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
SocialService:SetGroupUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupRankUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
SocialService:SetGroupRankUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
SocialService:SetGroupRoleUrl "https://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
SocialService:SetGroupRoleUrl "http://banland.xyz/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
GamePassService:SetPlayerHasPassUrl "https://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
GamePassService:SetPlayerHasPassUrl "http://banland.xyz/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d"
|
||||||
end)
|
end)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
game:SetCreatorID(0, Enum.CreatorType.User)
|
game:SetCreatorID(0, Enum.CreatorType.User)
|
||||||
|
|
@ -80,7 +80,7 @@ end)
|
||||||
|
|
||||||
ChangeHistoryService:SetEnabled(false)
|
ChangeHistoryService:SetEnabled(false)
|
||||||
pcall(function()
|
pcall(function()
|
||||||
Players:SetBuildUserPermissionsUrl "https://banland.xyz/Game/BuildActionPermissionCheck.ashx?assetId=0&userId=%d&isSolo=true"
|
Players:SetBuildUserPermissionsUrl "http://banland.xyz/Game/BuildActionPermissionCheck.ashx?assetId=0&userId=%d&isSolo=true"
|
||||||
end)
|
end)
|
||||||
|
|
||||||
workspace:SetPhysicsThrottleEnabled(true)
|
workspace:SetPhysicsThrottleEnabled(true)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue