Hi there, I'm new to scripting and I'm making a Teleport GUI. I watch tutorials in youtube but the only thing I want is the GUI Only Appears To Me. Is This Necessary? This is the Script
spawn = game.Workspace.HouseArea player = script.Parent.Parent.Parent.Parent function onClicked() player.Character:MoveTo(spawn.Position) end script.Parent.MouseButton1Down:connect(onClicked)
This script should work. Although, if you want you and ONLY you to see the GUI, then it needs to be moved to the Player Gui.
To do this, you might as well just see if the player who enters the game has your name, if so, Clone GUI into your PlayerGui. Just put your GUI inside of ReplicatedStorage and add a normal script inside of workspace.
the script should look something like this, to give it to the player. Just fill in the strings correctly.
game.Players.PlayerAdded:connect(function(plr) if plr.Name == "PutYourNameHere" then local MoveGui = game.ReplicatedStorage["TheGui'sNameHere"]:Clone() MoveGui.Parent = plr.PlayerGui end end)