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

Why does it say "attempt to call a table value"?

Asked by
boredlake 256 Moderation Voter
2 years ago
Edited 2 years ago

I want to make a tweening health bar, so I did this and for some reason it keeps printing in the output "attempt to call a table value" on the line with the tween and I don't know why. How do I fix it?

human.HealthChanged:Connect(function(d)
    game:GetService("TweenService"):Create(script.Parent, TweenInfo(0.1), {Size = UDim2.new(d / human.MaxHealth, 0, 1, 0)}):Play()
end)
0
… Elsa? … Do you wanna build a snowman? Come on let's go and play I never see you any more Come out the door It's like you've gone away! We used to be best buddies And now we're not I wish you would tell me why Do you wanna build a snowman? It doesn't have to be a snowman (Go away, Anna!) Okay, bye … Do you wanna build a snowman? Or ride our bike around the halls? I think some company is overdue raid6n 2196 — 2y

Answer this question