Hi there im new. And i making place look like camping(This place is horror) And i maked teleporting from first map to another. And i maked script, but it dont works, says. Teleport Fail error id:773 place restricted. But i checked and it not restricted. Please, help me
local teleportservice = game:GetService("TeleportService")
function ontouch(hit)
if hit.Parent:FindFirstChild("Humanoid") then
print("Teleportaitmeplz")
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
teleportservice:Teleport(1380792098,player)
end
end
script.Parent.Touched:Connect(ontouch)
Is the game that your trying to teleport to public/exisiting? Trying using this script:
local TeleportService = game:GetService("TeleportService") local Place = --Put the game id of where ur teleporting here script.Parent.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then TeleportService:Teleport(Place, player) end end)
If it doesnt work then try watching this: http://www.youtube.com/watch?v=MJOaWcSz5jk