hello, so i made a teleport script like that: script.Parent.Touched:Connect(function() local tps = game:GetService("TeleportService") tps:Teleport(script.Parent.Place.Value) end)
and i made that as normal script with stringvalue inside that have the place number.
so sombody can tell me why is no works? (i try change the: tps:Teleport(script.Parent.Place.Value) to: tps:Teleport(4522571024) )
note: the code no have a bug its just replace my script to Print(“Hello World!”)
Does it return an error in the output window? Does a popup show to suggest that the teleport has failed due to the wrong place id? There’s so many possible reasons why it wouldn’t work you need to give more info.
Also, the teleport service takes 2+ parameters , the place id and the player instance are required, so please note that
Use
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local tps = game:GetService("Teleportservice")
tps:Teleport(game.Players:WaitForChild(hit.Parent.Name), script.Parent.PlaceId)
end
end