I'm (sort of) laying tile in this game. Somehow some of the tiles seem (very randomly) to be .2 above the others on the y axis making them not line up properly. I need to change the y potision of every tile to 0.5.
I want to do this AND keep the changes.
Here is the function I made.
function fix() local children = game.Workspace:GetChildren() children.Position = Vector3.new(Position.x,.5,Position.z) end
fix()
I'm not sure how to change all childrens y position without changing the x and z position.

3 comments
are they in a model? named the same? same size? really all i'm asking is if there's a way to reference them all
They can all be referenced by workspace:getchildren()
I just don't know how to change the y position alone without changing the x and z position. (Look at the edit I made).