Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What exactly does "deprecated" mean?

I mean kind of what it means, but I want to be sure.

Also, why is this script deprecated:

  local part = Instance.new("Part",workspace)

and not this:

  local part = Instance.new("Part")
  part.Parent = workspace

1 comment

0

"deprecated" means that it should not be used although deprecated objects are still usable. It's just not recommended to use them.

2 answers

✓ Accepted answer

When something is deprecated in roblox, it is not recommend to be used in new work as there may be a better alternative or will be removed in the future.

Instance.new's second parameter, the parent, is said to be deprecated, because it is slow and is not to be used if you care about performance. An alternative to this is to change the object's properties first, then parent it last

It's basically when a phrase has changed and is no longer used, so you are using it incorrectly.

The reason why the first script is deprecated, is because workspace is not lower case anymore and should be capitalised and there is no workspace in the second script which is why the error does not pop up

This discussion is preserved as it was. New answers, comments, and votes are closed.