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

How can i make this run to a certain value?[Not Solved]

Asked by
Xianon 105
10 years ago
local brick = script.Parent
local cd = script.Parent.ClickDetector
local RD = script.Parent.Parent.Door1.RD
local LD = script.Parent.Parent.Door1.LD
local RDS = script.Parent.Parent.Door1.RDS
local LDS = script.Parent.Parent.Door1.LDS
Debounce = false

function onMouseClick(cd)
    if Debounce == false then

        LD.Position = Vector3.new(-27.251,5.37,-4.394) -- I want -4.394 run all the way to 0.476--




    end
end


cd.MouseClick:connect(onMouseClick)

1 answer

Log in to vote
-1
Answered by 10 years ago

Fixed the 12th Line.

LD.CFrame = CFrame.new(-27.251,5.37,-4.394)
0
I want to mve the brick not resize it, that will just turn it into a giant brick. Xianon 105 — 10y
0
That does move the brick. Grenaderade 525 — 10y
Ad

Answer this question