Yeah, this is bugging me and I am stumped.
Just trying to find the IntValue of Health and the error pops up as,
"Config is not a valid member of Datamodel"
Model hierarchy is, https://gyazo.com/eeb5c723aae89620e92624f2c5b866e7
Here's my code below:
--ServerScript-- local Vehicle = hit.Parent.Parent.Config:FindFirstChild("Health") if Vehicle then Vehicle.Value = Vehicle.Value - 50 end end
Any help would greatly be appreciated.