Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What CFrame will make a part two bricks higher than what it is in a script?

Asked by 10 years ago

Like let's say you have a part at (0,0,0) for the position. You want something to spawn two up (the y) higher than that.

Here is what I have:

        local spawnPosition = ML.Position + (ToolHandle.CFrame.lookVector * (ToolHandle.Size.Z / 2))

I want to add ML.Position + (the two studs up on the Y) + the rest

What is that event/function that allows you to edit something's position. CFrame.new?

Answer this question