Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Unable to use ROBLOX's Universe feature

Asked by 10 years ago

http://www.roblox.com/Bloxy-Platform-HUGE-UPDATE-place?id=141925189

When I touch the teleport

Teleport started...

then this happens.

Teleport failed, insufficient privileges or target place does not exist.

What exact privileges do I need? Because the place exists, this is the place it is linked to.

http://www.roblox.com/PlaceItem.aspx?id=146981796&seoname=Bloxy-Platform-Level-01

Here is the script just in-case.

local PlaceID = script.Parent.ID.Value

function onTouched(hit)
character = hit.Parent
print('5')
if character then
game:GetService("TeleportService"):Teleport(PlaceID, character)
end
end

script.Parent.Touched:connect(onTouched)

1 answer

Log in to vote
2
Answered by
User#2 0
10 years ago

You have to have the value equal to the id of the place, and give it to the Teleport method as a number.

For this you can use tonumber.

game:GetService("TeleportService"):Teleport(tonumber(PlaceID), character)
0
It's still showing this, Teleport failed, insufficient privileges or target place does not exist. IntellectualBeing 430 — 10y
1
Are you sure PlaceID is a String with only numbers (the id of the place?) User#2 0 — 10y
0
I'm using a Number Value, Should I set it to String Value? IntellectualBeing 430 — 10y
1
Nah, you should be fine if it's a number value. Are you also sure the number value is named ID and is parented to the same object the script is? User#2 0 — 10y
View all comments (3 more)
0
Yes, I checked. Do I need to have the place I am teleporting to active? Quenty said I don't need to have BC to use universes. By the way the universe is all set up and everything. IntellectualBeing 430 — 10y
1
Yes, it needs to be active. User#2 0 — 10y
0
Ah, ok. Thanks for the help! IntellectualBeing 430 — 10y
Ad

Answer this question