I made a clone of something and players are able to remove/restore that part when needed.
However, it keeps popping up with an error saying: “Attempt to index Boolean with Parent”
local part = workspace.Objects.part;
local partClone = workspace.Objects.part:Clone();
partClone.Position = part.Position;
if workspace.Objects.part == nil then
partClone = true;
partClone.Parent = workspace.Objects; -- error here
end
@Pokemoncraft5290’s solution should fix your problem, but any reason why your code has semi-colons at the end of each statement? Lua doesn’t require semi-colons …