#:GetPropertyChangedSignal("Parent") [Solved]

1 messages · Page 1 of 1 (latest)

buoyant jacinth
#

i need to enable and disable collisions of one tool, for some reason when i press the backspace to drop the weapon it is not detecting the change of the parent from the character to the workspace, what i should use instead of :GetPropertyChangedSignal?, or is there a way to fix this?

actualTool:GetPropertyChangedSignal("Parent"):Connect(function()
    print("other")
    if actualTool.Parent == workspace then
        print("workspace")
    end
end)
carmine beaconBOT
#

studio** You are now Level 5! **studio

mortal bloom
buoyant jacinth
buoyant jacinth
#

i made it work, using a server script

local collection = game:GetService("CollectionService")
local collision = require(game:GetService("ReplicatedStorage"):WaitForChild("Modulos"):WaitForChild("Collision"))
game.Workspace.ChildAdded:Connect(function(child)
    print(child)
    if child:IsA("Tool") then
        for _, part in child:GetChildren()  do
            if part:isA("BasePart") then 
                if collection:HasTag(part, "Item") then
                    collision.activeCollision(child)
                end
            end
        end    
    end
end)
#

:GetPropertyChangedSignal("Parent") [Solved]

shadow berry
#

@buoyant jacinth It’s likely a setting on the tool itself

#

There’s a property for the tool being droppable

#

Usually backspace unequips it and doesn’t drop it

buoyant jacinth
shadow berry
#

So you’re just trying to make a tool have no collision after being dropped?

buoyant jacinth
buoyant jacinth