Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What exactly does "deprecated" mean?

Asked by 5 years ago

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
0
"deprecated" means that it should not be used although deprecated objects are still usable. It's just not recommended to use them. DeceptiveCaster 3761 — 5y

2 answers

Log in to vote
3
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

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

Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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

Answer this question