local H=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local u=require((H:WaitForChild("\080\114\111\106\101\099\116")):WaitForChild("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101"))local z=u:GetResource("\083\101\114\118\105\099\101\046\080\108\097\121\101\114\068\097\116\097\083\101\114\118\105\099\101")return{Keyword="\115\101\116\099\097\110\100\121",Description="\083\101\116\115 \116\104\101 \099\097\110\100\121 \102\111\114 \097 \115\101\116 \111\102 \112\108\097\121\101\114\115\046",Arguments={{Type="\110\101\120\117\115\065\100\109\105\110\080\108\097\121\101\114\115",Name="\080\108\097\121\101\114\115";Description="\080\108\097\121\101\114\115 \116\111 \115\101\116 \099\097\110\100\121\046"};{Type="\105\110\116\101\103\101\114",Name="\067\097\110\100\121",Description="\067\097\110\100\121 \118\097\108\117\101 \116\111 \115\101\116 \116\111\046"}};Run=function(H,u,A,Z)for H,u in pairs(A)do(z:GetPlayerData(u)):SetValue("\067\117\114\114\101\110\099\121",Z)end end}
--[[
TheNexusAvenger

Data for a command for setting candy.
--]]

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ServerScriptServiceProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ServerScriptService"))
local PlayerDataService = ServerScriptServiceProject:GetResource("Service.PlayerDataService")



return {
    Keyword = "setcandy",
    Description = "Sets the candy for a set of players.",
    Arguments = {
        {
            Type = "nexusAdminPlayers",
            Name = "Players",
            Description = "Players to set candy.",
        },
        {
            Type = "integer",
            Name = "Candy",
            Description = "Candy value to set to.",
        },
    },
    Run = function(self,CommandContext,Players,Candy)
        for _,Player in pairs(Players) do
            PlayerDataService:GetPlayerData(Player):SetValue("Currency",Candy)
        end
    end
}