And here is the script (This is the move script since that is the last thing I tried)
local speed = script.Parent.Parent.Settings.Speed
script.Parent.Parent.Activate.Changed:Connect(function()
wait(.2)
if script.Parent.Parent.Activate.Value == true then
script.Parent:TweenPosition(UDim2.new(0.477, 0,1.59, 0),"InOut","Sine",speed.Value)
else
script.Parent:TweenPosition(UDim2.new(0.617, 0,0.496, 0),"InOut","Sine",speed.Value)
end
end)
local TweenService = game:GetService("TweenService")
local Speed = script.Parent.Parent.Settings.Speed
local TweenData = TweenInfo.new(Speed.Value, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local function TweenFrame(Frame, NewSize)
local Tween = TweenService:Create(Frame, TweenData, {Size = NewSize}):Play()
end
script.Parent.Parent.Activate.Changed:Connect(function()
task.wait(0.2)
if script.Parent.Parent.Activate.Value = true then
TweenFrame(script.Parent, Udim2.new(0.477, 0, 0, 1.59, 0))
else
TweenFrame(script.Parent, Udim2.new(0.617, 0, 0.496, 0))
end
end)