--[[
local part = script.Parent
local Activator = game.ReplicatedStorage.GameFiles.Values.PopUpActive
local frame = script.Parent.Parent

local posOff = UDim2.new(0, 0, 0, 0)
local posOn = UDim2.new(0.786, 0, 0, 0)

local lighting = game.Lighting
local g = game.Workspace.AssetClean

part:TweenPosition(posOn, "In", "Sine", 0.3) -- The button is online
part.BackgroundColor3 = Color3.fromRGB(0, 255, 0)	
frame.BackgroundColor3 = Color3.fromRGB(0, 177, 0)

part.MouseButton1Click:Connect(function()
	if Activator.Value == true then
		Activator.Value = false
		part:TweenPosition(posOff, "Out", "Sine", 0.3)
		part.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
		frame.BackgroundColor3 = Color3.fromRGB(177, 0, 0)
elseif Activator.Value == false then
		Activator.Value = true
		part.BackgroundColor3 = Color3.fromRGB(0, 255, 0)	
		frame.BackgroundColor3 = Color3.fromRGB(0, 177, 0)
		part:TweenPosition(posOn, "In", "Sine", 0.3)
	end
end)

while wait() do
	if Activator.Value == true then
		part:TweenPosition(posOn, "In", "Sine", 0.3)
		part.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
		frame.BackgroundColor3 = Color3.fromRGB(0, 177, 0)
	elseif Activator.Value == false then
		part.BackgroundColor3 = Color3.fromRGB(255, 0, 0)	
		frame.BackgroundColor3 = Color3.fromRGB(177, 0, 0)
		part:TweenPosition(posOff, "Out", "Sine", 0.3)
	end
end
--]]