
In a for loop
for i, slot in pairs(plr:GetChildren()) do
if slot:IsA("Folder") then
end
end
I am trying to split “Character” and “1”
so the text would be “Character 1”

In a for loop
for i, slot in pairs(plr:GetChildren()) do
if slot:IsA("Folder") then
end
end
I am trying to split “Character” and “1”
so the text would be “Character 1”
Nvm, i found the solution you do string.sub() so the full code to split the text would be:
local text = string.sub(slot.Name, 0, 9)
local text2 = string.sub(slot.Name, 10)
This would get “Character” for text
and the num for text2
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.