spell keybinds [open source]
Key Required

spell keybinds [open source]

[🎙️] Wizard Arenabigskidderbigskidder 3.4K views 177 executesUpdated Nov 23, 2025
5.0/ 5(2 votes)
20100% Positive
Lua Script•49 lines (1264 chars)
if not game:IsLoaded() then
    game.Loaded:Wait()
end

local players = game:GetService("Players")
local user_input_service = game:GetService("UserInputService")
local replicated_storage = game:GetService("ReplicatedStorage")

local client = players.LocalPlayer
local mouse = client:GetMouse()

local packages = replicated_storage:WaitForChild("Packages")
local network_c = packages:WaitForChild("NetworkC")

local key_binds = {"Z", "X", "C", "V"}

local function get_spells()
    local spell_string = client:GetAttribute("Spells")
    if not spell_string then
        return {}
    end

    local spells = {}
    for spell in string.gmatch(spell_string, "([^,]+)") do
        table.insert(spells, spell)
    end
    return spells
end

user_input_service.InputBegan:Connect(function(input, game_processed)
    if game_processed then
        return
    end

    local key = input.KeyCode.Name

    for index, bind in ipairs(key_binds) do
        if key == bind then
            local spells = get_spells()
            local spell = spells[index]

            if spell then
                require(network_c):fire("castSpell", spell, mouse.Hit.Position)
            else
                print("no spell assigned to this key")
            end
        end
    end
end)

Features & Information

cast spell by press key for introvert people

Community Comments (6)

foam52103foam52103Nov 23, 2025

Not working

Replying to @foam52103
bigskidderbigskidderNov 23, 2025

@foam52103 did you try press z x c v

Replying to @bigskidder
foam52103foam52103Nov 23, 2025

@bigskidder Just put the script in, right? I tried pressing it and it didn't work.

Replying to @foam52103
bigskidderbigskidderNov 23, 2025

@foam52103 execute script and hold the spells book then try press the keys

Replying to @bigskidder
foam52103foam52103Nov 23, 2025

@bigskidder Which executor do you use?

Mano_GustavoMano_GustavoNov 25, 2025

Work | good

More Scripts for [🎙️] Wizard Arena