Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 31 Jul 2015 05:08 AM |
http://wiki.roblox.com/index.php?title=TeleportService_guide#TeleportToSpawnByName.28placeId.2C_spawnLocation_.5B.2C_player.5D.29
what if i wanted to teleport to a specific spawn and a specific instance
huh
or is even the question way off |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 06:39 AM |
| Player:MoveTo(Instance.Position) |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 31 Jul 2015 07:21 AM |
Hey, you're really lucky! Roblox introduced an API for that yesterday (I don't know if it's enabled yet though)
anaminus.github.io/api/class/TeleportService.html
"TeleportData" can be passed even when teleporting to a specific instance. You can use that and "LocalPlayerArrivedFromTeleport" to do this.
This is a signature. Recommended username: KindheartedGskw |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 31 Jul 2015 08:27 AM |
| can u give me an example on how to use all this |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 31 Jul 2015 08:28 AM |
nvm
wat does LocalPlayerArrivedFromTeleport
do |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 09:00 AM |
Part:MoveTo(Object.Position)
Women are like fine wine, I can't get their tops off |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
|
| 31 Jul 2015 09:27 AM |
I literally gave you a formula to make a teleporter.
Maybe this might be little more suitable:
http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting
http://www.roblox.com/Forum/ShowPost.aspx?PostID=153548676
Women are like fine wine, I can't get their tops off |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 09:28 AM |
| More like WolfgangVonIdiot |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 09:29 AM |
o alrit itll be like dat. err rokay so errr more like dermondufus ye rekt m8
Women are like fine wine, I can't get their tops off |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Jul 2015 09:31 AM |
You can also use a vector3
part:MoveTo(3, 3, 3)
Women are like fine wine, I can't get their tops off |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 09:33 AM |
| Unable to cast double to Vector3 |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
|
| 31 Jul 2015 12:06 PM |
God damn. Can you even script!?
Women are like fine wine, I can't get their tops off |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 31 Jul 2015 12:07 PM |
>More like WolfgangVonIdiot
i just want to tell you
i died of laughter when i saw that |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 31 Jul 2015 12:07 PM |
wolfgang
i cant tell if you troll or not
if you are, thanks: funs over, i want answers. if not: are you 12 dude? |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 01:52 PM |
LOL bro! I can't tell if you're the troll? You think you can script, but you can't use MoveTo API?!
Women are like fine wine, I can't get their tops off |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 02:05 PM |
It seems you can pass data through the Teleport methods now. So something like this, I guess, you'll have to alter it a bit:
local spawnPosition = Vector3.new(spawn.Position) TeleportService:TeleportToPlaceInstance(placeId, instanceId, player, spawnPosition)
TeleportService.LocalPlayerArrivedFromTeleport:connect(function(loadingGui, spawnPosition) Player.Character:MoveTo(spawnPosition) end) |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 31 Jul 2015 03:51 PM |
what do I put in spawnposition
and what do i put into "loadingGui"
eh |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 31 Jul 2015 03:56 PM |
... Are you srs br0
u sicko! |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 31 Jul 2015 04:00 PM |
Here just do this:
local spawnPosition = Vector3.new(NAMEOFYOURSPAWN.Position) TeleportService:TeleportToPlaceInstance(placeId, instanceId, player, spawnPosition)
TeleportService.LocalPlayerArrivedFromTeleport:connect(function() Player.Character:MoveTo(spawnPosition) end)
u sicko! |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 31 Jul 2015 04:00 PM |
also
local spawnPosition = Vector3.new(spawn.Position) TeleportService:TeleportToPlaceInstance(placeId, instanceId, player, spawnPosition)
TeleportService.LocalPlayerArrivedFromTeleport:connect(function(loadingGui, spawnPosition) Player.Character:MoveTo(spawnPosition) end)
did you mean that to be 2 different scripts
this is one script and wat i have atm
script.Parent.MouseButton1Click:connect(function() game:GetService("TeleportService"):TeleportToPlaceInstance(30891288, 277876573, game.Players.LocalPlayer) end)
game:GetService("TeleportService").LocalPlayerArrivedFromTeleport:connect(function(loadingGui, spawnPosition) game.Players.LocalPlayer.Character:MoveTo(spawnPosition) end)
in a textbutton |
|
|
| Report Abuse |
|
|