I'm getting this error, 12:27:14.234 - Unable to cast string to token, for this script.
local player = game.Players.LocalPlayer
local character = workspace:WaitForChild(player.Name)
local hum = character:WaitForChild("Humanoid")
local upper = script.Parent.HealthUpper
local down = script.Parent
local text = script.Parent.Health
local function updatebar()
text.Text = "Health: "..hum.Health.." / "..hum.MaxHealth
upper:TweenSize(UDim2.new(hum.Health / hum.MaxHealth, 0, 1, 0), "out", "Linear", 0.5)
end
updatebar()
hum.Changed:Connect(function()
updatebar()
end)
That is the full script for health bar. I've never seen this error before. I believe when I clicked the error it took me to line 12 or 13.

2 comments
Enum.EasingStyle.Out, Enum.EasingDirection.Linear
whut