|
| 30 Jul 2016 01:54 AM |
| So, this has to be the oddest thing. Its happened to me already. So here is the predicament, my script is saying that a value that it is trying to find is nil, when it does exist. I've tried, :FindFirstChild() and adding waits but it still doesn't find the value.. Does anyone know why? |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Jul 2016 02:25 AM |
This is the huge block. Also, the part that's not working is when it is looking to see if the value On is true or false. Its not finding the on value.
for i, tool in pairs(script.Parent.Background.Tool.Slots:GetChildren()) do tool.MouseEnter:connect(function() if tool.Image ~= "" then for i, a in pairs(script.Parent.Background.Info:GetChildren()) do for i, b in pairs(tool.InfoVals:GetChildren()) do if b.Name == a.Name then a.Text = b.Value end end end end end) tool.MouseLeave:connect(function() if tool.On.Value ~= true then ItemDesc.Text = "This is the Item Description box! This box will give a small, brief description on the item." ItemName.Text = "Item_Name" Dmg.Text = "Item_Damage" HUpgrade.Text = "Item_Health Upgrade" AProtection.Text = "Protection_Points" equip.Text = "Add to hotbar" end end) tool.MouseButton1Click:connect(function() if tool.Image ~= "" then tool.BorderColor3 = Color3.new(170,0,0) tool.On.Value = true for i, c in pairs(tool.InfoVals:GetChildren()) do for i, d in pairs(InfoF:GetChildren()) do if c.Name == d.Name then d.Text = c.Value end end end for i, z in pairs(script.Parent.Background.Tool:GetChildren()) do if z.On.Value == true and z.Name ~= tool.Name then z.On.Value = false z.BorderColor3 = Color3.new(255,255,255) end end end end) tool.MouseButton2Click:connect(function() tool.BorderColor3 = Color3.new(255,255,255) tool.On.Value = false end) end |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2016 03:22 AM |
| sorry ill see if i can fix it tom im to tired to. |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2016 03:23 AM |
| What value is it not finding. Show us the error output. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2016 06:42 AM |
Whenever it it checking for this: if tool.On.Value ~= true then
It says that value is nil, but I've checked and its not. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2016 10:24 PM |
just change it to if tool.On.Value == false then |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2016 06:48 PM |
| Not the issue... its not finding the value itself. It doesn't matter anymore, I just rescripted it all. |
|
|
| Report Abuse |
|
|