Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- SurfaceGui1 = Instance.new("SurfaceGui")
- TextLabel2 = Instance.new("TextLabel")
- Script3 = Instance.new("Script")
- Part0.Name = "Board"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-0.5, 5.49999714, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(-0.5, 5.499997138977051, -0.5)
- Part0.Size = Vector3.new(15, 11, 1)
- Part0.Anchored = true
- Part0.BackSurface = Enum.SurfaceType.Studs
- Part0.BottomSurface = Enum.SurfaceType.Studs
- Part0.FrontSurface = Enum.SurfaceType.Studs
- Part0.LeftSurface = Enum.SurfaceType.Studs
- Part0.RightSurface = Enum.SurfaceType.Studs
- SurfaceGui1.Name = "GUISur"
- SurfaceGui1.Parent = Part0
- SurfaceGui1.ClipsDescendants = true
- SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui1.MaxDistance = 10000000000
- TextLabel2.Name = "Loc"
- TextLabel2.Parent = SurfaceGui1
- TextLabel2.Size = UDim2.new(0, 800, 0, 600)
- TextLabel2.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel2.BorderColor = BrickColor.new("Really black")
- TextLabel2.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel2.BorderSizePixel = 0
- TextLabel2.Font = Enum.Font.SourceSans
- TextLabel2.FontSize = Enum.FontSize.Size14
- TextLabel2.Text = "Waiting for new players..."
- TextLabel2.TextColor = BrickColor.new("Really black")
- TextLabel2.TextColor3 = Color3.new(0, 0, 0)
- TextLabel2.TextScaled = true
- TextLabel2.TextSize = 14
- TextLabel2.TextWrap = true
- TextLabel2.TextWrapped = true
- Script3.Name = "Work"
- Script3.Parent = Part0
- table.insert(cors,sandbox(Script3,function()
- local Players = game:GetService("Players")
- local HttpService = game:GetService("HttpService")
- local LocalizationService = game:GetService("LocalizationService")
- local Countries = {}
- local success, result = pcall(function()
- return HttpService:GetAsync("http://country.io/names.json")
- end)
- if success and result then
- Countries = HttpService:JSONDecode(result)
- end
- Players.PlayerAdded:Connect(function(player)
- local success, code = pcall(LocalizationService.GetCountryRegionForPlayerAsync, LocalizationService, player)
- if success and code then
- TextLabel2.Text = player.DisplayName .." is from ".. Countries[code]
- end
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement