fallout68
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 2249 |
|
|
| 29 Nov 2013 06:21 PM |
local PlaceID = script.Parent.PlaceID local Button = script.Parent.Button local TeleService = game:GetService("TeleportService") local PlaceIDText = "" local players = game.Players:children() ------------------------------------------------------- function onFocusLost() PlaceIDText = PlaceID.Text end
function onButtonClicked() if tonumber(PlaceIDText) then TeleService:Teleport.players(tonumber(PlaceIDText)) end end
PlaceID.FocusLost:connect(onFocusLost) Button.MouseButton1Click:connect(onButtonClicked)
Local script, inside a GUI. I know that script is horribly wrong, but I rarely use teleport service. Any help? |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 29 Nov 2013 06:25 PM |
Eh I made something like this.
function Teleport() if script.Parent.GameId.Text == "id" then script.Parent.GameId.Text = "id" wait(3) script.Parent.GameId.Text = "id" else game:GetService("TeleportService"):Teleport(script.Parent.GameId.Text) end end script.Parent.Teleport.MouseButton1Down:connect(function() game:GetService("TeleportService"):Teleport(id) end)
This was it. |
|
|
| Report Abuse |
|
|
fallout68
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 2249 |
|
|
| 29 Nov 2013 09:13 PM |
| I want it to TP all players. |
|
|
| Report Abuse |
|
|