Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

calling 'split' on bad self (string expected, got table)?

Asked by 4 years ago

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
0
"values" is not a table. It's a string. DeceptiveCaster 3761 — 4y

Answer this question