Heres script

local click = script.Parent:WaitForChild("ClickDetector")
repeat wait() until script.Value.Value
local item = script.Value.Value
local ToolName = "Bowl"
local id = script.Id.Value
local id2 = script.Id2.Value

script.Parent.ClickDetector.MouseClick:Connect(function(plr)
	if plr.UserId == id then
		if plr.Backpack:FindFirstChild(ToolName) then
			if not plr.Backpack:FindFirstChild(item.Name) then
				item:Clone().Parent = plr.Backpack
				plr.Backpack["Bowl"]:Destory()
			end
		end
	elseif plr.UserId == id2 then
		if plr.Backpack:FindFirstChild(ToolName) then
			if not plr.Backpack:FindFirstChild(item.Name) then
				item:Clone().Parent = plr.Backpack
				plr.Backpack["Bowl"]:Destory()
			end
		end
	end
end)	

I want to make have bowl and give tools and destory tools but its not working

4 comments

0

What's your question in modern English?

0

its bowl

0

Please explain your issue, and if present, the error included with your troubles. Otherwise, I will close this post as non-descriptive.

0

Please speak about what** is at fault in your program, and how it's behaving.