Quantcast

How do i make a script that teleports players when they're in game

I want to make a map that players teleports to ExitRegion after button gets pressed, but players in lobby can’t be affected, How do i do this?
(please disable your topic is similar to, it’s annoying bruhhh)

isn’t teleporting banned in fe2?

@Harrucrab

  1. This is for map test, not being added to FE2.
  2. no u

it’s 2020 who uses no u anymore

1 Like

Him :joy:

I am gona go back to 2019 brb :flight_departure:

1 Like

plane go brrrr

1 Like

i deleted 2019

Lib.Map.tpstart.Touched:Connect(function(hit)
if hit.Parent ~= nil then
hit.Parent:SetPrimaryPartCFrame(CFrame.new(Lib.Map.tpend.Position))
end
end)

umm, it needs to get all players, that are not in lobby, but in game

like this:

Lib.btnFuncs[num] = function()
-- A Script For The Teleporting All Players If They're Not Dead
end

that’s the script you genius

Lib.Map.tpstart.Touched:Connect(function(hit)
if hit.Parent ~= nil then
hit.Parent:SetPrimaryPartCFrame(CFrame.new(Lib.Map.tpend.Position))
end
end)

that’s the script. just set it up before the player falls to the end zone

1 Like

bruh⠀

:joy:

It just sends the player who touched the teleporter and not everyone in the round like afk people.

It might have to be a local script since you want the players in the game to teleport not in the lobby

That would literally teleport anything, you need
if hit.Parent:FindFirstChild("Humanoid") ~= nil then