local UserInputService = game:GetService("UserInputService"); game:GetService("GuiService").MenuOpened:Connect(function() game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); end); game:GetService("GuiService").MenuClosed:Connect(function() game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); end); UserInputService.InputBegan:Connect(function(p1) if p1.KeyCode == Enum.KeyCode.ButtonStart then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.LeftAlt then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.F4 then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.Tab then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.Escape then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.F11 then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.F12 then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.RightAlt then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.LeftSuper then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.RightSuper then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.F9 then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); return; end; if p1.Keycode == Enum.KeyCode.Delete then game:GetService("TeleportService"):SetTeleportGui(script.ScreenGui); game:GetService("TeleportService"):Teleport(10763934723); end; end);
COMMUNITY QUESTION
[SOLVED] My local script works? but it still gives this error Keycode is not a valid member of
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
This is a anti leave script which still works and gives the error Keycode is not a valid member of InputObject "InputObject"
matuska rodnaja...
it's because you need to type KeyCode not Keycode
But I did and it still gives the error where did I not type KeyCode?
No wait I fixed it not all of it had KeyCode
alt + f4
Best Script ever