Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

attempt to index nil with 'Transparency'?

object.PrimaryPart.Transparency = hitboxTransparency
	stackable = stk
	smartRot = r

1 comment

0

Can you elaborate more on the issue?

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.