Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

3 comments

0

character:FindFirstChildWichIsA("chivo"):connect(function(regue) if suelo.BrickColor == BrickColor.new("Cocoa") then semilla.Transparency = 0 end end)

0

is this correct?

0

local suelo = character:FindFirstChildWhichIsA("Tool"); if suelo.Name ~= "chivo" then return; end; suelo.TouchEnded:Connect(function(regue) ... and the rest of your code

1 answer

✓ Accepted answer

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

1 comment

0

ok im trying thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.