Update gameserver.php

This commit is contained in:
Thomas G 2022-07-10 21:47:50 +10:00
parent da85b12dd2
commit 97790c298b
1 changed files with 3 additions and 1 deletions

View File

@ -46,11 +46,13 @@ end
local Port = <?php echo $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