Basically I have a boolvalue inside the player that denominates whether or not the player is in jail. If the value is true, (the value is changed by an arrest tool) then the player gets moved to a part (JailSpawn). Only thing is, I don't want to use teams. Can anyone help? I'm probably doing this all wrong, I'm new at scripting.
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
if player.Jailed.Value == true then
character:MoveTo(game.Workspace.JailSpawn.Position)
end
end)
end)
That's what I have so far. Thanks in advance.

3 comments
For some reason it's not working. I don't doubt your code, but it still won't move you if the value is true.
Hm, that's interesting. I tested it and it works. Try replacing wait() with wait(.1)
Works now. I really appreciate your help.