Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

Fixed the 12th Line.

LD.CFrame = CFrame.new(-27.251,5.37,-4.394)

2 comments

0

I want to mve the brick not resize it, that will just turn it into a giant brick.

0

That does move the brick.

This discussion is preserved as it was. New answers, comments, and votes are closed.