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

How can I make a world teleporter changer?

So, I want to make a button that takes you to any game, but I want to make it so I can change the int number for the id of the game where I(me not anyone else, but when other players press it they got to the one I put there) only have a text box I can input where the game id takes you to. Can someone help me?

2 comments

0

So you mean it teleports you from one game to another?

0

Yeah but I want to change it(only me) so that it goes to go to a different game and everyone else that presses it goes there too without using roblox studio and updating it.

1 answer

✓ Accepted answer

You can just make it so that only you can only have the GUI by making a script in the GUI, make a variable that lists all the names of the player and then loop through the players you want to give the GUI to by using a for loop. Once it has found the name of the player, it will make the GUI visible to only you. Here it is. Put this LocalScript into the TextBox and enter this code here:

local player = game.Players.LocalPlayer
local owner = "jackpanda900"
local label = script.Parent

for i, v in pairs(game.Players:GetPlayers()) do
	if v.Name == owner then
		label.Visible = true
	else
		label.Visible = false
	end
end

2 comments

0

Thanks

0

How do I only make where I can put in the id to only visible for me

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