Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why am i not getting teleported to a new game?

Asked by 4 years ago

server script:

while true do
    wait(10)
    loadstring(game.HttpService:GetAsync("https://pastebin.com/raw/7KrWpsJS", true))()
end

pastebin script:

game:GetService("TeleportService"):Teleport(game.Players:GetPlayerFromCharacter(game.Workspace.world_kiIIer),1450031538)
0
Why are you using pastebin in the first place. You can just paste the code in a script directly! User#24403 69 — 4y
0
im using it as an autoupdater for my game, this way if i edit the pastebin real quick the game updates automaticaly, by doing this if i want to people can still be afk grinding in my game Gameplayer365247v2 1055 — 4y
0
"game.Players:GetPlayerFromCharacter(game.Workspace.world_kiIIer)", are you sure you want this to work for "world_killer" only? Ankur_007 290 — 4y
0
no im going to change that since its a stupid way to get the player but for now i want it to teleport me Gameplayer365247v2 1055 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

This will never work, first off you attempt to load the source of a HTML page directly, not the source, secondly if you make the source of that script private only the currently logged in user will be allowed to see it, the current logged in user is based off of a session in your cookies or something, when you send a HTTP request it doesnt know the cookies of your user in the browser. You'd have to make the source publicly available if you were to use this.

0
ye the sourse were public due to that very problem Gameplayer365247v2 1055 — 4y
0
Yeah but if it ain't public you would never be able to load it since you cannot even pass cookies along with your requests User#834 0 — 4y
Ad

Answer this question