I want to know how i would make a 1 day ban for my game given out by admins and people i trust how would i do it? Heres some code i tried.

local tick = 3600
local ban = ("DevelopingUnlimited") <-- my real roblox name.

for i,v in pairs(tick, ban) do
	if v == game.Players.Name then
		v:Kick("Banned for a day.")
	end
end

P.S It is a local script so it works anywhere.

5 comments

0

You would need to look into DataStores.

0

Brackets are not math exclusive and wont error, but they are still redundant.

0

ikr lol

0

Probably something to do with os.time()

0

Might try it out.