This script works sometimes and throws an error saying the values aren't in the player when they are.
local player = game:GetService("Players")
local creature = require(game.ReplicatedStorage.creature)
player.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
--local creature = plr.isvamp.vampt
local hum = character:FindFirstChild("Humanoid")
if plr:WaitForChild(plr.isvamp.vampt.Value) == "tier1" then
hum.MaxHealth = creature.Vampire.tier1.Health
hum.Health = creature.Vampire.tier1.Health
elseif plr:WaitForChild(plr.isvamp.vampt.Value) == "tier2" then
hum.MaxHealth = creature.Vampire.tier2.Health
hum.Health = creature.Vampire.tier2.Health
elseif plr:WaitForChild(plr.isvamp.vampt.Value) == "tier3" then
hum.MaxHealth = creature.Vampire.tier3.Health
hum.Health = creature.Vampire.tier3.Health
end
end)
end)

1 comment
Next time you post a question which involves error, please do give the actual error as well