Hi there, this is my second question and this is basically related to my 1st question, but not quite. My first question was a GUI and the GUI only appears to me, but I want all the players to teleport to me. How? Here's the Script that only appears to me.
game.Players.PlayerAdded:connect(function(plr)
if plr.Name == "CjGamer1454" then
local MoveGui = game.ReplicatedStorage["ScreenGui"]:Clone()
MoveGui.Parent = plr.PlayerGui
end
end)
and here's the Teleport Script.
spawn = game.Workspace.HouseArea -- HouseArea is where all of us will teleport
player = script.Parent.Parent.Parent.Parent
function onClicked()
player.Character:MoveTo(spawn.Position)
end
script.Parent.MouseButton1Down:connect(onClicked)

10 comments
Yes sir
Give me a second to write an answer.
ok thank yoU!
Alright, here is my attempted answer.
thx men
No problem! If it helped you, can you give me rep?
I don't know what a rep is :/ Im new to this site. But it's a GUI if a click it they all teleport. Any idea?
Oh nvm I figured it out my bad
Sorry, I have no GUI experience
There is a problem with line 6