of     1   

Darkmist101
#48266830Wednesday, June 08, 2011 1:10 AM GMT

currentHeart = "script.Parent.Heart ".. filledHearts script.Parent:findFirstChild(currentHeart.Name).Image = "http://www.roblox.com/asset/?id=51977605" Please help me fix this :D
Darkmist101
#48266862Wednesday, June 08, 2011 1:11 AM GMT

Sorry :P here it is currentHeart = "script.Parent.Heart ".. filledHearts script.Parent:findFirstChild(currentHeart).Image = "http://www.roblox.com/asset/?id=51977605"
SilverRaptor
#48267453Wednesday, June 08, 2011 1:21 AM GMT

What is this line supposed to do?: currentHeart = "script.Parent.Heart ".. filledHearts
Darkmist101
#48267849Wednesday, June 08, 2011 1:28 AM GMT

currentHeart gets the Current Heart :D Now the filled hearts value = the number of hearts that are visible. print(currentHeart) -- 3 script.Parent.Heart 3
SilverRaptor
#48268043Wednesday, June 08, 2011 1:32 AM GMT

Oh, so you want "script.Parent.Heart" in quotes. Hmm. What's currentHeart's classnName (StringValue, I would assume). Well, try this line instead: currentHeart = script.Parent.Heart" ..filledHearts.. ""
SilverRaptor
#48268066Wednesday, June 08, 2011 1:33 AM GMT

Oops. currentHeart = "script.Parent.Heart" ..filledHearts.. ""
Darkmist101
#48268836Wednesday, June 08, 2011 1:46 AM GMT

attempt to index a nil value :D
SilverRaptor
#48268930Wednesday, June 08, 2011 1:48 AM GMT

It should say what nil value it's talking about.
Darkmist101
#48269157Wednesday, June 08, 2011 1:51 AM GMT

attempt to index a nil value :3 Would it affect the script if currentHealth is just a number value x3
SilverRaptor
#48269249Wednesday, June 08, 2011 1:53 AM GMT

Yes, because you can't put a string (here it's "script.Parent.Heart") in a NumberValue.
Darkmist101
#48269662Wednesday, June 08, 2011 2:00 AM GMT

Now what do I do :3 if I can't string it. How am I supposed to get the current heart
SilverRaptor
#48269977Wednesday, June 08, 2011 2:06 AM GMT

Umm...delete "script.Parent.Heart"? It doesn't seem to do anything...
Darkmist101
#48270133Wednesday, June 08, 2011 2:09 AM GMT

ahhh :P
AgentFirefox
Top 100 Poster
#48271107Wednesday, June 08, 2011 2:29 AM GMT

currentHeart = "Heart ".. filledHearts --you want the name, not the path script.Parent:findFirstChild(currentHeart.Name).Image = "http://www.roblox.com/asset/?id=51977605"
AgentFirefox
Top 100 Poster
#48271144Wednesday, June 08, 2011 2:29 AM GMT

currentHeart = "Heart ".. filledHearts --you want the name, not the path script.Parent:findFirstChild(currentHeart).Image = "http://www.roblox.com/asset/?id=51977605" Error... Can't believe I didn't see it...
Darkmist101
#48271256Wednesday, June 08, 2011 2:31 AM GMT

Thnak you both. Now I understand this a bit more :D But edit on above: remove .Name
Darkmist101
#48271286Wednesday, June 08, 2011 2:32 AM GMT

D:< spelling mistake

    of     1