Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Thanks for using this script
- This script was made by Joriangames/BloxianCode
- Want to know how to use this and script explanation?
- Check the video here: https://youtu.be/Q_L_qaXgxk0
- ]]
- local LocalizationS = game:GetService("LocalizationService")
- local Player = game.Players.LocalPlayer
- local result, code = pcall(function()
- return LocalizationS:GetCountryRegionForPlayerAsync(Player)
- end)
- print("Player is from: "..code)
- if result and code == "NL" then
- print("Hello, friend from the Netherlands!")
- Player.PlayerGui:WaitForChild("ScreenGui").TextLabel.Text = "You are from the Netherlands, you must follow the new roblox rules"
- Player.PlayerGui.ScreenGui.TextLabel.BackgroundTransparency = 0
- else
- print("You are in a safe country")
- Player.PlayerGui:WaitForChild("ScreenGui").TextLabel.Text = "You are not from the Netherlands"
- Player.PlayerGui.ScreenGui.TextLabel.BackgroundTransparency = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement