4667hp
(Account Info)
#1
Hello, I’m trying to tween the physical properties of a part but it’s erroring
it says TweenService:Create property named 'CustomPhysicalProperties' on object 'Part' is not a data type that can be tweened
in the output
it’s coming from this line
TweenService:Create(Part, Tween, {CustomPhysicalProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)}):Play()
I did see this post but I was wondering that is the only way to do it
bleintant
(bleintant)
#2
You should try making a variable for the tween then playing it on the next line.
1 Like
4667hp
(Account Info)
#3
it still gives the same error
TweenService:Create property named 'CustomPhysicalProperties' on object 'Part' is not a data type that can be tweened
code
local Tween2 = TweenService:Create(Part, Tween, {CustomPhysicalProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)})
Tween2:Play()
bleintant
(bleintant)
#5
Just asking, why don’t you want to use the method in the post you said you’ve viewed? Is it too clunky?