I’m new to coding and I wanted to create a place, but I realized that I can’t do it. I need to make a system for teleporting players to players with a teleport request menu. I don’t even know how I can implement something like this.
First of all #help-and-feedback:scripting-support
Second of all, search up some tutorials about it (there are plenty of them)
Third of all, depends if you want to make gui or something else
I changed the category, I didn’t find tutorials, yes I want to make a gui
If you type in “Teleport GUI roblox (studio)”, there are plents of tutorials, if you for some reason don’t find any here is what I found:
I want to do something different, I need a system for teleporting players to other players
You were not really clear here, From what I understand you want to make a GUI that when clicked by one player will teleport you to another player, I’ve made a little script for you
First make a UI, and make a TextButton/ImageButton and insert a local script inside it.
Inside the script write the following code I made for you.
local player1 = game.Players.LocalPlayer
local player2 = --some other player
local button = script.Parent
button.MouseButton1Click:Connect(function()
local char = player1.Character
local char2 = player2.Character
char:MoveTo(char2:WaitForChild("HumanoidRootPart").Position + Vector3.new(0,2,0))
end)
You will have to replace player2 with the player you want to teleport to, Im not sure how you want to fetch the player, maybe using a textbox and getting the player’s name and teleporting to them. All Im saying is to be more clear.
Is it possible to somehow implement the appearance of the teleportation request menu? It will look like this: the player presses teleport to the player, and the second player has a menu in which you can accept or reject the teleport.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.