Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 01 Aug 2015 04:11 PM |
local teleportService = game:GetService("TeleportService") local placeId = 7722517 local instanceId = 8891240
script.Parent.MouseButton1Click:connect(function() teleportService:TeleportToPlaceInstance(placeId, instanceId, game.Players.LocalPlayer) end)
is the script in a textbutton in startergui/playergui
when i click the button this message appears
Teleport failed. Insufficient privileges or target place does not exist.
wtf |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 01 Aug 2015 05:20 PM |
| This is what you're trying to teleport to: http://www.roblox.com/games/7722518/wantedzombies-Place |
|
|
| Report Abuse |
|
|
huner2
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 1681 |
|
|
| 01 Aug 2015 05:20 PM |
Are you sure that specific instance is still running? If it isn't, it will return that error.
If you are just trying to teleport to a place and not a specific instance, use http://wiki.roblox.com/index.php?title=API:Class/TeleportService/Teleport instead
~She has coffee at midnight, when the timing is not right~ |
|
|
| Report Abuse |
|
|
huner2
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 1681 |
|
|
| 01 Aug 2015 05:21 PM |
@Morash
That is incorrect, you don't subtract anything from a PlaceID when using TeleportService.
~She has coffee at midnight, when the timing is not right~ |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 01 Aug 2015 05:21 PM |
you trolling me bro?
you turned the last 7 into an 8 |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 01 Aug 2015 05:23 PM |
huner
you go to this place
http://www.roblox.com/games/8891240/The-Trade-Post
it takes you to this, which is the placeid i showed
http://www.roblox.com/games/7722517/Lobby
my friend usees this script, not me. keep in mind that. |
|
|
| Report Abuse |
|
|
huner2
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 1681 |
|
|
| 01 Aug 2015 05:24 PM |
local teleportService = game:GetService("TeleportService") local placeId = 7722517
script.Parent.MouseButton1Click:connect(function() teleportService:Teleport(placeId, game.Players.LocalPlayer) end)
Try that
~She has coffee at midnight, when the timing is not right~ |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 01 Aug 2015 05:25 PM |
| Why would I want to teleport myself to the place I am on. |
|
|
| Report Abuse |
|
|
huner2
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 1681 |
|
|
| 01 Aug 2015 05:26 PM |
Is that placeid your place, and the instanceid the place you are trying to reach?
~She has coffee at midnight, when the timing is not right~ |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 01 Aug 2015 05:27 PM |
the placeid you had in the script
was the instance's id |
|
|
| Report Abuse |
|
|
huner2
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 1681 |
|
|
| 01 Aug 2015 05:28 PM |
I think you are confused.
PlaceID = The place you are trying to reach InstanceID = A specific instance (or server) of that place
~She has coffee at midnight, when the timing is not right~ |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 01 Aug 2015 05:30 PM |
so you actually think i meant a server? and you also thought, that i thought servers had id's?
http://wiki.roblox.com/index.php?title=API:Class/TeleportService/TeleportToPlaceInstance |
|
|
| Report Abuse |
|
|
huner2
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 1681 |
|
|
| 01 Aug 2015 05:34 PM |
I give up. Someone else take over, I don't know if I can explain this to him.
~She has coffee at midnight, when the timing is not right~ |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 01 Aug 2015 05:45 PM |
@OP huner2 has got it right
Hopefully I can help you wrap your head around TeleportToPlaceInstance (and to be clear, it's not failing, you are)
Why would TeleportToPlaceInstance need to know what place you are already in? That is easily accessible information. Furthermore, why would you think that this has the same functionality of Teleport? (except it needs to know what placeid you're in unlike teleport?!)
Teleport-sends you to a place, opens a server if needed or places you in an existing one TeleportToPlaceInstance-teleports you to a specified server of a place (hence instanceId is needed as well as placeId
Too long; can't read: Use Teleport. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 05:48 PM |
| If you're attempting to teleport to a place that is in a universe and it is not the lobby place, it won't work if you don't own that universe. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 01 Aug 2015 05:51 PM |
guys srry
my friend threw me off
he told me days ago like
"Look at dis instance thingy to teleport to places in dat universe"
and i was like
"no it means its a server....."
then i looked at the method and he managed to got me off the rails
when i fixed the script rite now i saw what MY FRIEND
had done
ok? |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 05:56 PM |
| No, it's not okay. We will never be able to forgive you now. |
|
|
| Report Abuse |
|
|