diff --git a/src/index.js b/src/index.js index 10fd3cc..b9d6f0b 100644 --- a/src/index.js +++ b/src/index.js @@ -12,17 +12,6 @@ app.use(({ query }, response, next) => { next() }) -const validateQueryParam = (req, res, next) => { - const myQueryParam = process.env.accessKey; - if (req.query.hasOwnProperty(myQueryParam)) { - next(); - } else { - res.status(400).send(`This is just a normal site, nothing is located here...`); - } -} - -app.use(validateQueryParam); - app.use("/game/start", require("./routes/game/start.js")) app.use("/game/stop", require("./routes/game/stop.js")) app.use("/game/running", require("./routes/game/running.js")) diff --git a/src/lua/bodyshot.lua b/src/lua/bodyshot.lua index cfdf5f1..1af7359 100644 --- a/src/lua/bodyshot.lua +++ b/src/lua/bodyshot.lua @@ -8,7 +8,7 @@ game:GetService("ContentProvider"):SetBaseUrl(baseUrl) game:GetService("ScriptContext").ScriptsDisabled = true local Player = game.Players:CreateLocalPlayer(0) -Player.CharacterAppearance = ("%s/Character?id=%d"):format(baseUrl, assetId) +Player.CharacterAppearance = ("%s/users/%d/character"):format(baseUrl, assetId) Player:LoadCharacter(false) game:GetService("RunService"):Run()