[TweenService] Mismatched type error is somewhat obscure

Reproduction:

local TweenService = game:GetService("TweenService")
TweenService:Create(Instance.new("IntValue"), TweenInfo.new(), {Value = "string"})

Result:

TweenService:Create property named 'Value' does not match toValue (property is a 'int', toValue is a 'string')

toValue does not have any meaning to the user. This text should be removed, and the error should properly guide the user to the property table.

Example:

TweenService:Create: bad type of 'Value' in property table ('int' expected, got 'string')

Aside: Errors generated by TweenService.Create are prefixed with TweenService:Create, with no character separating Create from the rest of the message, which can be somewhat confusing.

3 Likes

this should be fixed

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.