Why is my teleport script no work?

What about if you disable that plugin?

This is the last time I am posting this
That is simply your plugins not loading, update your plugins

script.Parent.Touched:Connect(function(hit)
       if hit.Parent:FindFirstChild("Humanoid") then
             local tps = game:GetService("TeleportService")
             local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
             tps:Teleport(game.PlaceId, Player)
      end
end

but i am have no idea which plugin i am have someā€¦

ok i am going to try this script and check if is teleport


stay sameā€¦

Can you re-open the studio for me please?

have you looked up any YouTube tutorials and follow what they do? Those are helpful.

Are you 100% sure that you published the place before playing it in client?

You should do your research properly before making a reply like this. ā€œAssumingā€ does not mean ā€œit must beā€. Teleport can be called on the server just fine, but this is clearly not the source of OPā€™s problem in any case.

Teleport can be called both from the client and the server.
1 Like

Also I messed up the parameters please copy the updated script. Also publish the game and send us the game link, ok?
Here:

script.Parent.Touched:Connect(function(hit)
       if hit.Parent:FindFirstChild("Humanoid") then
             local tps = game:GetService("TeleportService")
             local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
             tps:Teleport(game.PlaceId, Player)
      end
end

Also, make use of this article

ok now the script just show me the dafult script i am going try do that again the teleport script and i check if is works now. yes is works thanks for everyone :slight_smile:

1 Like

Please mark the solution i am not sure which script works

Is is possible that you have two scripts, one running the teleport and one printing Hello World?
print("Hello World") is the default code for new scripts, right? So maybe you accidentally created one.

(Well, a Hello World canā€™t really do any harm. You could just choose to ignore it.)