Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would i make a ban for a game that lasts a certain amount of days?

Asked by 6 years ago

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.

0
You would need to look into DataStores. mattscy 3725 — 6y
0
Brackets are not math exclusive and wont error, but they are still redundant. mattscy 3725 — 6y
0
ikr lol User#21908 42 — 6y
0
Probably something to do with os.time() stepatron 103 — 6y
0
Might try it out. DevelopingUnlimited -6 — 6y

Answer this question