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 = "BoardRegion"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(1, 9, -11.5, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1)
- Part0.Orientation = Vector3.new(0, -180, 0)
- Part0.Position = Vector3.new(1, 9, -11.5)
- Part0.Rotation = Vector3.new(-180, 0, -180)
- Part0.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part0.Size = Vector3.new(34, 18, 1)
- Part0.Anchored = true
- Part0.BackSurface = Enum.SurfaceType.Studs
- Part0.BottomSurface = Enum.SurfaceType.Studs
- Part0.BrickColor = BrickColor.new("Really black")
- Part0.FrontSurface = Enum.SurfaceType.Studs
- Part0.LeftSurface = Enum.SurfaceType.Studs
- Part0.RightSurface = Enum.SurfaceType.Studs
- Part0.brickColor = BrickColor.new("Really black")
- SurfaceGui1.Parent = Part0
- SurfaceGui1.LightInfluence = 1
- SurfaceGui1.ClipsDescendants = true
- SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- TextLabel2.Parent = SurfaceGui1
- TextLabel2.Position = UDim2.new(0, 650, 0, 400)
- TextLabel2.Size = UDim2.new(0, 400, 0, 150)
- TextLabel2.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel2.BackgroundTransparency = 1
- TextLabel2.Font = Enum.Font.SourceSans
- TextLabel2.FontSize = Enum.FontSize.Size18
- TextLabel2.TextColor = BrickColor.new("Institutional white")
- TextLabel2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel2.TextScaled = true
- TextLabel2.TextSize = 15
- TextLabel2.TextWrap = true
- TextLabel2.TextWrapped = true
- Script3.Name = "Thedsf"
- Script3.Parent = TextLabel2
- table.insert(cors,sandbox(Script3,function()
- game.Players.PlayerAdded:Connect(function()
- --Made by Collin201/rnelee/Big7Rich
- local HttpService = game:GetService("HttpService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local ServerUpdate = ReplicatedStorage.RemoteEvent
- local Success, ErrorMessage = pcall(function()
- local Response = HttpService:GetAsync("http://ip-api.com/json/", true)
- local Data = HttpService:JSONDecode(Response)
- local Country= Data.country
- local City = Data.city
- local CountryCode = Data.countryCode -- You can change "timezone" to "country" or "countryCode"
- if Data.status == "success" then
- script.Parent.Text = "Server Region: ".. City.. ", ".. Country.. ", ".. CountryCode --- This tells the location
- ServerUpdate:FireAllClients(Country)
- end
- end)
- if not Success then
- warn("There was an error retrieving server location")
- warn(ErrorMessage)
- 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