i has a line of code in other lines of code. this line of code shows an error of 11:58:32.616 - Workspace.confetti.Part.Script:17: attempt to index field 'Parent' (a nil value) when i run the code. i am trying to make confetti slowly rain. i have been trying to fix this, its not working. can somebody help me? code:
script.Parent.Position = script.Parent.Position - Vector3.new(0, 0.5, 0)
That's not how it works, this is how it works -
script.Parent.Position = Vector3.new(script.Parent.Position.X, script.Parent.Position.Y - 0.5, script.Parent.Position.Z)