fallout68
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 2249 |
|
|
| 29 Nov 2013 06:13 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)
I know that is horribly wrong, but I rarely use teleport service. Any help? |
|
|
| Report Abuse |
|
|
LV1Z
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 652 |
|
|
| 29 Nov 2013 07:21 PM |
| game:getService("TeleportService"):Teleport(PLACEID,PLAYER'S CHARACTER) |
|
|
| Report Abuse |
|
|
fallout68
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 2249 |
|
|
| 29 Nov 2013 09:11 PM |
Replaced it with that. Didn't work. Changed it to this, didn't work either. I want it to teleport everyone in-game.
local PlaceID = script.Parent.PlaceID local Button = script.Parent.Button local TeleService = game:GetService("TeleportService") local PlaceIDText = "" all = game.Players:GetChildren() ------------------------------------------------------- function onFocusLost() PlaceIDText = PlaceID.Text end
function onButtonClicked() if tonumber(PlaceIDText) then game:getService("TeleportService"):Teleport(PlaceIDText,all) end end
PlaceID.FocusLost:connect(onFocusLost) Button.MouseButton1Click:connect(onButtonClicked) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2013 09:12 PM |
"Didn't Work"
How did it not work? Do you have any output? |
|
|
| Report Abuse |
|
|
fallout68
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 2249 |
|
|
| 29 Nov 2013 09:15 PM |
The teleport service did not activate. No errors in output. Here is the model of the GUI.
http://www.roblox.com/Fix-this-item?id=137060292 |
|
|
| Report Abuse |
|
|
fallout68
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 2249 |
|
| |
|
fallout68
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 2249 |
|
| |
|