Hello all! I was simply wondering, is there a way to make this teleport script able to detect if a certain amount of players are touching a brick, then teleport those players to a different game, sort of like Prison Royale.
local TeleportService = game:GetService("TeleportService") local Place = 0 script.Parent.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then TeleportService:Teleport(Place, player) end end)
Hi there, excuse my minimal brain activity because it's way past midnight here and I'm supposed to be sleeping. Anyways,
You can achieve this by having 2 type of hitboxes, one which adds a player to a table when the player touches it, and another which removes the player from the table, which is then used to get the list of people that the script is going to teleport, I'm pretty sure that this is how that battle royale game you mentioned works.