Player Hold 2 parts in one Hand

Hello devolves I hop you all have a great day!

– I’m trying to make parts hold limit (When the player is already holding part in his hand he cant hold any parts until he drop it) How do I make it??

robloxapp-20210129-1555403.wmv (2.1 MB)

– I tried BoolValue when the player hold the part the bool value will be true and if its true i destroyed the ClickDetector but that dosnt work becuse the player cant hold the part again.

this is the script.

– **Local script **

local UIS = game:GetService(“UserInputService”)

local Event = game.ReplicatedStorage:WaitForChild(“DropEvent”)

local Player = game.Players.LocalPlayer

local IsWld = game.Workspace.Part.IsWeld

UIS.InputBegan:Connect(function(Key)

if Key.KeyCode == Enum.KeyCode.F then

if IsWld.Value == true then

Event:FireServer()

end

end

end)

Server Script

local Event = game.ReplicatedStorage:WaitForChild(“DropEvent”)
local IsWeld = script.Parent.IsWeld
local ServerStorge = game:GetService(“ServerStorage”)
local Part = script.Parent
local PartLim = game.ReplicatedStorage:WaitForChild(“PartHandleLim”)
script.Parent.ClickDetector.MouseClick:Connect(function(Plr)
IsWeld.Value = true
local Chr = Plr.Character
local Weld = Instance.new(“Weld”)
Part.CFrame = Chr.LeftHand.CFrame
Weld.Part0 = Chr.LeftHand
Weld.Part1 = Part
Weld.Parent = Part
if IsWeld.Value == true then
local Click = script.Parent.ClickDetector
Click.Parent = ServerStorge
end
end)

Event.OnServerEvent:Connect(function()
local WeldDrop = script.Parent:WaitForChild(“Weld”)
local ClickAfter = ServerStorge:WaitForChild(“ClickDetector”)
ClickAfter.Parent = Part
WeldDrop:Destroy()
end)