Hey everyone!
Everytime I use the scripts, they don’t work as intended.
The Name turns out into nothing (just “”)
And the Number would turn out as nil (I put in a number)
LocalScript:
local LobbyMaker = game:GetService("ReplicatedStorage"):WaitForChild("CreateLobby")
local CreateButton = script.Parent:WaitForChild("CREATE")
local Scrolly = script.Parent:WaitForChild("Scrolly")
local LobbyName = Scrolly.LobbyName.TxtBoxFrame.TextBox.Text
local ServerSize = tonumber(Scrolly.ServerSize.TxtBoxFrame.TextBox.Text)
CreateButton.MouseButton1Click:Connect(function()
LobbyMaker:FireServer(LobbyName, ServerSize)
end)
Server Script:
local LobbyDuplicate = game:GetService("ServerStorage"):WaitForChild("LobbyDuplicate"):Clone()
local CL = game:GetService("ReplicatedStorage"):WaitForChild("CreateLobby")
local TS = game:GetService("TextService")
CL.OnServerEvent:Connect(function(player, LobbyName, ServerSize)
print(player)
print(LobbyName) -- Prints ""
print(ServerSize) -- Prints "nil"
-- print(TS:FilterStringAsync(LobbyName, player.UserId, Enum.TextFilterContext.PublicChat)) [NOT DONE]
end)