I am using HD admin and I’m trying to make a custom command where I (the owner) can give or take an amount of currency from a player. This is what I have now, I am not fimiliar with this stuff so some help would be appreciated!
{
Name = "give";
Aliases = {};
Prefixes = {settings.Prefix};
Rank = 5;
RankLock = false;
Loopable = false;
Tags = {"Abusive"};
Description = "give tokens to players";
Contributors = {};
--
Args = {"Player", "Stat", "Amount"};
Function = function(speaker, args)
local plr = args[1]
local stat = args[2]
local amt = args[3]
game.Players:WaitForChild(plr).leaderstats:WaitForChild(stat).Value += amt
end;
UnFunction = function(speaker, args)
end;
--
};