--[[ EDIT STAND STUFF ]]
--

local EditStandFrame = script.Parent.Frame.EditStand
local DefaultButton = EditStandFrame.Default
local OneThousandButton = EditStandFrame.OneThousand
local TenThousandButton = EditStandFrame.TenThousand
local OneHundredThousandButton = EditStandFrame.OneHundredThousand

local AdminButton = EditStandFrame.AdminStand

for _, AdminName in ipairs(AdminNames) do
	if AdminName:lower() == player.Name:lower() then
		AdminButton.Visible = true
		AdminButton.Active = true
	end
end


local GetDataEvent = game.ReplicatedStorage.Events.GetDataEvent
local ChangeTheme = game.ReplicatedStorage.Events.StandEvents.ChangeTheme

local EditPrompt = nil
local Booth = nil

DefaultButton.Activated:Connect(function(plr) -- DEFAULT BUTTON 0 POINTS NEEDED
	ChangeTheme:FireServer(player, "default", 0)	-- fire server event here
	-- send noti saying completed
end)

OneThousandButton.Activated:Connect(function(plr) -- ONE THOUSAND BUTTON 1,000 DONATIONS NEEDED
	--GetDataEvent:FireServer(player.UserId, "Donated", 1)
	--GetDataEvent.OnClientEvent:Connect(function(value, button)
	--	if value >= 1000 and button == 1 then
			ChangeTheme:FireServer(player, "onethousand", 1000)
			-- do stuff
		--else
		--end
	-- how can we check to see if they are able to change booth color
	-- send a noti to player they need more points or if successfull
	-- send sound error or complete
	-- fire server event here if completed
end)

TenThousandButton.Activated:Connect(function(plr) -- TEN THOUSAND BUTTON 10,000 DONATIONS NEEDED
	--GetDataEvent:FireServer(player.UserId, "Donated", 2)	
	--GetDataEvent.OnClientEvent:Connect(function(value, button)
		--if value >= 10000 and button == 2 then
			ChangeTheme:FireServer(player, "tenthousand", 10000)
			-- do stuff
		--else
	--	--end
	--end)
	-- how can we check to see if they are able to change booth color
	-- send a noti to player they need more points or if successfull
	-- send sound error or complete
	-- fire server event here if completed
end)

OneHundredThousandButton.Activated:Connect(function(plr) -- ONEHUNDRED THOUSAND BUTTON 100,000 DONATIONS NEEDED
	--GetDataEvent:FireServer(player.UserId, "Donated", 3)	
	--GetDataEvent.OnClientEvent:Connect(function(value, button)
	--	if value >= 100000 and button == 3 then
			ChangeTheme:FireServer(player, "onehundredthousand", 100000)
			-- do stuff
	--	else

	--	end
	--end)
	-- how can we check to see if they are able to change booth color
	-- send a noti to player they need more points or if successfull
	-- send sound error or complete
	-- fire server event here if completed
end)

AdminButton.Activated:Connect(function()
	for _, AdminName in ipairs(AdminNames) do
		if AdminName:lower() == player.Name:lower() then
			ChangeTheme:FireServer(player, "admin", 0)
		end
	end
end)
