An Equip and UnEquip System without tools or parts (Need Help any method that works but no tool)

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    An Inventory that stores scripts or abilities that dont have tools and a player can equip more than One Ability

  2. What is the issue? Include screenshots / videos if possible!
    idk how to make this

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried Disabling the script then Enabling it when the player clicks A Textbutton and it shows equipped, tried multiple things like this don’t know any other thing to try, Also tried parenting it t the backpack and made the ability work only when in the player backpack but it still didnt work, tell me if you know a better way to make an equip and unequip system for something thats not a tool or a part.

local RS = game:GetService("ReplicatedStorage")
local equipbutton = script.Parent
local fireBall = RS:WaitForChild("Magic_MagicConduit"):WaitForChild("Sakura Shot"):Clone()

local Equipped = RS:WaitForChild("Equipped")
Equipped.Value = false

	if Equipped.Value == false  and equipbutton.Text == "Equip" then
		Equipped.Value = true
		equipbutton.Text = "Equipped"
		fireBall.Parent = player.Backpack
-- This is an example Lua code block

Why reinvent the wheel when the functionality is already provided by the ‘Tool’ class?

I need no ‘Tools’ Cuz my weapons will be tools but the magic abilities need to be able to be used while the sword is equipped

And ill try what u said thanks tho

Also i want how it is in Anime fighting simulator where u can use many abilities without unequiping anything

They click different Keys that do different attacks

I would recommend using something like ContextActionService to check when a key is pressed to fire a magic ability.

  1. This could create a memory leak
  2. MouseButton1Click events do not fire on server scripts

As for OP’s question you could just play a custom animation with your custom tool on equip and on unequip stop the animation and remove tool from character

Wait so what does that do the unequip and equip animation u stated

User input, then most likely using a remote function for the server to do sanity checks and allow the client to play the tool equip/unequip animation

no but i dont want to use tools to make the abilities also can u explain more how that will make an equip and unequip system for the magic in my game

I Figured it Out did it with a ModuleScript , but now i will go learn how to save what i did