Whats wrong? :o

is it still working? :dizzy_face:
image

Yes, warning is still working. If it doesn’t say “This item has been deprecated”, then it is still there as a feature.

2 Likes

Is it better to use assert or warn? :thinking:

Warn.

Ignore that message, it doesn’t really mean anything. Warn will always work for you, period.

1 Like

warn() is basically Roblox’ print() except yellow and counted as a warning. It will always work, but will take a bit of yielding.

1 Like

oh wow ive been banned
but uh warn its just like print but its yellow

1 Like

What do you mean “yielding”? warn() doesn’t yield by itself.

1 Like

I think it also takes an additional parameter?

I think either warn or error takes an additional parameter.

1 Like

These are two completely different functions. Assert evaluates whether something equals to nil/false, and errors accordingly using the optionally provided string.

This is useful to debug code prone to user-errors such as functions which require a set amount of parameters of specific types etc. You usually assert at the beginning of a function block.

1 Like