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

Function getting called actions, not working. How Do I fix?

local Door = script.CarGarrageDoor:Clone()
Door.Parent = workspace.CurrentCamera

local start,End,increese = 1,75,0
local a,b,c,d = Door.Up.A,Door.Up.B,Door.Down.A,Door.Down.B
	for i = start,End,increese do 
	a.CFrame = a.CFrame + Vector3.new(0,0.1,0)
	b.CFrame = b.CFrame + Vector3.new(0,0.1,0)
	c.CFrame = c.CFrame - Vector3.new(0,0.1,0)
	d.CFrame = d.CFrame - Vector3.new(0,0.1,0)
	end
	
script.Event.Changed:connect (function (value)

print("Hey")

local a,b,c,d = Door.Up.A,Door.Up.B,Door.Down.A,Door.Down.B		
	for i = start,End,increese do 
	a.CFrame = a.CFrame - Vector3.new(0,0.1,0)
	b.CFrame = b.CFrame - Vector3.new(0,0.1,0)
	c.CFrame = c.CFrame + Vector3.new(0,0.1,0)
	d.CFrame = d.CFrame + Vector3.new(0,0.1,0)
	wait()
	end
	
	
	
	for i = start,End,increese do 
	a.CFrame = a.CFrame + Vector3.new(0,0.1,0)
	b.CFrame = b.CFrame + Vector3.new(0,0.1,0)
	c.CFrame = c.CFrame - Vector3.new(0,0.1,0)
	d.CFrame = d.CFrame - Vector3.new(0,0.1,0)
	wait()
	end
	
	

	
	
end)

it prints Hey but dosent move

1 answer

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