From 97790c298b7d11bf4292a2e3fb3a8d669efe97fb Mon Sep 17 00:00:00 2001 From: Thomas G <62822072+Thomasluigi07@users.noreply.github.com> Date: Sun, 10 Jul 2022 21:47:50 +1000 Subject: [PATCH] Update gameserver.php --- public/game/gameserver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/game/gameserver.php b/public/game/gameserver.php index c91e809..dc3e427 100644 --- a/public/game/gameserver.php +++ b/public/game/gameserver.php @@ -46,11 +46,13 @@ end local Port = Server = game:GetService("NetworkServer") RunService = game:GetService("RunService") -Server:Start(Port, 20) +Server:Start(Port) game:GetService("Visit") RunService:Run() game.Players.PlayerAdded:connect(function(plr) function onJoined(newPlayer) +Server:Start(Port) +RunService:Run() print ("An new connection was accepted.") newPlayer:LoadCharacter() while true do