From 15adbb07b2d4d12905870ee17eea7a0161ae0ad2 Mon Sep 17 00:00:00 2001 From: Thomas G <62822072+Thomasluigi07@users.noreply.github.com> Date: Sun, 10 Jul 2022 21:44:43 +1000 Subject: [PATCH] Update gameserver.php --- public/game/gameserver.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/game/gameserver.php b/public/game/gameserver.php index d1e1bd6..c91e809 100644 --- a/public/game/gameserver.php +++ b/public/game/gameserver.php @@ -43,13 +43,13 @@ for i, v in pairs(GetDescendants(game)) do end end -print("DONE! Replaced " .. replacedProperties .. " properties") local Port = Server = game:GetService("NetworkServer") RunService = game:GetService("RunService") -Server:start(Port, 20) +Server:Start(Port, 20) game:GetService("Visit") -RunService:run() +RunService:Run() +game.Players.PlayerAdded:connect(function(plr) function onJoined(newPlayer) print ("An new connection was accepted.") newPlayer:LoadCharacter() @@ -63,6 +63,7 @@ end end game.Players.PlayerAdded:connect(onJoined) +