Hello, I am trying to make an invite friend button that when a player invites someone that person gets 10 rubies
Although the script doesnt work
This is my script:
local SS = game:GetService("SocialService")
SS.GameInvitePromptClosed:Connect(function(plr,id)
if #id >= 1 then
plr.leaderstats.Rubies.Value += 10
end
end)