Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Loader/Config/Settings/General.luau
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ return {
SplitKey = " "; -- The space in :kill me (eg if you change it to / :kill me would be :kill/me)
BatchKey = "|"; -- :kill me | :ff bob | :explode scel
ConsoleKeyCode = "Quote"; -- Keybind to open the console; Rebindable per player in userpanel; KeyCodes: https://developer.roblox.com/en-us/api-reference/enum/KeyCode
FlyKeyCode = "E"; -- Keybind to toggle fly; Rebindable per player in userpanel; KeyCodes: https://developer.roblox.com/en-us/api-reference/enum/KeyCode

HideScript = true; -- When the game starts the Adonis_Loader model will be hidden so other scripts cannot access the settings module; Disable if your game uses AssetService:SavePlaceAsync()

Expand Down
7 changes: 6 additions & 1 deletion MainModule/Server/Commands/Moderators.luau
Original file line number Diff line number Diff line change
Expand Up @@ -6057,6 +6057,11 @@ return function(Vargs, env)
Value = not args[3] or (args[3] and (string.lower(args[3]) == "true" or string.lower(args[3]) == "yes"));
Parent = scr;
})
local fKey = service.New("StringValue", {
Name = "FlyKey";
Value = Settings.FlyKeyCode;
Parent = scr;
})

scr.Name = "ADONIS_FLIGHT"

Expand Down Expand Up @@ -6106,7 +6111,7 @@ return function(Vargs, env)
end
scr:Destroy()

Functions.Hint("You are now flying - press E to toggle flight", service.GetPlayers(plr, args[1], {DontError = true}), 10)
Functions.Hint("You are now flying - press " .. Settings.FlyKeyCode .. " to toggle flight", service.GetPlayers(plr, args[1], {DontError = true}), 10)
end
};

Expand Down
3 changes: 2 additions & 1 deletion MainModule/Server/Dependencies/Assets/Fly.client.luau
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ local bGyro: AlignOrientation = part:WaitForChild("ADONIS_FLIGHT_GYRO")

local speedVal: NumberValue = script:WaitForChild("Speed")
local noclip: BoolValue = script:WaitForChild("Noclip")
local flyKey: StringValue = script:WaitForChild("FlyKey")
local flying = true

local dir = {}
Expand Down Expand Up @@ -180,7 +181,7 @@ function HandleInput(input, isGame, bool)
dir.Down = bool
elseif input.KeyCode == Enum.KeyCode.Space or input.KeyCode == Enum.KeyCode.DPadUp then
dir.Up = bool
elseif bool and input.KeyCode == Enum.KeyCode.E or input.KeyCode == Enum.KeyCode.ButtonL3 then
elseif bool and input.KeyCode == Enum.KeyCode[flyKey.Value] or input.KeyCode == Enum.KeyCode.ButtonL3 then
Toggle()
end
end
Expand Down
1 change: 1 addition & 0 deletions MainModule/Server/Dependencies/DefaultSettings.luau
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ settings.SpecialPrefix = "" -- Used for things like "all", "me" and "others" (
settings.SplitKey = " " -- The space in :kill me (eg if you change it to / :kill me would be :kill/me)
settings.BatchKey = "|" -- :kill me | :ff bob | :explode scel
settings.ConsoleKeyCode = "Quote" -- Keybind to open the console; Rebindable per player in userpanel; KeyCodes: https://developer.roblox.com/en-us/api-reference/enum/KeyCode
settings.FlyKeyCode = "E" -- Keybind to toggle fly; Rebindable per player in userpanel; KeyCodes: https://developer.roblox.com/en-us/api-reference/enum/KeyCode

--// Easily add new custom commands below (without needing to create a plugin module)
--// You can also use this to overwrite existing commands if you know the command's index (found in the command's respective module within the Adonis MainModule)
Expand Down
Loading