generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Script not finding a value, that exists!

Previous Thread :: Next Thread 
xXLegendarySoldierXx is not online. xXLegendarySoldierXx
Joined: 22 Mar 2012
Total Posts: 551
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
StringedVortex is not online. StringedVortex
Joined: 28 Jun 2015
Total Posts: 1846
30 Jul 2016 02:19 AM
show me the script legend
Report Abuse
xXLegendarySoldierXx is not online. xXLegendarySoldierXx
Joined: 22 Mar 2012
Total Posts: 551
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
StringedVortex is not online. StringedVortex
Joined: 28 Jun 2015
Total Posts: 1846
30 Jul 2016 03:22 AM
sorry ill see if i can fix it tom im to tired to.
Report Abuse
firemomo45 is not online. firemomo45
Joined: 02 Oct 2010
Total Posts: 381
30 Jul 2016 03:23 AM
What value is it not finding. Show us the error output.
Report Abuse
xXLegendarySoldierXx is not online. xXLegendarySoldierXx
Joined: 22 Mar 2012
Total Posts: 551
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
firemomo45 is not online. firemomo45
Joined: 02 Oct 2010
Total Posts: 381
31 Jul 2016 10:24 PM
just change it to
if tool.On.Value == false then
Report Abuse
xXLegendarySoldierXx is not online. xXLegendarySoldierXx
Joined: 22 Mar 2012
Total Posts: 551
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image