Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

attempt to index nil with 'Transparency'?

Asked by 2 years ago
object.PrimaryPart.Transparency = hitboxTransparency
    stackable = stk
    smartRot = r
0
Can you elaborate more on the issue? PaleNoobs 37 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

First make sure hitboxTransparency is between 0 and 1 or anything in between as the .Transparency attribute must be between those. Next I would recommend changing object.PrimaryPart.Transparency = hitboxTransparency to object:WaitForChild("PrimaryPart").Transparency = hitboxTransparency

Ad

Answer this question