Update gameserver.php

This commit is contained in:
Thomas G 2022-07-10 21:44:43 +10:00
parent 094eb8a7c0
commit 15adbb07b2
1 changed files with 4 additions and 3 deletions

View File

@ -43,13 +43,13 @@ for i, v in pairs(GetDescendants(game)) do
end end
end end
print("DONE! Replaced " .. replacedProperties .. " properties")
local Port = <?php echo $port ; ?> local Port = <?php echo $port ; ?>
Server = game:GetService("NetworkServer") Server = game:GetService("NetworkServer")
RunService = game:GetService("RunService") RunService = game:GetService("RunService")
Server:start(Port, 20) Server:Start(Port, 20)
game:GetService("Visit") game:GetService("Visit")
RunService:run() RunService:Run()
game.Players.PlayerAdded:connect(function(plr)
function onJoined(newPlayer) function onJoined(newPlayer)
print ("An new connection was accepted.") print ("An new connection was accepted.")
newPlayer:LoadCharacter() newPlayer:LoadCharacter()
@ -63,6 +63,7 @@ end
end end
game.Players.PlayerAdded:connect(onJoined) game.Players.PlayerAdded:connect(onJoined)
<?php <?php
$data = ob_get_clean(); $data = ob_get_clean();
$signature; $signature;