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