Straight forward to what I said in the title. For Instance whenever a script is named eg.(142) and you try to return its value, It always decides to return a string value. I don’t really know why and I’d be happy if someone could explain why thats the case.
Here’s some code I’ve wrote that you can test out to see what I mean:
repeat task.wait() until game:IsLoaded()
for i,v in pairs(game:GetService("StarterPlayer"):FindFirstChild("StarterCharacterScripts"):GetChildren()) do
if v:IsA("LocalScript") then
spawn(function()
while true do
task.wait(4)
if typeof(v.Name) == "number" or type(v.Name) == "number" then
return print(typeof(v.Name))
elseif typeof(v.Name) ~= "number" and typeof(v.Name) == "string" then
return print(typeof(v.Name))
end
end
end)
end
end
It’ll ALWAYS return string for some reason. In either case if u have named the script for instance (13232) or if you’ve named the script (LocalScript)