im trying to use pcall to check if the function is working but the “success” is giving me "unknown variable. tytyty
script:
local function removeMass()
local chars = {
mychar, -- my character
otherchar -- another character
}
for i, char in pairs(chars) do
for _, part in char:GetChildren() do
if part:IsA("BasePart") then
local success, err = pcall(function()
if success then
part.Massless = true
end
end)
end
end
end
end
removeMass()
![]()