Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions restricted-features-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
local function isAgeVerified(player)
-- Placeholder: Simulate an age verification check
-- Example: Return true if the player has an "AccountAgeVerified" property (mocked)
return player.AccountAgeVerified or false
end

-- Function to restrict access to a feature based on age verification
local function restrictFeature(player, featureName)
if isAgeVerified(player) then
-- If the player is age-verified, allow access to the feature
print(player.Name .. " is allowed to use the " .. featureName .. " feature.")
-- You can enable the feature (e.g., show UI, enable developer tools)
else
-- If the player is not age-verified, deny access to the feature
print(player.Name .. " is restricted from using the " .. featureName .. " feature.")
-- Deny access and provide feedback to the player
player:Kick("You need to verify your age to access the " .. featureName .. " feature.")
end
end

-- Example: When a player joins, restrict access to certain features
game.Players.PlayerAdded:Connect(function(player)
local restrictedFeatures = {
"Developer Teams", -- Feature requires age verification
"Advertisements", -- Feature requires age verification
"Sponsors" -- Feature requires age verification
}

-- Loop through each feature and apply the restriction
for _, feature in ipairs(restrictedFeatures) do
restrictFeature(player, feature)
end
end)
25 changes: 25 additions & 0 deletions restricted-features-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Restricted Features in Roblox Studio and Creator Hub

Some features in Roblox Studio and Creator Hub require you to verify your age to access them. Age verification ensures a safe and compliant environment for developers.

## Features Requiring Age Verification
To use the following features, you must verify your age on Roblox:
1. Developer Team
2. Advertisements
3. Sponsors

## Why Age Verification is Required
Age verification is necessary to:
- Ensure compliance with Roblox's policies.
- Maintain a secure platform for all users.
- Enable responsible use of advanced tools and features.

## How to Verify Your Age
To verify your age:
1. Log in to your Roblox account.
2. Go to **Settings** > **Account Info**.
3. Follow the instructions to upload an official ID and complete the verification process.

If your account is not age-verified, you will not be able to use these features.

---
Loading