Guest User

Untitled

a guest
Jun 30th, 2018
142
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Farewell infortality
  2. -- Revamp by ImFrostic, Version 2.81
  3.  
  4. -- Objects
  5.  
  6. local Cursed = Instance.new("ScreenGui")
  7. local home = Instance.new("Frame")
  8. local close = Instance.new("TextButton")
  9. local Frame = Instance.new("Frame")
  10. local pass = Instance.new("TextBox")
  11. local user = Instance.new("TextBox")
  12. local login = Instance.new("TextButton")
  13. local invalidlogin = Instance.new("Frame")
  14. local exit = Instance.new("TextButton")
  15. local TextLabel = Instance.new("TextLabel")
  16. local Frame_2 = Instance.new("Frame")
  17. local TextLabel_2 = Instance.new("TextLabel")
  18. local settings = Instance.new("Frame")
  19. local exit_2 = Instance.new("TextButton")
  20. local TextLabel_3 = Instance.new("TextLabel")
  21. local Frame_3 = Instance.new("Frame")
  22. local TextLabel_4 = Instance.new("TextLabel")
  23. local Main = Instance.new("Frame")
  24. local close_2 = Instance.new("TextButton")
  25. --Whitelist check
  26. local whitelisted = {"CursedReborn"}--allow players in, if you're not here you will be notified
  27. local blacklisted = {""}--disconnect them
  28. local userAllowed = false
  29. local player = game.Players.LocalPlayer
  30.  
  31. function checkcode()
  32. -- blacklist checking --
  33. local bindableFunction = Instance.new("BindableFunction")
  34. bindableFunction.OnInvoke = callback
  35. for i,v in pairs(blacklisted) do
  36. if string.lower(player.Name) == string.lower(v) then
  37. userAllowed = false
  38. game.StarterGui:SetCore("SendNotification", {
  39. Title = "KICKING...";
  40. Text = "";
  41. Icon = "";
  42. Duration = 5;
  43. Callback = bindableFunction;
  44. Button1 = "";
  45. Button2 = "";
  46. })
  47. if userAllowed == false then
  48. local function callback(textt)
  49. if textt == "Yes" then
  50. print("")
  51. elseif textt == "No" then
  52. print("")
  53. -- notify
  54. local bindableFunction = Instance.new("BindableFunction")
  55. bindableFunction.OnInvoke = callback
  56. game.StarterGui:SetCore("SendNotification", {
  57. Title = "Couldn't load";
  58. Text = "GUI couldn't load because you aren't whitelisted";
  59. Icon = "";
  60. Duration = 8;
  61. Callback = bindableFunction;
  62. Button1 = "";
  63. Button2 = "";
  64. })
  65. else
  66. if userAllowed == true then
  67. local bindableFunction = Instance.new("BindableFunction")
  68. bindableFunction.OnInvoke = callback
  69. game.StarterGui:SetCore("SendNotification", {
  70. Title = "Loading...";
  71. Text = ":)";
  72. Icon = "";
  73. Duration = 8;
  74. Callback = bindableFunction;
  75. Button1 = "";
  76. Button2 = "";
  77. })
  78. end
  79. end
  80. end
  81. end
  82. end
  83. end
  84. end
  85.  
  86. -- check code player input --
  87. textbox.FocusLost:connect(function(enterPressed)
  88. if enterPressed then
  89. for i,v in pairs(whitelisted) do
  90. if string.lower(player.Name) == string.lower(v) then
  91. userAllowed = true
  92. checkcode()
  93. else
  94. userAllowed = false
  95. checkcode()
  96. end
  97. end
  98. end
  99. end)
  100. -- Properties
  101.  
  102. Cursed.Name = "Cursed"
  103. Cursed.Parent = game.CoreGui
  104.  
  105. home.Name = "home"
  106. home.Parent = Cursed
  107. home.Active = true
  108. home.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  109. home.BorderSizePixel = 0
  110. home.Draggable = true
  111. home.Position = UDim2.new(0.459375024, -110, 0.662030578, -72)
  112. home.Selectable = true
  113. home.Size = UDim2.new(0, 411, 0, 282)
  114.  
  115. close.Name = "close"
  116. close.Parent = home
  117. close.BackgroundColor3 = Color3.new(1, 1, 1)
  118. close.BackgroundTransparency = 1
  119. close.Position = UDim2.new(0, 350, 0, 12)
  120. close.Size = UDim2.new(0, 51, 0, 31)
  121. close.Font = Enum.Font.Arial
  122. close.Text = "X"
  123. close.TextColor3 = Color3.new(1, 1, 1)
  124. close.TextSize = 14
  125.  
  126. Frame.Parent = home
  127. Frame.Active = true
  128. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  129. Frame.BorderSizePixel = 0
  130. Frame.Position = UDim2.new(0, 0, 0, 238)
  131. Frame.Selectable = true
  132. Frame.Size = UDim2.new(0, 411, 0, 44)
  133.  
  134. pass.Name = "pass"
  135. pass.Parent = Frame
  136. pass.BackgroundColor3 = Color3.new(1, 1, 1)
  137. pass.BorderSizePixel = 0
  138. pass.Position = UDim2.new(0, 161, 0, 6)
  139. pass.Size = UDim2.new(0, 120, 0, 32)
  140. pass.Font = Enum.Font.Arial
  141. pass.MultiLine = true
  142. pass.Text = "Password"
  143. pass.TextColor3 = Color3.new(0, 0, 0)
  144. pass.TextSize = 14
  145. pass.TextWrapped = true
  146.  
  147. user.Name = "user"
  148. user.Parent = Frame
  149. user.BackgroundColor3 = Color3.new(1, 1, 1)
  150. user.BorderSizePixel = 0
  151. user.Position = UDim2.new(0.034063261, 0, 0.153789148, 0)
  152. user.Size = UDim2.new(0, 130, 0, 29)
  153. user.Font = Enum.Font.Arial
  154. user.MultiLine = true
  155. user.Text = "Username"
  156. user.TextColor3 = Color3.new(0, 0, 0)
  157. user.TextSize = 14
  158. user.TextWrapped = true
  159.  
  160. login.Name = "login"
  161. login.Parent = Frame
  162. login.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  163. login.BorderSizePixel = 0
  164. login.Position = UDim2.new(0, 309, 0, 9)
  165. login.Size = UDim2.new(0, 92, 0, 29)
  166. login.Font = Enum.Font.ArialBold
  167. login.Text = "Login"
  168. login.TextColor3 = Color3.new(1, 1, 1)
  169. login.TextSize = 14
  170. login.MouseButton1Down:connect(function()
  171. if user.Text == 'User' and pass.Text == 'Pass' then
  172. Cursed.home.Visible = false
  173. Cursed.Main.Visible = true
  174. else
  175. Cursed.home.invalidlogin.Visible = true
  176. Cursed.home.Visible = true
  177. end
  178. end)
  179.  
  180. invalidlogin.Name = "invalidlogin"
  181. invalidlogin.Parent = home
  182. invalidlogin.Active = true
  183. invalidlogin.BackgroundColor3 = Color3.new(1, 1, 1)
  184. invalidlogin.BorderSizePixel = 0
  185. invalidlogin.Draggable = true
  186. invalidlogin.Position = UDim2.new(0, 824, 0, 283)
  187. invalidlogin.Selectable = true
  188. invalidlogin.Size = UDim2.new(0, 203, 0, 25)
  189. invalidlogin.Visible = false
  190.  
  191. exit.Name = "exit"
  192. exit.Parent = invalidlogin
  193. exit.BackgroundColor3 = Color3.new(1, 1, 1)
  194. exit.BorderSizePixel = 0
  195. exit.Position = UDim2.new(0, 157, 0, 0)
  196. exit.Size = UDim2.new(0, 43, 0, 25)
  197. exit.Font = Enum.Font.Arial
  198. exit.Text = "X"
  199. exit.TextColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  200. exit.TextSize = 18
  201.  
  202. TextLabel.Parent = invalidlogin
  203. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  204. TextLabel.BorderSizePixel = 0
  205. TextLabel.Position = UDim2.new(0, 52, 0, 0)
  206. TextLabel.Size = UDim2.new(0, 98, 0, 25)
  207. TextLabel.Font = Enum.Font.Arial
  208. TextLabel.Text = "ERROR"
  209. TextLabel.TextSize = 14
  210.  
  211. Frame_2.Parent = invalidlogin
  212. Frame_2.Active = true
  213. Frame_2.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  214. Frame_2.BorderSizePixel = 0
  215. Frame_2.Draggable = true
  216. Frame_2.Position = UDim2.new(0, 0, 0, 25)
  217. Frame_2.Selectable = true
  218. Frame_2.Size = UDim2.new(0, 203, 0, 156)
  219.  
  220. TextLabel_2.Parent = Frame_2
  221. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  222. TextLabel_2.BackgroundTransparency = 1
  223. TextLabel_2.Position = UDim2.new(0, 3, 0, 0)
  224. TextLabel_2.Size = UDim2.new(0, 200, 0, 156)
  225. TextLabel_2.Font = Enum.Font.Arial
  226. TextLabel_2.Text = "Your Login was Invalid"
  227. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  228. TextLabel_2.TextSize = 24
  229. TextLabel_2.TextWrapped = true
  230.  
  231. settings.Name = "settings"
  232. settings.Parent = Cursed
  233. settings.Active = true
  234. settings.BackgroundColor3 = Color3.new(1, 1, 1)
  235. settings.BorderSizePixel = 0
  236. settings.Draggable = true
  237. settings.Position = UDim2.new(0, 328, 0, 317)
  238. settings.Selectable = true
  239. settings.Size = UDim2.new(0, 203, 0, 25)
  240. settings.Visible = false
  241.  
  242. exit_2.Name = "exit"
  243. exit_2.Parent = settings
  244. exit_2.BackgroundColor3 = Color3.new(1, 1, 1)
  245. exit_2.BorderSizePixel = 0
  246. exit_2.Position = UDim2.new(0, 157, 0, 0)
  247. exit_2.Size = UDim2.new(0, 43, 0, 25)
  248. exit_2.Font = Enum.Font.Arial
  249. exit_2.Text = "X"
  250. exit_2.TextColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  251. exit_2.TextSize = 18
  252.  
  253. TextLabel_3.Parent = settings
  254. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  255. TextLabel_3.BorderSizePixel = 0
  256. TextLabel_3.Position = UDim2.new(0, 52, 0, 0)
  257. TextLabel_3.Size = UDim2.new(0, 98, 0, 25)
  258. TextLabel_3.Font = Enum.Font.Arial
  259. TextLabel_3.Text = "SETTINGS"
  260. TextLabel_3.TextSize = 14
  261.  
  262. Frame_3.Parent = settings
  263. Frame_3.Active = true
  264. Frame_3.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  265. Frame_3.BorderSizePixel = 0
  266. Frame_3.Draggable = true
  267. Frame_3.Position = UDim2.new(0, 0, 0, 25)
  268. Frame_3.Selectable = true
  269. Frame_3.Size = UDim2.new(0, 203, 0, 156)
  270.  
  271. TextLabel_4.Parent = Frame_3
  272. TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
  273. TextLabel_4.BackgroundTransparency = 1
  274. TextLabel_4.Position = UDim2.new(0, 13, 0, 0)
  275. TextLabel_4.Size = UDim2.new(0, 176, 0, 119)
  276. TextLabel_4.Font = Enum.Font.Arial
  277. TextLabel_4.Text = "Work in progress"
  278. TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
  279. TextLabel_4.TextSize = 24
  280. TextLabel_4.TextWrapped = true
  281.  
  282. Main.Name = "Main"
  283. Main.Parent = Cursed
  284. Main.BackgroundColor3 = Color3.new(0.368627, 0.368627, 0.368627)
  285. Main.BorderSizePixel = 0
  286. Main.Position = UDim2.new(0.227672026, 0, 0.498697937, 0)
  287. Main.Size = UDim2.new(0, 707, 0, 298)
  288. Main.Visible = false
  289. Main.Active = true
  290.  
  291. close_2.Name = "close"
  292. close_2.Parent = Main
  293. close_2.BackgroundColor3 = Color3.new(1, 1, 1)
  294. close_2.BackgroundTransparency = 1
  295. close_2.Position = UDim2.new(0, 642, 0, 0)
  296. close_2.Size = UDim2.new(0, 65, 0, 50)
  297. close_2.Font = Enum.Font.Arial
  298. close_2.Text = "X"
  299. close_2.TextColor3 = Color3.new(1, 1, 1)
  300. close_2.TextSize = 30
  301.  
  302. -- Scripts
RAW Paste Data