What I mean is, I'm starting learning about CFrame and Vector3. THe only problem is, that when I type out the positions, I have to keep going into the properties of each brick, and then looking for it's position. Is there another way of doing this besides typing out every specific position? For example, this script I made here:
local button = game.Workspace.button
local cf = game.Workspace.cfrme
local db = false
function move(hit)
local human = hit.Parent
if not db then
if human then
db = true
for i = 21.1, 0.5, -0.1 do
cf.CFrame = CFrame.new(Vector3.new(-1, 21.1, 71.7))
cf.CFrame = CFrame.new(Vector3.new(-1, i, 71.7))
wait(0.00001)
end
wait(3)
for i = 0.5, 21.1, 0.1 do
cf.CFrame = CFrame.new(Vector3.new(-1, 0.5, 71.7))
cf.CFrame = CFrame.new(Vector3.new(-1, i, 71.7))
wait(0.00001)
end
db = false
end
end
end
button.ClickDetector.MouseClick:connect(move)
Everything works. I just want to know a different way to tell the script the positions. All help is appreciated!
