Im creating a button and the tween is not working no errors it works by having L1a go to L1b and going to L1c
local Prox = script.Parent
local Sound = script.Parent.Sound
local TweenService = game:GetService("TweenService")
----------------------------------
local L1A = script.Parent.Parent.Parent.L.L1
local L2A = script.Parent.Parent.Parent.L.L10
local L3A = script.Parent.Parent.Parent.L.L3
local L4A = script.Parent.Parent.Parent.L.L5
local L5A = script.Parent.Parent.Parent.L.L6
local L6A = script.Parent.Parent.Parent.L.L9
----------------------------------
local L1B = script.Parent.Parent.Parent.L1.L1
local L2B = script.Parent.Parent.Parent.L1.L10
local L3B = script.Parent.Parent.Parent.L1.L3
local L4B = script.Parent.Parent.Parent.L1.L5
local L5B = script.Parent.Parent.Parent.L1.L6
local L6B = script.Parent.Parent.Parent.L1.L9
----------------------------------
local L1C = script.Parent.Parent.Parent.L2.L1
local L2C = script.Parent.Parent.Parent.L2.L10
local L3C = script.Parent.Parent.Parent.L2.L3
local L4C = script.Parent.Parent.Parent.L2.L5
local L5C = script.Parent.Parent.Parent.L2.L6
local L6C = script.Parent.Parent.Parent.L2.L9
----------------------------------
Prox.Triggered:Connect(function(player)
local newPosition = L1B.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L1A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L2B.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L2A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L3B.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L3A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L4B.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L4A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L5B.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L5A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L6B.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L6A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L1C.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L1A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L2C.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L2A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L3C.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L3A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L4C.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L4A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L5C.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L5A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
local newPosition = L6C.Position
-- Set up tween
local tweenInfo = TweenInfo.new(0.2)
local tween = TweenService:Create(L6A, tweenInfo, { Position=newPosition})
tween:Play()
-----------------------------------------
end)
