FLIPPIN ECK!!!
This commit is contained in:
parent
97790c298b
commit
d2a1763c0a
|
|
@ -43,28 +43,36 @@ for i, v in pairs(GetDescendants(game)) do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local Port = <?php echo $port ; ?>
|
game:GetService("NetworkServer"):Start(<?php echo $port; ?>)
|
||||||
Server = game:GetService("NetworkServer")
|
game:GetService("RunService"):Run()
|
||||||
RunService = game:GetService("RunService")
|
game.Lighting.GlobalShadows = true
|
||||||
Server:Start(Port)
|
|
||||||
game:GetService("Visit")
|
|
||||||
RunService:Run()
|
|
||||||
game.Players.PlayerAdded:connect(function(plr)
|
game.Players.PlayerAdded:connect(function(plr)
|
||||||
function onJoined(newPlayer)
|
Player.Changed:connect(function(Property)
|
||||||
Server:Start(Port)
|
if (Property=="Character") and (Player.Character~=nil) then
|
||||||
RunService:Run()
|
local Character=Player.Character
|
||||||
print ("An new connection was accepted.")
|
local Humanoid=Character:FindFirstChild("Humanoid")
|
||||||
newPlayer:LoadCharacter()
|
if (Humanoid~=nil) then
|
||||||
while true do
|
Humanoid.Died:connect(function() delay(RespawnTime,function() Player:LoadCharacter() LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character,Player.Backpack) end) end)
|
||||||
wait(0.001)
|
end
|
||||||
if newPlayer.Character.Humanoid.Health == 0
|
end
|
||||||
then print ("Player died") wait(5) newPlayer:LoadCharacter() print("Player respawned")
|
end)
|
||||||
elseif newPlayer.Character.Parent == nil then wait(5) newPlayer:LoadCharacter() -- to make sure nobody is deleted.
|
end)
|
||||||
end
|
game.Players.PlayerAdded:connect(onJoined)
|
||||||
end
|
game:GetService("NetworkServer"):Start(<?php echo $port; ?>)
|
||||||
end
|
game:GetService("RunService"):Run()
|
||||||
|
game.Lighting.GlobalShadows = true
|
||||||
game.Players.PlayerAdded:connect(onJoined)
|
game.Players.PlayerAdded:connect(function(plr)
|
||||||
|
Player.Changed:connect(function(Property)
|
||||||
|
if (Property=="Character") and (Player.Character~=nil) then
|
||||||
|
local Character=Player.Character
|
||||||
|
local Humanoid=Character:FindFirstChild("Humanoid")
|
||||||
|
if (Humanoid~=nil) then
|
||||||
|
Humanoid.Died:connect(function() delay(RespawnTime,function() Player:LoadCharacter() LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character,Player.Backpack) end) end)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
game.Players.PlayerAdded:connect(onJoined)
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$data = ob_get_clean();
|
$data = ob_get_clean();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue