I have a for i loop which makes a tween for 3 guis but its saying my setting gui is null? i tried re naming it even re parenting it but it just doesnt work??
code:
local Buttons = {
PlayButton = {Element = ButtonFrame.PlayButton, Pos = UDim2.new(-0.05, 0,0.08, 0), EndPos = UDim2.new(0.006, 0,0.08, 0)},
LogButton ={Element = ButtonFrame.UpdateLog, Pos = UDim2.new(-0.05, 0,0.681, 0), EndPos = UDim2.new(0, 0,0.681, 0)},
SettingsButton = {Elememt = ButtonFrame.Settings, Pos = UDim2.new(-0.05, 0,0.383, 0), EndPos = UDim2.new(0.003, 0,0.383, 0)},
}
local TweenService = game:GetService("TweenService")
local PlayStart = UDim2.new(1.1, 0,0.27, 0)
local PlayStartPos = UDim2.new(-0.047, 0,0.044, 0)
local PlayEnd = UDim2.new(0.996, 0,0.256, 0)
local PlayEndPos = UDim2.new(0.006, 0,0.053, 0)
for i, v in Buttons do
local TweenIn = TweenService:Create(v.Element, TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0), {Size = PlayStart, Position = v.Pos})
local TweenOut = TweenService:Create(v.Element, TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0), {Size = PlayEnd, Position = v.EndPos})
v.Element.MouseEnter:Connect(function()
TweenIn:Play()
v.Element.MouseLeave:Connect(function()
TweenOut:Play()
end)
end)
end

![]()