Trying to create a teleporter able to send a player or a npc holding a "CheckValue" to another teleporter

Hello I’d like to achieve a teleporter able to send a NPC and a player to another teleporter for my city.
Actually only true players can be teleported and yesterday I asked to a english friend to help me to make a Debris service for NPCs and players together. But it doesnt work yet :confused: when I am touching the teleporter, I get lags only.


here I tried to test everything. I tried to add a verification for the NPC and adding CheckValue in his group workspace.
My NPCs have pathfinders and are able to find a teleporter and jump on it (because my teleporters are pipelines)
I’d like to paste only one script able to teleport any teleporter to another teleport with a checkvalue or one tag (example = Pipeline1 has a value named “Tag” 0001 and he send us to Pipeline2 with a value named “Tag” 0002)
If I could make a teleporter able to take Players and NPCs I’ll give it at my friends and people who were needed.
SOrry for my english, I’m french and I try to do my best to be understood!

3 Likes

Hello there, I don’t really understand what’s the utility of your function findtele, couldn’t you just replace

local tele = findTele(Teleport_To_This_Tag)

with

local tele = game.Workspace:FindFirstChild(Teleport_To_This_Tag)

and name ur teleporter like 0002 in the workspace ?

Capture d’écran (12)

Hello, the utility of my fonction is to find the pad and to be teleporter to another pad with a different tag. I don’t want to nickname my teleporters like 0002 because it’s complicated for me to find them in my workspace. I prefer my model are named : Pipeline

1 Like