Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I make a world teleporter changer?

Asked by 3 years ago

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?

0
So you mean it teleports you from one game to another? FrontsoldierYT 129 — 3y
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. jackpanda900 26 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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
0
Thanks jackpanda900 26 — 3y
0
How do I only make where I can put in the id to only visible for me jackpanda900 26 — 3y
Ad

Answer this question