How could I see when a player pickups a tool from the server?
Like any tool.
If it gets picked up grab there character.
Put Inside tool:
script.Parent.Equipped:Connect(function()
print("Equipped")
end)
Looking from doing this from the server, as stated.
Not inside of a tool, also this looks like a localscript
This works on both Server and Client. Idk what makes you think its a LocalScript
- my bad,
My main problem is im wanting this to work for all tools.
No matter name, without adding this into a tool
ServerScriptService:
Not sure if thats how but it may work.
for _, i in pairs(game:GetDescendants()) do
if i:IsA("Tool") then
i:Equipped:Connect(function()
print("Equipped")
end)
end
end
1 Like
Got it working thanks!
(Wdwdwd@)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.