Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || WHITELIST KEY
- ]]
- local EnterButton = script.Parent
- local KeyCodeBox = script.Parent.Parent.Codebox
- local AccessKey = "Enter Your Custom Key Here"
- local PlayerService = game.Players.LocalPlayer
- EnterButton.MouseButton1Click:Connect(function()
- if KeyCodeBox.Text ~= AccessKey then
- -- This Happens If The Key Is Incorrect
- PlayerService:Kick("Please enter the correct key.")
- elseif KeyCodeBox.Text == AccessKey then
- -- This Happens If The Key Is Correct
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment