I'm not sure if I'm forwarding the variables to the functions right, if I'm not, could you show me how?
admins={"tdog158","player","buildtothextreme"}
banned={}
cleaned={}
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg=="clean" or msg=="voteclean" or msg=="clear" then
clean(player)
elseif msg=="regen" or msg=="regenerate" then
regen()
elseif msg=="spawn" or msg=="respawn" then
spawn(player)
elseif msg=="reset" or msg=="suicide" or msg=="kill" or msg=="killme" then
player.Character:BreakJoints()
elseif string.sub(msg,1,4)=="ban/" then
ban(player,string.sub(msg,5,string.len(msg)))
elseif msg=="tnt" then
tnt(player)
elseif string.sub(msg,1,4)=="say/" then
shout(player,string.sub(msg,5,string.len(msg)))
end
end)
end)
function clean(player)
end
function regen()
end
function spawn(player)
end
function ban(player, player2)
end
function tnt(player)
end
function shout(player, message)
end |