Skip to content
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.

Commit

Permalink
Allow keybind changing, 2nok/3nok now nok2/nok3 [over 15k lines now!]
Browse files Browse the repository at this point in the history
  • Loading branch information
S-PScripts authored Oct 9, 2024
1 parent 645a6e8 commit b1e8bc5
Showing 1 changed file with 44 additions and 11 deletions.
55 changes: 44 additions & 11 deletions Luau/KAH/Main Scripts/KohlsLite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1212,10 +1212,19 @@ local Workspace_Folder = Game_Folder.Workspace
local Admin_Folder = Game_Folder.Admin

-- Keybinds
local housekeybind = "h" -- house keybind
local rekeybind = "r" -- reset keybind
local flykeybind = "f" -- fly keybind
-- local crashkey = "e" -- crash keybind (unused)

-- Teleport to house
local housekeybind = "h"

-- Reset
local rekeybind = "r"

-- Fly (KAH)
local flykeybind = "f"

-- Dog crash
local crashkey = "e"

local keybindz = true
local keybindz_unsafe = false

Expand Down Expand Up @@ -4885,24 +4894,48 @@ return
Remind("UNSAFE Key binds disabled.")
end

if string.sub(msg:lower(), 1, #prefix + 6) == prefix..'setkey' then
local args = string.split(msg, " ")
if #args == 3 then
keyb = args[2]
kmart = args[3]
if keyb == "house" then
housekeybind =args[3]
elseif keyb == "reset" then
rekeybind = args[3]
elseif keyb == "fly" then
flykeybind = args[3]
elseif keyb == "crash" then
crashkey = args[3]
else
Remind("Argument 2 invalid [must be house/reset/fly/crash]")
end

else
Remind("Invalid amount of arguments (must be 3)")
end
end

if string.sub(msg:lower(), 1, #prefix + 10) == prefix..'unalladmin' then
alladmin = false
Chat("h \n\n\n Free admin is off. \n\n\n")
Remind("All admin disabled.")
end

if string.sub(msg:lower(), 1, #prefix + 3) == prefix..'nok' then
NOK()
Remind("You will no longer die to the obby!")
if not (string.sub(msg:lower(), 1, #prefix + 4) == prefix..'nok2' or string.sub(msg:lower(), 1, #prefix + 4) == prefix..'nok3') then
NOK()
Remind("You will no longer die to the obby!")
end
end

if string.sub(msg:lower(), 1, #prefix + 4) == prefix..'2nok' then
NOK2()
Remind("You will no longer die to the obby! (2)")
if string.sub(msg:lower(), 1, #prefix + 4) == prefix..'nok2' then
NOK2()
Remind("You will no longer die to the obby! (2)")
end

if string.sub(msg:lower(), 1, #prefix + 4) == prefix..'3nok' then
NOK3()
if string.sub(msg:lower(), 1, #prefix + 4) == prefix..'nok3' then
NOK3()
Remind("You will no longer die to the obby! (3)")
end

Expand Down

0 comments on commit b1e8bc5

Please sign in to comment.