What my script does, is make every descendant part in the workspace with studs or inlets turn their surfaces smooth, then adds a custom texture on top of the stud/inlet surface. The script refuses to work, and I have no idea what is causing it to just say "no"
for i, studpart in pairs(game.Workspace:GetDescendants()) do
if studpart:IsA("Part") then
local studcall = pcall(function() has (v, "Studs") end))
if studcall then
studpart.Surface.TopSurface = "Smooth"
local studtex = Instance.new("Texture")
studtex.Texture = studtex.assetId = "http://www.roblox.com/asset/?id=9818768"
studtex.Face = "Top"
local inletcall = pcall(function() has (v, "Inlets") end))
if inletcall then
studpart.Surface.BottomSurface = "Smooth"
local studtex = Instance.new("Texture")
studtex.Texture = studtex.assetId = "http://www.roblox.com/asset/?id=65432522"
studtex.Face = "Bottom"
end
end

5 comments
errors?
Only error is "Workspace.studs:3: Expected identifier when parsing expression, got ')'"
And it refers to "local studcall = pcall(function() has (v, "Studs") end))"
This isn't working because in your pcall, you just simply put
has (v, "Studs). Go ahead and change that.@TheMinecraftSmarts, please stop posting such short answers. These can just as easily be placed in the comments section