of     1   

Ripull
#36124658Thursday, October 28, 2010 1:22 PM GMT

script.Parent.Health.Changed:connect(function (HealthCheck) script.Parent.Parent.Name = "Car Health: " ..script.Parent.Health.."/100" wait(1) end) Health: 100/100.Humanoid.Script:1: attempt to index field 'Health' (a number value) ?
trappingnoobs
#36124731Thursday, October 28, 2010 1:25 PM GMT

Can't do .Changed on variables, events effect objects only. script.Parent.Changed:connect(function(HealthCheck) if HealthCheck=="Health" then script.Parent.Parent.Name = "Car Health: " ..script.Parent.Health.."/100" wait(1) end end)
07lchris
#36124784Thursday, October 28, 2010 1:27 PM GMT

Yeh, In other words, Health isn't where you said it was. Aka, it isn't script.Parent.Health. Check over that again.
[rfa#hidefromsearch]
#36125162Thursday, October 28, 2010 1:45 PM GMT

[rfa#hidefromsearch]
oysi93
#36125242Thursday, October 28, 2010 1:48 PM GMT

@Trapping Learn more events. =P script.Parent.HealthChanged:connect(function (HealthCheck) script.Parent.Parent.Name = "Car Health: " ..script.Parent.Health.."/100" wait(1) end) All you had to do was miss the dot. xD
trappingnoobs
#36125317Thursday, October 28, 2010 1:51 PM GMT

SirC, I meant property, I'm tired today. Oysi, theres an event for all property changes or just Health?
oysi93
#36125409Thursday, October 28, 2010 1:56 PM GMT

Aye, brother. Btw, what I just said to ya was sarcastic. xP The HealthChanged event actually passes the amount of health to the function. And since that's how OPoster built up his function, I think it was just a ... typo of some kind? :D?
trappingnoobs
#36125773Thursday, October 28, 2010 2:18 PM GMT

*Has been owned by oysi.... Again...*

    of     1