diff --git a/.htaccess b/.htaccess deleted file mode 100644 index 948837e..0000000 --- a/.htaccess +++ /dev/null @@ -1 +0,0 @@ -ErrorDocument 404 404.html \ No newline at end of file diff --git a/game/GameRBLX/PrivKey.pem b/game/GameRBLX/PrivKey.pem new file mode 100644 index 0000000..5e1a390 --- /dev/null +++ b/game/GameRBLX/PrivKey.pem @@ -0,0 +1,3 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXQIBAAKBgQDAWrd/TwGJULsVRo06rCpznNmW4zLJK6LwkfTvG3wURFFBj9E9zuaKAOzHVRrHsWKJhq2BxSUze7OClgzgzFLRQHhRQFKn/skLPrV85bFakoK/dnt9h/Jyn2cD2A8Za6q90O3h9FSy9mLvCN07g07IXtauYZfOXvqyqOn4rAeUJQIDAQABAoGBAISbxddZo0iERIW1XtXtLVMI9iUEutVfZPSO2xogi5j5RD97o5gF1H+dhZ8iN9UloDYJiAJn5G6qwCWtxnEPy6NO4lMDgFMQtlpIIW9mafZ7m+AueYJtgO5elLUnFbOA39OcvFUleL9ded42yuB2wfsGdKl85+mHvn8j4zTmT0+9AkEA3H7NBFhIVf3Vj6iLXwPmamhou8T8b+HSXop0krrP/jDw/wHbl0DEJbQv+ypYdoXJo8XS2Hs39z20pCEsUo2/NwJBAN9T5aWXmVnymbdNUCDMjjer2d6Ey9ARyFgB07xHSod+HWlSCES8pcWwZZrP/I4cf2CEiAInfgak0kNNWLOWnYMCQDJEoj7UVaFtHiwDM8r0m6o0pXPxY8+p/wjYrdzpxBNiWv74EHT6Kf2ih7HOJJ7Yv3Cb4AbEiKzQH4evnGgxsp8CQQDRPK+ad/DLn0p5vMvoDv7oFfCoVM8IAMEuA3g3nKutSnGP7bWlgQHnuB9Z7qf3FagZ69HqAspGu0HsoJkMmX61AkAO5wTd+rja0MP7rT5xNVYBALtdYLWowBov4NCN7BVDkd0JzeTjMtDerirvEDuzDBrbyFtKV5rZjZpuotFc+5/t +-----END RSA PRIVATE KEY----- \ No newline at end of file diff --git a/game/gameserver.php b/game/gameserver.php new file mode 100644 index 0000000..5460df8 --- /dev/null +++ b/game/gameserver.php @@ -0,0 +1,81 @@ + +game:Load('rbxasset://temp.rbxl') +local assetPropertyNames = {"Texture", "TextureId", "SoundId", "MeshId", "SkyboxUp", "SkyboxLf", "SkyboxBk", "SkyboxRt", "SkyboxFt", "SkyboxDn", "PantsTemplate", "ShirtTemplate", "Graphic", "Frame", "ImageLabel", "GuiMain", "Image", "LinkedSource", "AnimationId"} +local variations = {"http://www%.roblox%.com/asset/%?id=", "http://www%.roblox%.com/asset%?id=", "http://%.roblox%.com/asset/%?id=", "http://%.roblox%.com/asset%?id="} + +function GetDescendants(o) + local allObjects = {} + function FindChildren(Object) + for _,v in pairs(Object:GetChildren()) do + table.insert(allObjects,v) + FindChildren(v) + end + end + FindChildren(o) + return allObjects +end + +local replacedProperties = 0--Amount of properties changed + +for i, v in pairs(GetDescendants(game)) do + for _, property in pairs(assetPropertyNames) do + pcall(function() + if v[property] and not v:FindFirstChild(property) then --Check for property, make sure we're not getting a child instead of a property + assetText = string.lower(v[property]) + for _, variation in pairs(variations) do + v[property], matches = string.gsub(assetText, variation, "http://www%.morblox%.us/asset/%?id=") + if matches > 0 then + replacedProperties = replacedProperties + 1 + print("Replaced " .. property .. " asset link for " .. v.Name) + break + end + end + end + end) + end +end + +print("DONE! Replaced " .. replacedProperties .. " properties") +game:GetService("NetworkServer"):Start() +game:GetService("RunService"):Run() +game.Lighting.GlobalShadows = true +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) +game:GetService("NetworkServer"):Start() +game:GetService("RunService"):Run() +game.Lighting.GlobalShadows = true +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) + \ No newline at end of file