Ad
Log in to vote
0

How can i detect if someone has the tool equiped?

Asked by 2 months ago

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

1 answer

Log in to vote
1
Answered by 2 months ago

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

0
ok im trying thanks! Locpsoyyo 2 — 2mo
Ad

Answer this question