Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local key = script.Parent.Parent.key
- script.Parent.MouseButton1Click:Connect(function()
- if key.Text == "Key" then -- Make the "Key" whatever you wish.
- script.Parent.Parent:TweenPosition(UDim2.new(0.383,0,-0.9,0), "Out", "Quad", 1, true)
- script.Parent.Parent.Parent.Frame.Visible = true
- wait(5)
- script.Parent.Parent:Destroy() -- Destroys the GUI after a set time
- print("Destroyed!")
- elseif -- Tweening | If you want it to do a different tween just change the "Quad" to another tween animation
- key.Text == "" then
- key.Text = "" else
- key.Text = "Incorrect, try again."
- wait(1)
- key.Text = ""
- end
- end)
- -- Video: https://youtu.be/hy1Tcwr3PRY
Add Comment
Please, Sign In to add comment