Same issue once again,

Hello.

I have the same issue again. It is showing an error while I did everything exactly as it showed in the tutorial: Teleporting Between Places

I have another game that the script works on with the custom teleport screen and it works there.
I tried copying every single thing and putting it in the new game.
Still does not work and is showing errors.
Everything in Game Settings/Security is enabled except Allow Third Party Sales.

I am honestly not a scripter but how can it work on 1 game and not work on 2nd?

Ignore the Adonis thing

Help would be appreciated.

You’re probably getting the WaitForChild error because a script can not find the humanoid. By default WaitForChild waits 5 seconds to find something. For more information check out this post: Instance | Roblox Creator Documentation
Also can I see your script please?

1 Like

Right, okay. Which script though? Base part?

This is the base part script

local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local Players = game:GetService(“Players”)

local teleportPart = script.Parent
local targetPlaceID = 7394018757 – Change this to your place ID

– Require teleport module
local TeleportModule = require(ReplicatedStorage:WaitForChild(“TeleportModule”))

local function onPartTouch(otherPart)
– Get player from character
local player = Players:GetPlayerFromCharacter(otherPart.Parent)

if player and not player:GetAttribute("Teleporting") then
	player:SetAttribute("Teleporting", true)

	-- Teleport the player
	local teleportResult = TeleportModule.teleportWithRetry(targetPlaceID, {player})

	player:SetAttribute("Teleporting", nil)
end

end

teleportPart.Touched:Connect(onPartTouch)

Sorry for replying late but can you show me the script that has the WaitForChild(“Humanoid”) error?
I think it might be called Animate.

1 Like

That is another script that is out of use. It is an animation trigger and has nothing related to this.

These are the errors related to the teleporting script.
I followed the official Roblox tutorial so I do not know what is wrong.

Line 4 is

local teleportPart = script.Parent

right?

1 Like

I have 2 scripts in there both related to the teleporting script.

In first script I have: local DSS = game:GetService(“DataStoreService”)

In 2nd script I have: local TeleportModule = require(ReplicatedStorage:WaitForChild(“TeleportModule”))

If you are talking about server script service.

1 Like

First script is:

local ReplicatedStorage = game:GetService(“ReplicatedStorage”)

– Require teleport module

local TeleportModule = require(ReplicatedStorage:WaitForChild(“TeleportModule”))

– Fire the module function on server event

local teleportEvent = ReplicatedStorage:WaitForChild(“TeleportEvent”)

teleportEvent.OnServerEvent:Connect(function(player, targetPlaceID)

local teleportResult = TeleportModule.teleportWithRetry(targetPlaceID, {player})

end)

2nd script is:

local isReserved = game.PrivateServerId ~= “” and game.PrivateServerOwnerId == 0
local TS = game:GetService(“TeleportService”)
local Players = game:GetService(“Players”)
local DSS = game:GetService(“DataStoreService”)
local DS = DSS:GetGlobalDataStore()

– Get the saved code
local code = DS:GetAsync(“ReservedServer”)
if type(code) ~= “string” then – None saved, create one
code = TS:ReserveServer(game.PlaceId)
DS:SetAsync(“ReservedServer”,code)
end

local function Joined(plr)
– Everytime they chat, we want to know
plr.Chatted:Connect(function(msg)
if msg == “reserved” then – Aha, that’s our cue
TS:TeleportToPrivateServer(game.PlaceId,code,{plr})
end
end)
end

– Connect all current and future players
Players.PlayerAdded:Connect(Joined)
for k,v in pairs(Players:GetPlayers()) do
Joined(v)
end

1 Like

What does your explorer look like?

1 Like

It has a lot of stuff inside of it, do you want to see the stuff that is related to the teleporting thing?

Yeah I’d like to see those things

1 Like

Capture
Capture2
Capture3

Ignore the ServerStorage, it has nothing to do with the teleporting.

1 Like

That is what I was doing the whole time. I never did teleporting in studio, I only did it on the Roblox Client. Well, at least attempted to do it but it did not work.

1 Like

Capture

I just do not know how it works on my other game, but does not work on this one :thinking: .

What is your module script?
//

1 Like

TeleportModule ?

Need to type more characters so I can reply to your message.

1 Like

Yes.

I do too lol asdfgghhjkl;

1 Like