#invite system for 20 coins
1 messages · Page 1 of 1 (latest)
alright payup
winson helped you
pay him
Not expect that xd
Send 100 Robux pass
Lemme see if it works tho when i get back from school
it doesnt work
whenever i join back after spending the coins it just gives them back
You can invite like this
@outer topaz
local Players = game:GetService("Players")
local SocialService = game:GetService("SocialService")
local player = Players.LocalPlayer
local Button = script.Parent
Button.Activated:Connect(function()
pcall(function()
if SocialService:CanSendGameInviteAsync(player) then
SocialService:PromptGameInvite(player)
end
end)
end)
This is localscript inside button btw.
And you just do Player:GetJoinData() on a server code to see how they joined.
After that just do your currency stuff
Ik that but idk how to give the coins whenever they invite
** You are now Level 1! **
did you have a coin system?
oh you have sorry
** You are now Level 5! **
yeah
if findfirstchild is not working try adding a waitforchild like this:
local coin = leaderstats:WaitForChild("Coins")