Any way I can make it so when the player leaves the game it bans them? So every time they leave the time they get banned gets longer and longer?
Or if the player dies they get banned forever?
Yes it is, although it is very tedious. I would use DataStoreService.
Why would you create a game with this feature? Your D7 would crash.
Game idea: If you leave you get banned
Why would people want to play this? They join and stay in, but for what?
So the longer they stay in they get time played, this gives them a highs score, if they leave they have to wait to get in again.
Do they do anything besides just sit there? If that is the core game loop then I don’t think it’ll work out. If that is a side feature then it might be okay.
Other people might like this idea, but I would not play it unless there was another feature to it.
They can also have curses, and more that they have to face or else they get banned.
Yes this would totally be possible.
Yes! I don’t know why banning them would be a good idea, there’s other ways to reward playtime. do note: i said reward playtime. not a good idea to discourage not giving playtime.
You create a datastore entry when a player leaves, storing the time they left using OS clock and the ban length in seconds, and every time a player joins check their datastore entry if it exists / what it contains. check OS clock minus ban duration and if it’s past that, let them join. if not, kick them immediately (make sure their entry is not updated if kicked!)
you could also do something like this in Roblox’s banservice, but i think just kicking them on join would be an easier idea
Oi mate!
I like the concept, but it seems rather mundane and ordinary, no? Banning the player is hardly a challenge. Rather, I suggest locking them out of iCloud for a week at a time. That’ll really teach them a lesson!
Cheers!
I don’t know about this game idea. It sounds like you’re trying to coerce a “player” (at this point, they are being described more like blackmail victims) into staying into your game forever so that you can profit. Why not just make a game that’s fun for the player??
You’d just call Players:BanAsync with the player’s UserId and the ban duration when Players.PlayerRemoving fires.
You can use Players:GetBanHistoryAsync to get their ban history and determine how long the ban should be.
You can probably put the docs above in an LLM and it should be able to write the code for you.