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

How can i detect if someone has the tool equiped?

Asked by 3 years 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 — 3y
0
is this correct? Locpsoyyo 2 — 3y
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 — 3y

1 answer

Log in to vote
1
Answered by 3 years 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 — 3y
Ad

Answer this question