Update gameserver.php
This commit is contained in:
parent
da85b12dd2
commit
97790c298b
|
|
@ -46,11 +46,13 @@ end
|
||||||
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)
|
||||||
game:GetService("Visit")
|
game:GetService("Visit")
|
||||||
RunService:Run()
|
RunService:Run()
|
||||||
game.Players.PlayerAdded:connect(function(plr)
|
game.Players.PlayerAdded:connect(function(plr)
|
||||||
function onJoined(newPlayer)
|
function onJoined(newPlayer)
|
||||||
|
Server:Start(Port)
|
||||||
|
RunService:Run()
|
||||||
print ("An new connection was accepted.")
|
print ("An new connection was accepted.")
|
||||||
newPlayer:LoadCharacter()
|
newPlayer:LoadCharacter()
|
||||||
while true do
|
while true do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue