PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Instance

Tween

Instance

The Instance property of a Tween points to the Instance whose properties are being interpolated by the tween. As with all Tween properties, the Instance property is read only. If a developer wants to tween a different instance they must create a new Tween using TweenService/Create.


Code Samples


Tween Instance

This code sample includes a simple function that will return true if the instance of a tween is a Part.

local function isInstanceAPart(tween)
	local instance = tween.Instance
	return instance:IsA("BasePart")
end