I am trying to make a script that adds a part on top of an existing part, but I am trying to access the Z value of the existing part, so I tried this
PartZ = game.Workspace.Part.Position.Vector3.Z
print (PartZ)
Before that I tried this
PartZ = game.Workspace.Part.Position.Z
print(PartZ)
None of them worked. If anyone could explain that to me it would be gr8 m8.

2 comments
The second one works. The first one, of course, does not.
The second script is correct.