just tested it with my alt account, they were in a separate place, but it didn’t tp me.
is there an extra setting I need on?
just tested it with my alt account, they were in a separate place, but it didn’t tp me.
is there an extra setting I need on?
if your trying to teleport them to different games like from your game to other game you can’t you need to go into a setting and make another place. Here hows to do it go into game explore in studio and you will see a places folder click it and add a new place once you done that right click and hit copy id.
yes, I know how to do that. Im just trying to teleport a player to a separate place within the game.
This should work just replace your id with the games id also set textbutton to the name of the button you want them to hit
Im simply trying to make it to it teleports you to a requested player’s server. even if you are not friends with them. : p
oh sorry idk what to code then but you have to get the player to see if there online in the game and then see if the game has an open spot and then teleport them to that server.
Alright, thanks for the help!
(30 letters.)
try this
local script
local TextButton = -- Your TextButton
TextButton.MouseClick1Down:Connect(function())
game.ReplicatedStorage.Teleporting:FireServer()
end
server script
local player = -- your player
local TeleportPart = -- your tele part
local Offset = CFrame.new(0,4,0)
game.ReplicatedStorage.Teleporting.OnServerEvent:Connect(function(player)
player.Character.PrimaryPart.CFrame = TeleportPart.CFrame * Offset
end
I mean, let me give an example,
Im on the main hub (the starting place.)
and I want to join a random player on a separate place within the game.
So I enter their name and press join.
:DDDD
All im asking is very similar to the piggy join a player system.
I’m not sure how your system works or is designed to work but here’s how you could go about it.
When entering the player’s name, it’ll somehow grab the player’s UserId that correlates to the name. You can do this by using GetUserIdFromNameAsync. You can then use GetPlayerPlaceInstanceAsync to fetch the player’s current placeId of their server. Then I would use TeleportToPlaceInstance to teleport to that specific place
I don’t play Piggy XD, can you give a detailed message on what you want.
NOTE: Keep in mind that we can’t give you the whole script, we can give bits and pieces to your puzzle then you would need to connect them together
So for example,
There’s A input box where you put a players name.
you click teleport and you teleport to the players server within your game.
Ok, ill read everyone above and these two tutorials to figure it out, thank you for the help!
How could I get the placeID? I managed to get the ID of the player. now I need how to get the placeID and I think I can do it then
You can get this from the game explorer.
I can help you, just show me how your explorer looks when your in studio?
I accidentally said Place ID, I can get that. I simply need the ID of what server the player is in. Here’s an example of the teleport GUI I need.
TeleportService:TeleportToPlaceInstance(placeId, jobId, player)
I just need help filling in the jobId