This is the code i got at the moment, I have others teams in my game and i dont want the prisonners datastore to store the other teams too (i need the prisoners to remain in prison even if they leave, and they only can get out of prison if we take them out of it)
local DataStoreService = game:GetService("DataStoreService")
local SpawnData = DataStoreService:GetDataStore("PlayerSpawn")
local part = game.Workspace.SpawnLocation
local function onTouched(HumanoidRootPart)
end
part.Touched:Connect(onTouched)
