Just to check if I am on the right track for the local script
local ScreenGUI = script.Parent
local Players = game:GetService("Players")
local CreateBTN = ScreenGUI.ServerSelect.CreateServer
local JoinBTN = ScreenGUI.ServerSelect.JoinServer
local JoinTextBox = ScreenGUI.ServerID.TextBox
local CreaterPanel = ScreenGUI.Server.CreaterPanel
local ServerName = ScreenGUI.Server.ServerName
local ServerIDNum = ScreenGUI.Server.CreaterPanel["Server ID"].SERVERIDNumber
CreateBTN.MouseButton1Click:Connect(function()
local ServerID, isPrivate = game.ReplicatedStorage.CreateServer:InvokeServer()
if ServerID then
print(ServerID)
ScreenGUI.ServerSelect.Visible = false
ScreenGUI.Server.CreaterPanel.Visible = true
ScreenGUI.Server.Visible = true
ServerIDNum.Text = tostring(ServerID)
ServerName.Text = Players.LocalPlayer.Name.. " 's SERVER"
else
warn("ServerID is nil")
end
end)
JoinBTN.MouseButton1Click:Connect(function()
while true do
task.wait()
local ServerID = JoinTextBox.Text
if ServerID then
game.ReplicatedStorage.JoinServer:FireServer(ServerID)
else
warn("ServerID is nil")
end
end
end)