I want to make an object appear with z coordinates 2 units higher than x part. I tried to subtract from a random x coordinate using print in the command bar, but it didn't want to work. I'm probably not doing it correctly either. Thanks.
This is what I have so far:
game.ServerStorage.LargeBlueSlidePart.Parent = game.Workspace game.Workspace.LargeBlueSlidePart.Position = game.Workspace.Part.Position game.Workspace.Part:Destroy()
Remember to format your code in lua code block. It makes it easier for us to help you.
If you want to add or subtract Position, just make sure you're doing so with a corresponding datatype. The Position
property returns a Vector3, so you need to excecute your math with a Vector3.
Your explanation of where the part should be, relative to the other part, didn't make much sense.. but here is an example of adding 2 studs to the z-axis.
local bluePart = game.ServerStorage.LargeBlueSlidePart; local part = workspace.Part; bluePart.Parent = workspace; bluePart.Position = part.Position + Vector3.new(0,0,2); partart:Destroy();