So I’m working on someone’s game, which uses kohl’s admin commands, but I can’t figure out how they work.
When I type in :updateserver, it just says invalid syntax…
The code so far:
return {
{{'update','updateserver'},{'whatdoes','thisdo1'},4,{'whatdoes','thisdo'},function(pl,args)
for _, playerrrrr in pairs(game.Players:GetChildren()) do
playerrrrr:Kick("THE GAME IS BEING UPDATED. please rejoin :)")
end
end}
};
I’ve tried Youtube, but honestly that just confuses me more…
2 Likes
Im not a programmer myself, But why do you have 5 “r”'s in player?
return {
{{'update','updateserver'},{'whatdoes','thisdo1'},4,{'whatdoes','thisdo'},function(pl,args)
for _, player in pairs(game.Players:GetChildren()) do
player:Kick("THE GAME IS BEING UPDATED. please rejoin :)")
end
end}
};
i think that’s it i fixed the “5”'s that you have
1 Like
player having 5 r’s doesn’t necessarily make the code not work. However, having 5 r’s is pointless and can cause typos.
1 Like
Well i think you have the point @alliedoeihoialt
1 Like
The reason it works is because it’s more of a variable name and variable names can be customisable.
1 Like
Well, You sound like you know what your doing @alliedoeihoialt. Nice!
1 Like