Problem with boolean value

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I wanna make a gun clone to backpack, but when i added a special value which gives only ONE pistol.
  2. What is the issue? Include screenshots / videos if possible!
    For some reason even if bool value is false it still prints me what “gun is equipped”
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Idk why.
 local Button = script.Parent
local Player = game.Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local GunsFolder = PlayerGui.BuyMenu.GunsFolder
local Pistols = GunsFolder.Pistols
local Glock17 = Pistols["Glock 17"]
local PistolEquippedValue = PlayerGui.BuyMenu.MainMenu.PistolValue
Button.MouseButton1Click:Connect(function()
	if PistolEquippedValue == false then
	local Glock17Clone = Glock17:Clone()
		Glock17Clone.Parent = Player.Backpack
		PistolEquippedValue = true
	else
	print("Plr Already Equipped pistol")
	end
end)

Should be…

if PistolEquippedValue.Value == false then

Breh forgot about that, thanks a lot.