I try to split a tring but i get his error, problem is in this first line here
local values = string:split(player.Stats.Weapon.Value , ",") -- Problem local value = values[2] if value == "Sword" then