MOVE["RapidStrikes"] = function(player, char, root, humanoid, nameability)
local Class = player.Backpack[player.Data.Class.Value]
local cooldown = game.ReplicatedStorage.Classes[Class].Moves[nameability].Name
end
However, I keep getting invalid argument #2 (string expected, got Instance) on the cooldown line. Any help?
I don’t believe casting the instance to a string would help any; It’s being misread so one of the parameters aren’t the right type. Could you give us more information like your Class reference value?
MOVE["RapidStrikes"] = function(player, char, root, humanoid, nameability)
local Class = player.Backpack[player.Data.Class.Value]
local cooldown = game.ReplicatedStorage.Classes[Class].Moves[nameability].Name
end