here are the scripts of the 3 scripts that are working and for example I’ll provide one of the scripts in the plugin section that is working unlike these 3
1 —
server.Commands.AddSpec = {
Prefix = server.Settings.Prefix; – Prefix to use for command
Commands = {“AddSpec”}; – Commands
Args = {“Players”, “String”}; – Command arguments
Description = “Sets the Spec of the player, make sure the first Char is capitalized”; – Command Description
Hidden = false; – Is it hidden from the command list?
Fun = false; – Is it fun?
AdminLevel = “Owners”; – Admin level; If using settings.CustomRanks set this to the custom rank name (eg. “Baristas”)
Function = function(plr,args) – Function to run for command
local Players = service.GetPlayers(plr, args[1], true, true)
for i,v in pairs(Players) do
local Level = game.ServerStorage[".skilltree"][v.Name]
local Location = v.Character.HumanoidRootPart.CFrame
if Level then
local Clone = Instance.new(“IntValue”)
Clone.Name = args[2]
Clone.Parent = Level
if v.Character and v.Character:FindFirstChild(“Humanoid”) then
v:LoadCharacter()
wait(0.5)
v.Character.HumanoidRootPart.CFrame = Location
end
end
end
end
}
2 –
server.Commands.SpReset = {
Prefix = server.Settings.Prefix; – Prefix to use for command
Commands = {“SpReset”}; – Commands
Args = {“Players”}; – Command arguments
Description = “Resets the Stats of the player, make sure the first Char is capitalized”; – Command Description
Hidden = false; – Is it hidden from the command list?
Fun = false; – Is it fun?
AdminLevel = “Owners”; – Admin level; If using settings.CustomRanks set this to the custom rank name (eg. “Baristas”)
Function = function(plr,args) – Function to run for command
local Players = service.GetPlayers(plr, args[1], true, true)
for i,v in pairs(Players) do
local Location = v.Character.HumanoidRootPart.CFrame
if v.Character and v.Character:FindFirstChild(“Humanoid”) then
game.ServerStorage[".stats"][v.Name].SpentSkillPoints.Value = 0
for a, b in pairs(game.ServerStorage[".skilltree"][v.Name]:GetChildren()) do
b:Destroy()
end
wait(.1)
v:LoadCharacter()
wait(0.5)
v.Character.HumanoidRootPart.CFrame = Location
end
end
end
}
3 –
server.Commands.Wipe = {
Prefix = server.Settings.Prefix; – Prefix to use for command
Commands = {“Wipe”}; – Commands
Args = {“Players”, “String”}; – Command arguments
Description = “Wipes the player, make sure the first Char is capitalized”; – Command Description
Hidden = false; – Is it hidden from the command list?
Fun = false; – Is it fun?
AdminLevel = “Creator”; – Admin level; If using settings.CustomRanks set this to the custom rank name (eg. “Baristas”)
Function = function(plr,args) – Function to run for command
local Players = service.GetPlayers(plr, args[1], true, true)
for i,v in pairs(Players) do
_G.Permadeath(v, args[2])
end
end
}
One that works –
server.Commands.SetRank = {
Prefix = server.Settings.Prefix;
Commands = {“setrank”,“SetRank”};
Args = {“player”,“value”};
Description = “Set player Rank Value (1-5)”;
AdminLevel = “Admins”;
Function = function(plr,args)
if not args[1] and args[2] then error(“Argument missing or nil”) end
if not tonumber(args[2]) then error(“Argument 2 is not a valid number”) end
local folders = service.ServerStorage:FindFirstChild(".stats")
for i,v in pairs(service.GetPlayers(plr,args[1])) do
local playerFolder = folders:FindFirstChild(v.Name)
if playerFolder then
local Data = playerFolder:FindFirstChild(‘Rank’)
if Data then
Data.Value = tonumber(args[2])
v:LoadCharacter()
server.Functions.Hint("Set “…tostring(v)…” rank to "…tostring(args[2]),{plr})
else
error(“No weapon data value found”)
end
else
error("Could not find data for "…tostring(v))
end
end
end
}
If its a bit hard to read I can take photos of the exact scripts and upload them here, I know this isn’t as long so it mashes the script up a bit