0

How can i detect if someone has the tool equiped?

suelo.TouchEnded:Connect(function(regue) if game.Players.LocalPlayer.Backpack.chivo.Equipped then if suelo.BrickColor == BrickColor.new("Cocoa") then semilla.Transparency = 0 end end end)

i´ve been using this but it doesn´t work with the replicated storage

0
character:FindFirstChildWichIsA("chivo"):connect(function(regue) if suelo.BrickColor == BrickColor.new("Cocoa") then semilla.Transparency = 0 end end) Locpsoyyo 2 — 2mo
0
is this correct? Locpsoyyo 2 — 2mo
0
local suelo = character:FindFirstChildWhichIsA("Tool"); if suelo.Name ~= "chivo" then return; end; suelo.TouchEnded:Connect(function(regue) ... and the rest of your code aurich98 86 — 2mo

Check for the tool in their character; when a tool is equipped, it is moved to their character. You can use FindFirstChildWhichIsA