Right, so I made a simple teleport command. Now I need help making a Bring command.
Teleport Command Code
script.Parent.MouseButton1Click:Connect(function()
if game.Players:FindFirstChild(script.Parent.Parent.Parent.upper.Target.Text) then
game.ReplicatedStorage.BringPlayer:FireServer(script.Parent.Parent.Parent.upper.Target.Text)
else
script.Parent.Parent.Parent.upper.failed.TextTransparency = 0
wait(3.5)
script.Parent.Parent.Parent.upper.failed.TextTransparency = 1
end
end)
Oh I named the frame that for the UI, cuz for the GUI I separated the parts in between upper and lower. The textbox where you say the players username is in the upper part of the UI.