I made a group and I have a training center. I created a system where they receive points when they are doing good in the training. I just need a command that a team can enter to give them points. How would I do this?
This is the script I used to set up the leaderstat
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("IntValue")
leaderstats.Name = "leaderstats"
leaderstats.Value = 1
local rank = Instance.new("StringValue")
rank.Name = "Rank"
rank.Value = player:GetRoleInGroup(4339656)
local DataStore = game:GetService("DataStoreService")
local ds = DataStore:GetDataStore("PPSaveSystem")
local PP = Instance.new("IntValue",leaderstats)
PP.Name = "Progress Points"
PP.Value = ds:GetAsync(player.UserId) or 0
ds:SetAsync(player.UserId, PP.Value)
PP.Changed:connect(function()
ds:SetAsync(player.UserId, PP.Value)
end)
leaderstats.Parent = player
rank.Parent = leaderstats
end)
game.Players.PlayerRemoving:connect(function(player)
ds:SetAsync(player.UserId, player.leaderstats.Cash.Value)
end)

2 comments
one simple google search would have given you this as a top answer: https://devforum.roblox.com/t/how-to-make-basic-admin-commands/59691/2 please don't post a question unless you ran into a problem or have any curiosities about something, don't expect us to write the code for you!
thank you