Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Tweenservice script is getting the error "Attempt to call a user data value"?

Asked by 4 years ago

So i am trying to tween a part and i end up getting the error "Attempt to call a user data value"

Here is my script

local TweenService = game:GetService("TweenService")
local part = script.Parent
local tweenInfo = TweenInfo.new(
    5,
    Enum.EasingStyle.Sine,
    Enum.EasingDirection.Out,
    0,
    false,
    0
)

local goals = 
{ 
    Size = Vector3.new(15,15,15);
}

local makePartBiggerTween = TweenService(part, tweenInfo, goals)

wait(1)
makePartBiggerTween:Play()
0
what is the script's parent? if its under the player then the variable is invalid SerpentineKing 3885 — 4y

Answer this question