#Decal Script Failing to Apply

2 messages · Page 1 of 1 (latest)

trail mica
#

Alright, I came back to this and I've discovered that the issue is definitely in this section. Lemme narrow this down.

#
  if hitPoints.Value <1 then
        minable:Destroy()    
    elseif hitPoints.Value > (maxHitPoints.Value * 0.7) then
        local smallCracks = cracks1:Clone()
        smallCracks.Name = "smallCracks"
        smallCracks.Parent = minable
    elseif hitPoints.Value > (maxHitPoints.Value * 0.3) then
            local medCracks = cracks2:Clone()
            medCracks.Name = "medCracks"
        medCracks.Parent = minable
        elseif hitPoints.Value < (maxHitPoints.Value * 0.3) then
            local bigCracks = cracks3:Clone()
            bigCracks.Name = "bigCracks"
            bigCracks.Parent = minable```