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

Values returning as nothing. Any ideas how to fix this?

Asked by 7 years ago
Edited 7 years ago

The values of "child" and "color" are returning as nothing; not nil. The actual values have a value in them though. There are no errors in the output. Filtering is enabled, but I don't think that should effect this. Any idea what's going on?

game.ReplicatedStorage.kills.ChildAdded:connect(function(child)
    local newframe = script.Parent.startpos.frame:Clone()
    newframe.Text = child.Value
    print(child.Value)
    newframe.TextColor3 = Color3.new(child:WaitForChild("color").Value)
    newframe.Parent = script.Parent.startpos
    newframe.Name = "newframe"
    game:GetService("Debris"):AddItem(newframe, 5)
    for _,children in pairs (script.Parent.startpos:GetChildren()) do
        if children.Name ~= "frame" then
            children.Position = children.Position - UDim2.new(0,0,0,22)
        end
    end
end)
0
Tried something called "print debugging"? hiimgoodpack 2009 — 7y
0
Nothing in Lua is represented by nil. What do you mean it's returning nothing, but not nil? It's nil or something. CootKitty 311 — 7y
0
I got this in the output when I did that: table: 264A43DC smartlegomaniac 0 — 7y
0
if you print"" thats what I'm getting in the output smartlegomaniac 0 — 7y
0
But what I'm printing has value smartlegomaniac 0 — 7y

Answer this question