Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fix My Click and checks have item and give item and destory item? [closed]

Asked by 3 years ago
Edited 3 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

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

0
What's your question in modern English? LeedleLeeRocket 1257 — 3y
0
its bowl Green_SteveYT 8 — 3y
0
Please explain your issue, and if present, the error included with your troubles. Otherwise, I will close this post as non-descriptive. Ziffixture 6913 — 3y
0
Please speak about what** is at fault in your program, and how it's behaving. Ziffixture 6913 — 3y

Closed as Non-Descriptive by Ziffixture

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?