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

Why doesn't this script run after being cloned from RS?

Asked by 3 years ago
script.Parent.Changed:Connect(function()
    local hp = script.Parent.Value * (script.Parent.Parent.Hpt.Value * 0.07)
    local plr = script.Parent.Parent.Parent
    local s,e = pcall(function()
        local hum = plr.character:FindFirstChild("Humanoid")
        script.Parent.Parent.temphp.Value = hum.Health
        hum.MaxHealth = hum.MaxHealth + hp
        hum.MaxHealth = hum.MaxHealth - script.Parent.Parent.temphp.Value
    end)
end)

This script just doesn't run, I even removed the pcall and still no errors. It's cloned from RS into your player when you join, and is in a value inside a folder called "Stats". I'm not sure why it isn't running, if you know, please answer.

0
so you want it to play once it's cloned into a player? prooheckcp 340 — 3y
0
The value is in the folder or the folder is in the value? Your explanation is confusing me. NotTheChara 191 — 3y

Answer this question