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

How do i fix this error?

Asked by 9 years ago
Nen = script.Parent.Parent.Parent.Parent.Parent.Nen
x = script.Parent
print("Running")

function Changed()
    x.Size = UDim2.new(Nen.Value/100, 0, 1, 0)
end

Nen.Changed:connect(Changed)

04:17:58.254 - Nen is not a valid member of Player 04:17:58.255 - Script 'Players.kingalpha1.PlayerGui.Nen.Backing.Bar.Main', Line 1 04:17:58.255 - Stack End

i get this and i also have another script that clones nen and puts it into player.I'll paste it aswell.

Player = script.Parent.Parent.Parent.Parent.Parent

if Player:FindFirstChild("Nen") == nil then
    Nen = script.Nen:Clone()
    Nen.Parent = Player
end
script.Parent.Main.Disabled = false

I have the number value pasted into that script aswell.

Answer this question