TweenService:Create property named 'Size' cannot be tweened due to type mismatch (property is a 'NumberSequence', but given type is 'Vector3')

local GumGumPistol = game:GetService("ReplicatedStorage"):WaitForChild("RubberFruit_Events").GumPistol
local RS = game:GetService("ReplicatedStorage")
local GumGumPistol = game:GetService("ReplicatedStorage"):WaitForChild("RubberFruit_Events").GumPistol
local RS = game:GetService("ReplicatedStorage")
local GumPunch = Instance.new("Animation")
local GumGumPistol = game:GetService("ReplicatedStorage"):WaitForChild("RubberFruit_Events").GumPistol
GumPunch.AnimationId = "http://www.roblox.com/Asset?ID=13475511279"
local VFX = game:GetService("ReplicatedStorage").RubberFruit_VFX
 Vclone = VFX.Punch:Clone()
 VStretchArm = VFX.StretchArm:Clone()
local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(
	2.5, --Length seconds
	Enum.EasingStyle.Elastic, --Animate Style
	Enum.EasingDirection.Out, --Direction
	0, --Repeat times 0 is 1 time
	true, --Go back to normal true is better
	0.1 --Delay
)

local Goals = {Size = Vector3.new(0, 4, 0)}

local Tween = TweenService:Create(Vclone, Info, Goals)

GumGumPistol.OnServerEvent:Connect(function(player, PistolTrigger)
	print("RecievedEvent")
	print("BeginningStretch")
	wait(0.1)

end)
GumGumPistol.OnServerEvent:Connect(function(player)
	GumPunch.Parent = player.Character
	local animTrack = player.Character.Humanoid:WaitForChild("Animator"):LoadAnimation(GumPunch)
	animTrack:Play()
	Vclone.Parent = player.Character.RightHand
	Vclone.Enabled = true
	VStretchArm.Parent = player.Character
	VStretchArm.Position = player.Character.RightHand.Position
	VStretchArm.WeldConstraint.Part0 = player.Character.RightHand
	VStretchArm.WeldConstraint.Part1 = VStretchArm
	wait(.1)
	Tween:Play()
	Vclone.Parent = game.ReplicatedStorage.ParticleDebris

end)

ERROR: TweenService:Create property named ‘Size’ cannot be tweened due to type mismatch (property is a ‘NumberSequence’, but given type is ‘Vector3’)

How do I fix

What are you trying to achieve?
You are trying to change the size of a Particle?
That error just means that you require a NumberSequence but you are using a Vector3
local Goals = {Size = Vector3.new(0, 4, 0)}

Particles Size property uses a NumberSequence not a Vector3

Im sizing a part thats supposed to stretch out to make the effect of a rubber arm like in one piece, so I followed a tutorial but I got this error

(edit: its in the vfx folder cuz vfx can be models too)

You have this:

Vclone = VFX.Punch:Clone()
local Goals = {Size = Vector3.new(0, 4, 0)}
local Tween = TweenService:Create(Vclone, Info, Goals)

And you get the error that Size for that Vclone variable should be a NumberSequence not a Vector3, thats it.

I dont know what you mean, I cant see your folder, and I dont know what instance type is “Punch” which is what Vclone is holding, its not a model nor a part, its something that requires a NumberSequence which probably its a ParticleEmitter.

Maybe you are referencing a wrong thing when cloning that Vclone = VFX.Punch:Clone()

Ok so I had two types of things to clone but I got them mixed up silly me, that was a particle I was just forgetting yo use VstretchyArm

1 Like

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