How to Teleport Player(s) to a Private Server in Roblox! (Roblox Scripting Tutorial 2023!)
Ойындар
If you guys need any help or want more videos you can join my discord and lemme know, don't forget to drop a like!
Thumbnail Artist: Macc#3051 on Discord
Join my discord server: / discord
Join my roblox group: www.roblox.com/groups/5821166...
Teleport Handler Script:
local TeleportEvent = game.ReplicatedStorage.TeleportEvent
local TPS = game:GetService("TeleportService")
TeleportEvent.OnServerEvent:Connect(function(plr)
local Players = {}
table.insert(Players, plr)
local PrivateServerCode = TPS:ReserveServer(10478928638)
TPS:TeleportToPrivateServer(10478928638, PrivateServerCode, Players)
table.clear(Players)
end)
Teleport Script:
local TeleportEvent = game.ReplicatedStorage.TeleportEvent
script.Parent.Activated:Connect(function()
TeleportEvent:FireServer()
end)
Пікірлер: 114
hello this really helped! is there a way to teleport multiple players? like when you make a party and want to teleport the players in the party to a private server? thanks for the help!
@nocapstudio
Жыл бұрын
Wssp, I'm glad it did, and kzread.info/dash/bejne/onqZ1biRpLywe7Q.html
Nicee
how do i teleport multiple players for this? Also ur vids are great, subscribed! This is the best channel I've found for learning to script! Thanks man!
@nocapstudio
Жыл бұрын
Depends on how you plan to get them, like are you trying to teleport everyone in the server? Thank you so much! I appreciate it, I'm glad to know my videos help.
@robloxdev2869
Жыл бұрын
@@nocapstudio so far I have a lobby in which you spawn. There are 4 spots around you that you can choose from- one to teleport 1 player, another 2, another 3, and another 4. You can pick which one you want. You then use a proximity prompt on triggered which causes to have the player to teleport into the loading area, and a timer goes off from 5 seconds to 0. it then teleports you to the place. I have only been able to figure out 1 player and haven't been able to make a left button. I've been looking around in my free time since like Monday to figure out how to teleport multiple players into a server of my place (places tab) so that players can join and just join the main lobby. Basically, I'm tryna base the teleporting system on doors. I'm still looking everywhere, I have no idea what to do, and even though this is a good game idea that I feel I can realistically make, I am about to lose motivation yet again. sorry for the long response 🤣😅 Edit: thanks for the fast response! I also wanted to say that if you know anyone that can help or something like that, my discord is NeonMagma#2841. I appreciate your help! It's great you respond since I am new to the dev forum and I apparently haven't done enough viewing, according to Roblox, to be able to post there. again, thanks!
@nocapstudio
Жыл бұрын
@@robloxdev2869 No problem, but its prolly best you join my discord for help because I'm a bit confused on what it is your doing 😭
@robloxdev2869
Жыл бұрын
@@nocapstudio I have already joined - joined on tuesday.
@nocapstudio
Жыл бұрын
@@robloxdev2869 make a post in #scripting support
Hello! it seems that the teleport service no longer works on roblox studio idk what to do to solve it, I have tried evrything from creating a new place to publishing the game to updating the game many times to allowing https and third party teleports and disabling it many times, any help? thank you!
@nocapstudio
11 ай бұрын
Wssp, I'm happy to help, I believe you joined my discord server?
it does not work for me, it says error code 773 and that the place im trying t go to is forbidden things i did: - both places are published - both places are set to public - both places have the teleport permissions on - im not testing in sudio, im testing in roblox please help ive been trying to figue this out for 2 hours
@nocapstudio
4 ай бұрын
Rewatch the video, if the issue(s) persist, join my server for further help
hey how do i make it teleport a group of players so for example i made a textubutton and if bob1 press is it it makes a varible with his id and if bob2 presses it it adds bob2s id and now they both teleport to the same place and same server
@nocapstudio
6 ай бұрын
kzread.info/dash/bejne/eIWfuNl_eMzPZNo.html
yo No Cap its say HTTP 403 (forbidden) whats that? and can u make an video that u touch an part to teleport to the private server
@yt_errorplayz9448
4 ай бұрын
and i tested it in an actual game
@nocapstudio
4 ай бұрын
Handled
yo make that with that u touched an part please
@nocapstudio
4 ай бұрын
kzread.info/dash/bejne/lX-KsteBkbXemaw.html
this might be confusing but is there any way teleporting all players in one private server with previous version of place?? because theres a vibe game that teleports player into private server but the place looks different and the game id is the same especially the game called blair
@nocapstudio
10 ай бұрын
You cant teleport someone to a previous version of a place, their simply juss teleporting them to another place that looks like the older version.
@oxanaivanova8007
10 ай бұрын
@@nocapstudio ok thanks but the game id is the same tho means i wasnt teleported into a different game tbh i used IY just to check the jobid before and after i got teleported then when i got teleported in a private server the jobid is the same but the place totally looks different it is kinda like the map generated a different map when i checked a flew around cant find the map before i got teleported sorry for the confusion
@nocapstudio
10 ай бұрын
@@oxanaivanova8007 I'm confused, how do you know that the ID's are the same?
@oxanaivanova8007
10 ай бұрын
@@nocapstudio jobid
@oxanaivanova8007
10 ай бұрын
@@nocapstudio just using infinite yield to see the jobid
hey! do you know how i can make it so that when you get teleported into the private server you can teleport back to the main game?
@nocapstudio
3 ай бұрын
Have a button that player's can click to teleport them back
@tridye-wt4vi
3 ай бұрын
@@nocapstudio i've sorted it out now, but thanks anyways!
@nocapstudio
3 ай бұрын
@@tridye-wt4vinp
hi can you make it to teleport players to other servers with different maps not a private server?
@nocapstudio
Ай бұрын
kzread.info/dash/bejne/l46gyqWch9S-aNY.html
can you next make a video that shows how to make a script that disables another script when you press a letter like "T"?
@M4tv
Жыл бұрын
and when you re press the letter it activates the script again
@nocapstudio
Жыл бұрын
This video explains how to make keybinds, all you would have to do is do script.Disabled = true kzread.info/dash/bejne/n212vNyvlrq2hc4.html
@M4tv
Жыл бұрын
@@nocapstudio k thanks
@nocapstudio
Жыл бұрын
@@M4tv np
how would I have a friend join me in this server, moments after I make my own private server?
@nocapstudio
3 ай бұрын
I only help with my scripts
Is there a way to make this with touching a part? (with this private server thing and all players in the server like you did here just with touching a part)
@nocapstudio
10 ай бұрын
Yes: kzread.info/dash/bejne/o2d7t86wj6W0Xaw.html
@darkanni5542
10 ай бұрын
@@nocapstudio this it without the private server thing and its not teleporting all players
@nocapstudio
10 ай бұрын
I know, the point is to use both videos as a reference to accomplish your goal.@@darkanni5542
@darkanni5542
10 ай бұрын
@@nocapstudio I can try it but idk how to mix them that is will be working with the remoteevent
@nocapstudio
10 ай бұрын
@@darkanni5542 Did you learn the basics of scripting?
I'm getting and HTTP 403 (Forbidden) error in the console, and it's saying its to do with "local PrivateServerCode = TPS:ReserveServer(ID)" The ID is the game id btw. Know how to fix this?
@nocapstudio
Жыл бұрын
Yes, did you try testing in an actual server?
@DaRealWolfyYT
Жыл бұрын
@@nocapstudio Oh.. Let me try real quick.
@nocapstudio
Жыл бұрын
@@DaRealWolfyYT Alright, let me know what happens.
@DaRealWolfyYT
Жыл бұрын
@@nocapstudio Now I'm getting HTTP 400 (Bad Request), Line 10 (which is local PrivateServerCode = TPS:ReserveServer(ID)) I think you put something after the ID, don't you?
@nocapstudio
Жыл бұрын
@@DaRealWolfyYT No, the script is in the description so you can compare the two
How do you teleport back to the server you originally came frmo
@nocapstudio
11 ай бұрын
That would require a different system that involves cross server communication.
@snooglebrosplayz
11 ай бұрын
@@nocapstudio can you teahc cross server communciation
@nocapstudio
11 ай бұрын
@@snooglebrosplayz kzread.info/dash/bejne/hJV31NqboprLXcY.html
@snooglebrosplayz
11 ай бұрын
@@nocapstudio how can i use this to teleport back to the place you came from
@nocapstudio
11 ай бұрын
@@snooglebrosplayz That would require a different system that involves cross server communication, I haven't made a system like that so I'm not sure.
can someone plz tell me how to find a games 2nd server link so i can scroll on server list? anyone know?
@nocapstudio
7 ай бұрын
Wym?
plsss do with modell i need this quick!!!11!
@nocapstudio
Жыл бұрын
Do with model?
@I_Love_My_Mom5555
Жыл бұрын
@@nocapstudio yees pls you can do it now?
@nocapstudio
Жыл бұрын
@@I_Love_My_Mom5555 Im confused, you cant teleport a model to another server.
Teleports the entire server?
@nocapstudio
8 ай бұрын
Use both videos as a reference
why it dosent works for me? i followed all ur steps
@nocapstudio
10 ай бұрын
Are you testing in studio?
@craze_xiao112
10 ай бұрын
no uli uploaded that game
@nocapstudio
10 ай бұрын
@@craze_xiao112 Enable third party teleports in game settings, make the place public, and publish.
when i tried to teleport with it roblox crashed
@nocapstudio
9 ай бұрын
You used the script in my video?
@guywhodoesstuffidk
9 ай бұрын
@@nocapstudio yes
@guywhodoesstuffidk
9 ай бұрын
@@nocapstudio but i got it to work i had to put a wait function
@nocapstudio
9 ай бұрын
@@guywhodoesstuffidkoh I see, good job.
fr didnt work ı got idea make it to model and send me link plz trust me
@nocapstudio
Жыл бұрын
I can help you.
@demonblood843
Жыл бұрын
@@nocapstudio ok
it says HTTP 403 (forbidden)
@nocapstudio
4 ай бұрын
Rewatch the video, if the issue(s) persist, join my server for further help
Umm thats not a private server thats to new place/game even the ui disappeared 😳
@nocapstudio
Жыл бұрын
Did you change the ID's...
@QuranRecitals627
Жыл бұрын
@@nocapstudio how do you get the ID for the private server, the one you did you just made a place not a private server
@nocapstudio
Жыл бұрын
@@QuranRecitals627 It created a private place, I explained it in the video.
@QuranRecitals627
Жыл бұрын
@@nocapstudio ooooh thats what you meant, I thought you meant a private server
@nocapstudio
Жыл бұрын
@@QuranRecitals627 yea
how do i do this with a object
@nocapstudio
Жыл бұрын
You mean to teleport a model?
@AgentClover
Жыл бұрын
@@nocapstudio he means to teleport the player when they TOUCH the part
@nocapstudio
Жыл бұрын
@@AgentClover ohh here kzread.info/dash/bejne/o2d7t86wj6W0Xaw.html