I don’t know exactly where and how to start. I am usually good with this stuff but today isn’t my day. So if anyone could help me out, that would be great.
Places in the same universe share datastore so you could store whether user is banned or not under some datastore key/scope and use the same key/scope in your second place to get that value once player joins the game and immediately kick them out if they’re banned.
When a player joins check if the player is banned and then use Teleport Service to teleport them to the place
Ohhh I misunderstood your title, I just realised that after reading @darieus_developer’s post, my bad
local players = game:GetService("Players")
local banList = {}
for _, v in pairs(banlist)
if players:FindFirstChild(v) then
TeleportService:Teleport(placeId, v)
end
end
I think you have to add a PlayerAdded function and check if player is from the table
I intended it to be pseudo code in the beginning but I ended up writing it in the Lua format. That’s why I didn’t bother adding that method. And the reason I don’t want to add it now is because I don’t want to hand him everything on a silver plate. It would be much better if he used his critical thinking to solve the issue with the help he received.
I am a good programmer, it is just I have yet to explore every area of code. I know how to do the rest of the coding.