In my server script I have something that would detect for jump when jump is changed, but it's in a tool so how would I say to delete the part inside the player only when the tool is in the player.
local hum = script.Parent.Parent:FindFirstChild("Humanoid")
-- if script.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
hum:GetPropertyChangedSignal("Jump"):Connect(function()
if hum.Jump == true then
if script.Parent.Parent:FindFirstChild("Attachment0Holder") ~= nil then
script.Parent.Parent:FindFirstChild("Attachment0Holder"):Destroy()
end
end
end)
-- end
the notes is what I want to happen but it doesn't work when I do that

1 comment
This has the same outcome. It tries to check for a humanoid in backpack but I need it to only get the function when it is in the player