Professional Documents
Culture Documents
Message
Message
local Ranks = {
['Owner'] = 255;
['Admin'] = 254;
local Rank = 0
return Rank
end
local ModCommands =
{"addtool","reroll1","reroll2","face","rest","fatigue","advstyle","skincolor","npc"
,"dummy","height","clothing","max2","webhook","eyecolor","style","max","wipe","clot
hes","eyes","pupils","mouth","nose","eyebrows","gender","aura","scar","re","kick","
heal","feed","rest","gang","strength","hitspeed","defense","stamina","speed","clan"
,"name","title","changemoney","givemoney"}
local Commands = {
['re'] = function(Player,Sentence)
Player:LoadCharacter()
end;
['addtool'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
print(x)
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Height.Value = x
end,
['skincolor'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Choosen.Value = x
end,
['gang'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Gang.Value = x
end,
['gender'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Gender.Value = x
end,
['nose'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Nose.Value = x
end,
['eyebrows'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Eyebrows.Value = x
end,
['aura'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.Stats.Aura.Value = x
end,
['advstyle'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.AdvancedStyle.Value = x
end,
['style'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Style.Value = x
end,
['scar'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.Stats.Scar.Value = x
end,
['pupils'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Pupils.Value = x
end,
['eyes'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Eyes.Value = x
end,
['mouth'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Mouth.Value = x
end,
['kick'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player:Kick(x)
end,
['reroll1'] = function(Player,Sentence)
local PossiblePupils = {Color3.fromRGB(28, 225, 255),Color3.fromRGB(93,
93, 93),Color3.fromRGB(74, 45, 20),Color3.fromRGB(44, 255,
6),Color3.fromRGB(0,0,0),
Color3.fromRGB(252, 0, 6),Color3.fromRGB(141, 0,
149),Color3.fromRGB(253, 130, 8),Color3.fromRGB(245, 255, 10),Color3.fromRGB(156,
179, 255),Color3.fromRGB(150, 0, 0),Color3.fromRGB(40, 2, 255),Color3.fromRGB(255,
255, 255),Color3.fromRGB(255, 0, 136)
}
Player.StatsM.EyeColor.Value =
PossiblePupils[math.random(1,#PossiblePupils)]
end;
['reroll2'] = function(Player,Sentence)
local PossibleEyeBrows = {Color3.fromRGB(28, 225,
255),Color3.fromRGB(93, 93, 93),Color3.fromRGB(74, 45, 20),Color3.fromRGB(44, 255,
6),Color3.fromRGB(0,0,0),
Color3.fromRGB(252, 0, 6),Color3.fromRGB(141, 0,
149),Color3.fromRGB(253, 130, 8),Color3.fromRGB(245, 255, 10),Color3.fromRGB(156,
179, 255),Color3.fromRGB(150, 0, 0),Color3.fromRGB(40, 2, 255),Color3.fromRGB(255,
255, 255),Color3.fromRGB(255, 0, 136)
}
Player.StatsM.EyeBrowsColor.Value =
PossibleEyeBrows[math.random(1,#PossibleEyeBrows)]
end;
['face'] = function(Player,Sentence)
Player.StatsM.Mouth.Value = 0
Player.StatsM.Nose.Value = 0
Player.StatsM.Eyes.Value = 0
Player.StatsM.Eyebrows.Value = 0
end;
['webhook'] = function(Player,Sentence)
local x
for i = 2,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
local Data = {
["content"] = x
}
Data = http:JSONEncode(Data)
http:PostAsync(webhook, Data)
end,
['strength'] = function(Player,Sentence)
Player.StatsM.Strength.Value = num
end,
['speed'] = function(Player,Sentence)
Player.StatsM.Speed.Value = num
end,
['defense'] = function(Player,Sentence)
Player.StatsM.Defense.Value = num
end,
['stamina'] = function(Player,Sentence)
Player.StatsM.StaminaLvl.Value = num
end,
['npc'] = function(Player,Sentence)
local x = script["Student"]:Clone()
if Sentence[2] then
x.Humanoid.MaxHealth = tonumber(Sentence[2])
x.Humanoid.Health = tonumber(Sentence[2])
end
x.Parent = workspace.Game.Character
x.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame
*CFrame.new(0,0,-2)
end,
['dummy'] = function(Player,Sentence)
local x = script["Dummy Spawned"]:Clone()
if Sentence[2] then
x.Humanoid.MaxHealth = tonumber(Sentence[2])
x.Humanoid.Health = tonumber(Sentence[2])
end
x.Parent = workspace.Game.Character
x.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame
*CFrame.new(0,0,-2)
end,
['heal'] = function(Player,Sentence)
Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth
end;
['feed'] = function(Player,Sentence)
Player.StatsM.Hunger.Value = 100
end;
['fatigue'] = function(Player,Sentence)
local num = tonumber(Sentence[3])
Player.StatsM.Fatigue.Value = num
end;
['rest'] = function(Player,Sentence)
local info = {}
info.Damager = Player.Character
Player.StatsM.Hunger.Value = 100
Player.StatsM.Fatigue.Value = 0
Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth
_G.Rest(Player.Character,info)
end;
['wipe'] = function(Player,Sentence)
Player.StatsM.Title.Value = "None"
Player.StatsM.FirstName.Value = "None"
Player.StatsM.LastName.Value = "None"
Player.StatsM.Strength.Value = 0
Player.StatsM.Speed.Value = 0
Player.StatsM.Defense.Value = 0
Player.StatsM.StaminaLvl.Value = 0
Player.Stats.Cash.Value = 0
Player.StatsM.Style.Value = "None"
Player.StatsM.AdvancedStyle.Value = "None"
Player.StatsM.Mouth.Value = 0
Player.StatsM.Nose.Value = 0
Player.StatsM.Eyes.Value = 0
Player.StatsM.Eyebrows.Value = 0
end;
['max'] = function(Player,Sentence)
Player.StatsM.Strength.Value = 10
Player.StatsM.Speed.Value = 8
Player.StatsM.Defense.Value = 45
Player.StatsM.StaminaLvl.Value = 30
end;
['max2'] = function(Player,Sentence)
Player.StatsM.Strength.Value = 3
Player.StatsM.Speed.Value = 5
Player.StatsM.Defense.Value = 40
end;
['title'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
Player.StatsM.Title.Value = x
['clan'] = function(Player,Sentence)
local Clan = Sentence[3]
Player.StatsM.LastName.Value = Clan
if Player.StatsM.Title.Value ~= "None" then
Player.Character.Humanoid.DisplayName =
Player.StatsM.FirstName.Value.." "..'"'..Player.StatsM.Title.Value..'"'.."
"..Player.StatsM.LastName.Value
else
Player.Character.Humanoid.DisplayName =
Player.StatsM.FirstName.Value.." "..Player.StatsM.LastName.Value
end
end,
['name'] = function(Player,Sentence)
local Name = Sentence[3]
Player.StatsM.FirstName.Value = Name
if Player.StatsM.Title.Value ~= "None" then
Player.Character.Humanoid.DisplayName =
Player.StatsM.FirstName.Value.." "..'"'..Player.StatsM.Title.Value..'"'.."
"..Player.StatsM.LastName.Value
else
Player.Character.Humanoid.DisplayName =
Player.StatsM.FirstName.Value.." "..Player.StatsM.LastName.Value
end
end,
['changemoney'] = function(Player,Sentence)
local Money = Sentence[3]
if tonumber(Money) == nil then
Money = 0
end
Player.Stats.Cash.Value = Money
end;
['givemoney'] = function(Player,Sentence)
local Money = Sentence[3]
if tonumber(Money) == nil then
Money = 100
end
Player.Stats.Cash.Value += Money
end;
['clothes'] = function(Player,Sentence)
local x
for i = 3,#Sentence do
if x == nil then
x = Sentence[i]
else
x = x.." "..Sentence[i]
end
end
if x then
if not game.ServerStorage.Clothes:FindFirstChild(x) then return
end
Player.StatsM.Clothes.Value = x
for i,v in pairs(Player.Character:GetChildren()) do
if v:IsA("CharacterMesh") or v:IsA("Shirt") or
v:IsA("Pants") or v:IsA("ShirtGraphic") then
v:Destroy()
elseif v:IsA("Accessory") then
if v.Handle:FindFirstChild("HairAttachment") == nil
then v:Destroy() end
end
end
for i,v in
pairs(game.ServerStorage.Clothes[Player.StatsM.Clothes.Value]:GetChildren()) do
v:Clone().Parent = Player.Character end
end
end,
function module.Execute(plr,chat)
if CheckRank(plr) == 255 then
local Sentence = string.split(chat," ")
local Second
if Sentence[2] then
Second = Sentence[2]:lower()
end
if string.sub(First,1,1) == index and
table.find(ModCommands,string.sub(First,2,#First):lower()) then
local Player = plr
if Second and tonumber(Second) == nil then
Player = FindPlayer(Second)
end
if Second == "me" then
Player = plr
end
if Second == nil then
Player = plr
end
if Second == "all" then
for i,v in pairs(game.Players:GetPlayers()) do
Commands[string.sub(First,2,#First)](v,Sentence)
end
return end
Commands[string.sub(First,2,#First)](Player,Sentence)
end
elseif CheckRank(plr) == 254 then
if Sentence[2] then
Second = Sentence[2]:lower()
end
Commands[string.sub(First,2,#First)](Player,Sentence)
end
end
end
return module