Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why am i not getting teleported to a new game?

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)

4 comments

0

Why are you using pastebin in the first place. You can just paste the code in a script directly!

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

0

"game.Players:GetPlayerFromCharacter(game.Workspace.world_kiIIer)", are you sure you want this to work for "world_killer" only?

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

1 answer

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.

2 comments

0

ye the sourse were public due to that very problem

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

This discussion is preserved as it was. New answers, comments, and votes are closed.