Issues with the script

Hello.
I have an issue with the script. I am honestly not a scripter, I copied and pasted this script from Roblox official website.
It is not teleporting, could any scripter tell why?
Thank you.

1 Like

Could you open output and check for errors?

That is the issue, there are none.

Capture

Try adding print() somewhere in the script, if the output prints it then the script reached that part.

Why aren’t you showing the full error?

I tried it but it did not print the text in the console for some reason. I used the script from here by the way: Teleporting Between Places | Roblox Creator Documentation

Cause there are no errors at all.

Do you have the module in Replicated Storage?

Why did you send a screenshot of an error if there aren’t any?

What module? The brick that needs to be teleported?

Teleport service doesn’t work in studio.

Only warnings, no errors. And what is infinite yield?

So the error is on line 8. Does “TeleportModule” exist in ReplicatedStorage? If not, there’s your problem.

Seems like you forgot to make a module script in replicated storage.

TeleportModule isn’t in ReplicatedStorage if it’s infinite yield.

I am doing it in a game, not studio.

As all 3 of us has said, you require a Module Script which has to be in Replicated Storage, follow the tutorial in the link you already sent.

Do I put the script inside the replicated storage or the whole brick?

Put only the Module in ReplicatedStorage