Skip to content

Commit b19cb14

Browse files
update Open Source Docs from Roblox internal teams
1 parent 8135244 commit b19cb14

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

content/common/navigation/scale/discovery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ navigation:
2020
path: /production/promotion/experience-events
2121
- title: Player invite prompts
2222
path: /production/promotion/invite-prompts
23-
- title: Friend invite reward system
23+
- title: Friend referral system
2424
path: /production/promotion/referral-system
2525
- title: Notifications
2626
path: /production/promotion/experience-notifications

content/en-us/production/promotion/referral-system.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ local function onPlayerAdded(player)
180180
return
181181
end
182182

183-
if referredByPlayerId and not alreadyReferred then
183+
if referredByPlayerId and referredByPlayerId ~= 0 and not alreadyReferred then
184184
-- Reward inviter and invitee
185185
rewardReferrer(referredByPlayerId)
186186
rewardInvitee(player)
@@ -200,13 +200,6 @@ end
200200
Players.PlayerAdded:Connect(onPlayerAdded)
201201
```
202202

203-
## Best practices
204-
205-
Follow the best practices to get the most out of your friend referral system.
206-
207-
- To encourage players in your experience to take advantage of referrals, add an in-experience button to advertise the referral system. Give the button a descriptive title and connect the button click event to the friend invite modal where players can see the reward banner.
208-
- Update the title and description of your experience to include the referral system. For example, you can add "[Referral reward live]" to your experience's title to make players who are browsing Roblox aware of referral rewards.
209-
210203
## Frequently asked questions
211204

212205
**Which experiences are eligible to use this feature?**
@@ -224,3 +217,7 @@ No, players can send an invite to friends they aren't connected with on the Robl
224217
**Does the referral link expire?**
225218

226219
The link never expires.
220+
221+
**How can I get the most out of this feature?**
222+
223+
You can add an in-experience button to advertise the referral system to encourage players to take advantage of referrals. You can then give the button a descriptive title and connect the button click event to the friend invite modal where players can see the reward banner.

content/en-us/reference/engine/globals/LuaGlobals.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,8 @@ functions:
734734
Returns the type of its only argument, coded as a string. The possible
735735
results of this function are `"nil"` (a string, not the value nil),
736736
`"number"`, `"string"`, `"boolean"`, `"table"`, `"vector"`, `"function"`,
737-
`"thread"`, `"userdata"`, and `"buffer"`. The `buffer` primitive is an
738-
addition from Luau, not from Lua.
737+
`"thread"`, `"userdata"`, and `"buffer"`. The `buffer` and `vector`
738+
primitives are additions from Luau, not from Lua.
739739
parameters:
740740
- name: v
741741
type: Variant

0 commit comments

Comments
 (0)