Script always shows 0 for height.Value
any ideas on how to fix this?
Server Script in StarterCharacterScripts:
local char = script.Parent
local humanoid = char:WaitForChild("Humanoid")
local plr = game.Players:GetPlayerFromCharacter(char)
local height = plr:WaitForChild("leaderstats"):WaitForChild("Essence")
local function Doheight()
print(height.Value) -- This is what shows 0 even though height.Value is actually higher
if height.Value > 50 then
humanoid.HipHeight = height.Value / 25
else
humanoid.HipHeight = 2
end
end
height:GetPropertyChangedSignal("Value"):Connect(Doheight)
Doheight()
Thank you