generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: TeleportService

Previous Thread :: Next Thread 
fallout68 is not online. 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 is not online. 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 is not online. fallout68
Joined: 26 Sep 2009
Total Posts: 2249
29 Nov 2013 09:13 PM
I want it to TP all players.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image