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
1 year ago
Edited 1 year ago

I don't get why this doesn't work...

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)

The code is as shown above, but in the output it just prints "attempt to call a table value" and I don't know what that means. Any suggestions?

0
when using { } your creating a table. fudgecakeyuo 0 — 1y

Answer this question