To add onto this,
Put a print in every section:
local Players = game:GetService("Players")
local TeleportService = game:GetService("TeleportService")
local Seats = script.Parent.Seats.Seat
local PlaceId = 3149170638
local minPlayerCount = 1
local PlayerTable = {}
function onTouched(hit)
print(1)
if hit.Parent:FindFirstChild("Humanoid") then
print(2)
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player then
print(3)
table.insert(PlayerTable, player)
if #PlayerTable >= minPlayerCount then
TeleportService:TeleportPartyAsync(PlaceId, PlayerTable)
print([[Enough Players, teleporting]]) --Cant use quotes on mobile device, this is a string.
end
end
end
end
Seats.Touched:Connect(onTouched)
If nothing prints, your part is unanchored or not detecting touches. If either is the case send the place file please.